:root {
  --primary: #0b3c5d;
  --primary-dark: #092f49;
  --bg: #f5f7fb;
  --soft: #eef2f7;
  --text: #2c2c2c;
}

* {
  box-sizing: border-box;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1.2rem;
}

/* HEADER */
.header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid #e5e5e5;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav a {
  margin-left: 1.2rem;
}

.nav-cta {
  font-weight: 600;
}

.hero,
.section,
.container {
  width: 100%;
}

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 4rem 0;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero-card {
  background: white;
  color: var(--text);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  margin-right: 0.6rem;
  font-weight: 500;
}

.btn.primary {
  background: white;
  color: var(--primary);
}

.btn.outline {
  border: 1px solid white;
  color: white;
}

.btn.small {
  margin-top: 1rem;
  background: var(--primary);
  color: white;
}

/* SECTIONS */
.section {
  padding: 4rem 0;
}

.section.soft {
  background: var(--soft);
}

.section.highlight {
  background: var(--primary);
  color: white;
}

.section-title {
  font-size: 2rem;
}

.section-subtitle {
  max-width: 600px;
  color: #555;
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 1.8rem;
  border-radius: 12px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.card.hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* VALUE */
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.value-list li {
  list-style: none;
  margin-bottom: 0.6rem;
}

/* PQRS */
.pqrs-cta {
  text-align: center;
  max-width: 700px;
}

/* FOOTER */
.footer {
  background: #111;
  color: #ddd;
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* ================= SERVICIOS DETALLADOS ================= */

.service-detail {
  padding: 5rem 0;
  background: white;
}

.service-detail.alt {
  background: var(--soft);
}

.service-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.service-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-text p {
  color: #555;
  max-width: 520px;
}

.service-text ul {
  margin: 1.5rem 0;
  padding-left: 0;
}

.service-text ul li {
  list-style: none;
  margin-bottom: 0.6rem;
}

.service-note {
  font-size: 0.9rem;
  color: #777;
}

.service-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.service-visual {
  display: flex;
  justify-content: center;
}

.visual-box {
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 4rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .service-text p,
  .service-text ul {
    margin-left: auto;
    margin-right: auto;
  }
}
.service-text .btn {
  margin-top: 1.2rem;
}

/* ================= SISTEMA DE BOTONES ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

/* ---------- PRIMARY ---------- */
.btn.primary {
  background: white;
  color: var(--primary);
  border: none;
}

.btn.primary:hover {
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn.primary:active {
  transform: translateY(0);
}

/* ---------- SECONDARY ---------- */
.btn.secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

/* ---------- OUTLINE ---------- */
.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.outline:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(11, 60, 93, 0.25);
  transform: translateY(-1px);
}

/* ---------- FOCUS (ACCESIBILIDAD) ---------- */
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(11, 60, 93, 0.35);
}

/* ================= FOOTER ================= */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-logo {
  font-weight: 600;
  font-size: 1.05rem;
  color: white;
  margin-bottom: 0.6rem;
}

.footer-text {
  font-size: 0.9rem;
  color: #94a3b8;
  max-width: 260px;
}

.footer-social {
  margin-top: 1rem;
}

.footer-social a {
  margin-right: 0.6rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  opacity: 0.8;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
  color: #94a3b8;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #94a3b8;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
