/* ==========================================================================
   Dr. Fernando Duque — Pediatría y Cirugía Pediátrica
   ========================================================================== */

/* Mont (licenciada) — solo los pesos que usa el sitio */
@font-face { font-family: "Mont Duque"; src: url("../fonts/mont-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Mont Duque"; src: url("../fonts/mont-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mont Duque"; src: url("../fonts/mont-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mont Duque"; src: url("../fonts/mont-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Mont Duque"; src: url("../fonts/mont-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* Paleta de marca */
  --navy-900: #0C1930;
  --navy-800: #132849;
  --navy-700: #1B3765;
  --navy-100: #D6DEEB;
  --navy-050: #ECF0F6;
  --lime-700: #9AA305;
  --lime-600: #B3BD06;
  --lime-500: #CAD507;
  --lime-100: #F0F5BB;
  --lime-050: #F9FBE2;
  --teal-700: #00707D;
  --teal-600: #008695;
  --teal-500: #009BAC;
  --teal-100: #C2E9ED;
  --gray-100: #EFF0F0;
  --gray-200: #DEDFDF;
  --gray-500: #707272;
  --gray-600: #585959;
  --white: #FFFFFF;

  --text-heading: var(--navy-700);
  --text-body: var(--gray-600);
  --text-muted: var(--gray-500);
  --border-subtle: var(--gray-200);

  /* Tipografía */
  --font: "Mont Duque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h2: 34px;
  --fs-h4: 20px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-sm: 14px;
  --fs-xs: 12.5px;
  --fs-eyebrow: 13px;
  --ls-eyebrow: 0.14em;

  /* Espaciado y forma */
  --container: 1180px;
  --gutter: 24px;
  --section-y: 96px;
  --radius-card: 22px;
  --radius-media: 32px;
  --radius-pill: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(12, 25, 48, .07);
  --shadow-md: 0 10px 24px -6px rgba(12, 25, 48, .14);
  --shadow-navy: 0 12px 26px -10px rgba(27, 55, 101, .45);
  --shadow-lime: 0 12px 26px -10px rgba(202, 213, 7, .55);
  --ring-focus: 0 0 0 3px rgba(0, 155, 172, .35);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 140px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-heading);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { margin: 0; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--navy-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-600); }

:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: 4px; }
[tabindex="-1"]:not([role="tab"]):focus-visible { box-shadow: none; } /* destinos de anclas enfocados por JS */

::selection { background: var(--lime-100); color: var(--navy-700); }

.icon { width: 1em; height: 1em; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 18px; border-radius: var(--radius-pill);
  background: var(--navy-700); color: var(--white); font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* ---------- Componentes ---------- */
.eyebrow {
  margin-bottom: 12px;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--lime-700);
}

.rule { width: 64px; height: 5px; border-radius: var(--radius-pill); background: var(--lime-500); margin: 20px 0; }

.lead { font-size: var(--fs-lead); }

.section-heading h2 { font-size: var(--fs-h2); }
.section-heading .highlight { color: var(--lime-500); }
.section-heading .lead { margin-top: 20px; }
.section-heading .rule { margin-bottom: 0; }
.section-heading--center { text-align: center; max-width: 820px; margin: 0 auto; }
.section-heading--center .rule { margin-left: auto; margin-right: auto; }

/* Título en dos líneas: Black + ExtraLight */
.title-split { line-height: 1.05; }
.title-split > span { display: block; }
.title-split .strong { font-weight: 900; letter-spacing: -0.02em; font-size: clamp(34px, 4vw, 48px); }
.title-split .light { font-weight: 200; font-size: clamp(28px, 3vw, 36px); margin-top: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px 12px; line-height: 1;
  font-family: inherit; font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  border: 2px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn--lg { padding: 18px 36px 16px; font-size: 15px; }
.btn--accent { background: var(--lime-500); color: var(--navy-700); box-shadow: var(--shadow-lime); }
.btn--accent:hover { background: var(--lime-600); color: var(--navy-700); }
.btn--primary { background: var(--navy-700); color: var(--white); box-shadow: var(--shadow-navy); }
.btn--primary:hover { background: var(--navy-800); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: var(--white); }

.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  display: inline-flex; align-items: center;
  padding: 7px 12px 5px; line-height: 1; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: 0.04em;
}
.badge--navy { background: var(--navy-050); color: var(--navy-700); }
.badge--lime { background: var(--lime-100); color: var(--lime-700); }

.check-list { display: grid; gap: 12px 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.check-list .icon { margin-top: 2px; font-size: 16px; color: var(--lime-600); }

/* Ilustraciones tipo sticker: tamaño y rotación por variables, posición con top/left/right/bottom */
.sticker {
  position: absolute; z-index: 1;
  width: var(--size, 96px); height: auto;
  transform: rotate(var(--rot, 0deg));
  animation: float 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* Imagen con fondo blanco fundida sobre el círculo de color */
.blend { mix-blend-mode: multiply; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); box-shadow: var(--shadow-sm); }

.topbar { background: var(--navy-700); color: rgba(255, 255, 255, .82); font-size: var(--fs-xs); }
.topbar .container {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 9px; padding-bottom: 9px;
}
.topbar a { color: inherit; }
.topbar a:hover { color: var(--white); }
.topbar .topbar__wa { display: inline-flex; align-items: center; gap: 8px; color: var(--lime-500); font-weight: 800; }
.topbar .topbar__wa:hover { color: var(--lime-100); }
.topbar__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }

.navbar .container { display: flex; align-items: center; gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; }
.navbar__logo { flex: 0 0 auto; }
.navbar__logo img { height: 42px; width: auto; }

.nav { flex: 1 1 auto; display: flex; justify-content: flex-end; gap: 20px; }
.nav a {
  position: relative; padding: 6px 0;
  font-size: var(--fs-sm); font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
  color: var(--navy-700);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  border-radius: var(--radius-pill); background: var(--lime-500);
  transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out);
}
.nav a:hover { color: var(--navy-700); }
.nav a:hover::after { transform: scaleX(1); }

.navbar__cta { margin-left: auto; flex: 0 0 auto; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--navy-100); border-radius: 50%;
  background: var(--white); color: var(--navy-700); font-size: 22px; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 var(--section-y); overflow: hidden; }
.hero .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px; align-items: center;
}
.hero h1 { line-height: 1.02; }
.hero h1 span { display: block; }
.hero h1 .strong { font-weight: 900; letter-spacing: -0.02em; font-size: clamp(44px, 6vw, 72px); }
.hero h1 .light { font-weight: 200; font-size: clamp(34px, 4.4vw, 52px); margin-top: 6px; }
.hero .rule { margin: 24px 0; }
.hero .lead { max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero .badges { margin-top: 32px; }

.hero__media {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 440px;
}
.hero__media::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 480px); aspect-ratio: 1; border-radius: 50%; background: var(--navy-050);
}
/* Foto centrada y más angosta que la columna: deja libres los costados para las ilustraciones */
.hero__media img:not(.sticker) { position: relative; width: min(76%, 440px); height: auto; }

/* ---------- Secciones con línea superior ---------- */
.section { padding-bottom: var(--section-y); }
.section > .container > .section__inner { border-top: 1px solid var(--border-subtle); padding-top: var(--section-y); }

/* Pediatría */
.services {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 24px; margin-top: 48px;
}
.service {
  padding: 32px 24px; text-align: center;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-card); background: var(--white);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.service:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: transparent; }
.service__icon {
  display: flex; align-items: center; justify-content: center;
  width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 50%;
  font-size: 40px; transition: transform .2s var(--ease);
}
.service:hover .service__icon { transform: scale(1.06); }
.service__icon--lime { background: var(--lime-100); color: var(--lime-700); }
.service__icon--teal { background: var(--teal-100); color: var(--teal-700); }
.service__icon--navy { background: var(--navy-050); color: var(--navy-700); }
.service__icon--gray { background: var(--gray-100); color: var(--gray-600); }
.service h3 { font-size: var(--fs-h4); line-height: 1.4; }
.service p { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); }

.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Cirugía */
.surgery__intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px; align-items: end;
}
.surgery__intro > p { color: var(--text-muted); }

.tabs { margin-top: 40px; overflow-x: auto; }
.tabs__list { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--navy-050); }
.tabs__tab {
  padding: 10px 22px; border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--navy-700);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 800; white-space: nowrap;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tabs__tab[aria-selected="true"] { background: var(--navy-700); color: var(--white); }

.tabs__panel { margin-top: 24px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: var(--navy-050); }
.tabs__panel .check-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.surgery__cta { margin-top: 40px; }

/* Alta especialidad (banda azul) */
.band { padding: 64px 0; background: var(--navy-700); }
.band .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px; align-items: center;
}
.band .eyebrow { color: var(--lime-500); }
.band h2 { color: var(--white); }
.band p { color: rgba(255, 255, 255, .82); }
.band .btn { margin-top: 24px; }

/* Dr. Duque */
.about { padding: var(--section-y) 0; }
.about .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 64px; align-items: center;
}
.about__media {
  position: relative; display: flex; justify-content: center; align-items: flex-end;
  min-height: 520px;
}
.about__media::before {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 460px); aspect-ratio: 1; border-radius: 50%; background: var(--lime-050);
}
.about__media img:not(.sticker) { position: relative; height: 540px; width: auto; max-width: 100%; object-fit: contain; }
.about .lead { margin-top: 24px; }
.about .badges { margin: 24px 0 32px; }
.about h3 {
  margin-bottom: 20px;
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.about .check-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.about .check-list .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--lime-500); color: var(--navy-700); stroke-width: 3;
}

/* Consultorio */
.office {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 64px; align-items: center;
}
.contact-rows { display: grid; gap: 24px; margin-top: 32px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row__icon {
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy-050); color: var(--navy-700); font-size: 22px;
}
.contact-row__body { padding-top: 4px; font-size: var(--fs-sm); line-height: 1.5; font-style: normal; }
.contact-row__label {
  display: block; margin-bottom: 4px;
  font-size: var(--fs-xs); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
  color: var(--text-muted);
}
.contact-row__body a { color: var(--text-body); }
.contact-row__body a:hover { color: var(--teal-600); }

.office__media {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 420px; padding: 40px 40px 0;
  border-radius: var(--radius-media); background: var(--navy-050);
}
.office__media img:not(.sticker) { width: 100%; max-width: 440px; height: auto; }

/* Cita */
.cta-box {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 40px; align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-media); background: var(--navy-050);
}
.cta-box h2 { color: var(--navy-700); }
.cta-box__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-box__hours { margin-top: 8px; font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0; background: var(--navy-700); color: rgba(255, 255, 255, .78); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer img { height: 48px; width: auto; }
.social { display: flex; gap: 12px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3); color: var(--white); font-size: 20px;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.social a:hover { background: var(--lime-500); border-color: var(--lime-500); color: var(--navy-700); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-xs); }
.footer-links a { color: inherit; }
.footer-links a:hover { color: var(--white); }
.footer-links .footer-links__featured { color: var(--lime-500); font-weight: 800; }

/* ==========================================================================
   Página: Cirugía Neonatal y Colorrectal
   ========================================================================== */
.badge--teal { background: var(--teal-100); color: var(--teal-700); }

.hero__media--lime::before { width: min(100%, 500px); background: var(--lime-050); }
.hero__media--portrait { min-height: 520px; }
.hero__media--portrait img:not(.sticker) { width: auto; height: 480px; max-width: 100%; object-fit: contain; }
.hero .hero__note { margin-top: 16px; max-width: 560px; color: var(--text-muted); }

/* Banda azul de formación */
.section-dark { padding: var(--section-y) 0; background: var(--navy-700); }
.section-dark .eyebrow { color: var(--lime-500); }
.section-dark h2 { color: var(--white); }
.section-dark .lead { color: rgba(255, 255, 255, .78); }

.training { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 64px; }
.timeline { display: grid; gap: 24px; margin: 40px 0 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.timeline__n {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--lime-500); color: var(--navy-700); font-weight: 900;
}
.timeline h3 { color: var(--white); font-size: var(--fs-h4); }
.timeline p { margin-top: 4px; font-size: var(--fs-sm); color: rgba(255, 255, 255, .78); }

.training__side { display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.panel-outline { padding: 32px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-card); }
.panel-outline h3 {
  margin-bottom: 20px; color: var(--white);
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.check-list--dark li { color: rgba(255, 255, 255, .85); }
.check-list--badge .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--lime-500); color: var(--navy-700); stroke-width: 3;
}

/* Encabezado de sección a dos columnas */
.split-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.split-intro > p { color: var(--text-muted); }
.section-plain { padding: var(--section-y) 0; }

/* Selector de padecimientos: lista + ficha */
.picker { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 40px; }
.picker__list { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.picker__tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 22px; text-align: left;
  border: 2px solid var(--border-subtle); border-radius: var(--radius-pill);
  background: var(--white); color: var(--navy-700);
  font-family: inherit; font-size: var(--fs-sm); font-weight: 600;
  cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.picker__tab:hover { border-color: var(--navy-700); background: var(--navy-050); }
.picker__tab[aria-selected="true"] { border-color: var(--navy-700); background: var(--navy-700); color: var(--white); font-weight: 800; }
.picker__tab[aria-selected="true"]::after {
  content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--lime-500);
}
.picker__panel {
  flex: 2 1 480px; min-width: 0;
  padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-card); background: var(--navy-050);
}
.picker__panel .badges { margin-bottom: 12px; }
.picker__panel h3 { font-weight: 900; font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.01em; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 24px; margin-top: 24px; }
.facts h4 {
  margin-bottom: 8px; color: var(--teal-700);
  font-size: var(--fs-eyebrow); font-weight: 800; letter-spacing: var(--ls-eyebrow); text-transform: uppercase;
}
.facts p { font-size: var(--fs-sm); }

.alert {
  display: flex; gap: 16px; margin-top: 32px; padding: 20px 24px;
  border-radius: 14px; background: #E6F5F7; color: var(--teal-700);
}
.alert .icon { margin-top: 2px; font-size: 20px; }
.alert strong { display: block; margin-bottom: 2px; font-size: var(--fs-body); font-weight: 800; }
.alert p { font-size: var(--fs-sm); line-height: 1.55; }
.alert a { color: inherit; font-weight: 800; text-decoration: underline; }

.photo-box {
  display: flex; align-items: flex-end; justify-content: center;
  padding: 32px 32px 0; overflow: hidden;
  border-radius: var(--radius-media); background: var(--navy-050);
}
.photo-box img { width: 100%; max-width: 420px; height: auto; }

.callout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px; align-items: center; margin-top: 48px;
  padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-card); background: var(--lime-050);
}
.callout h3 { font-weight: 900; font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.callout p { margin-top: 16px; }
.callout .check-list { grid-template-columns: 1fr; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; margin-top: 40px; }
.step {
  display: flex; flex-direction: column; gap: 12px;
  padding: 32px 24px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-card);
}
.step__n { font-weight: 200; font-size: 48px; line-height: 1; color: var(--lime-500); }
.step h3 { color: var(--white); font-size: var(--fs-h4); }
.step p { color: rgba(255, 255, 255, .8); font-size: var(--fs-sm); }

/* Preguntas frecuentes */
.faq-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 48px; align-items: start; }
.faq-mascot { position: relative; display: flex; justify-content: center; margin-top: 32px; }
.faq-mascot::before {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(100%, 340px); aspect-ratio: 1; border-radius: 50%; background: var(--navy-050);
}
.faq-mascot img { position: relative; height: 400px; width: auto; transform: scaleX(-1); }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  border: 1px solid var(--border-subtle); border-radius: 14px; background: var(--white);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.faq details[open] { border-color: var(--navy-100); background: var(--navy-050); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; cursor: pointer; list-style: none;
  font-weight: 800; color: var(--navy-700);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 20px; color: var(--lime-600); transition: transform .2s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 24px 20px; font-size: var(--fs-sm); }

.cta-box .hero__actions { margin-top: 32px; }
.cta-box .contact-rows { margin-top: 0; }
.cta-box .contact-row__icon { background: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .navbar .container { flex-wrap: wrap; }
  .navbar__cta { margin-left: auto; }
  .nav {
    display: none; order: 3; flex-basis: 100%;
    flex-direction: column; gap: 0; padding-top: 8px;
    border-top: 1px solid var(--border-subtle);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a::after { display: none; }
}

@media (max-width: 960px) {
  .tabs__panel .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  :root { --section-y: 64px; --fs-h2: 28px; --fs-lead: 17px; --gutter: 16px; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar__links { display: none; }
  .navbar__logo img { height: 34px; }
  .navbar__cta { display: none; }
  .nav-toggle { margin-left: auto; }
  .hero { padding-top: 40px; }
  /* El alto mínimo iguala el diámetro del círculo de fondo para que no suba sobre los textos */
  .hero__media { min-height: min(calc(100vw - 2 * var(--gutter)), 480px); }
  .about__media { min-height: 0; }
  .about__media img:not(.sticker) { height: 420px; }
  .office__media { min-height: 0; }
  .tabs__panel .check-list { grid-template-columns: 1fr; }
  .hero__media--portrait { min-height: min(calc(100vw - 2 * var(--gutter)), 500px); }
  .hero__media--portrait img:not(.sticker) { height: 400px; }
  .faq-mascot img { height: 320px; }
  .sticker { width: calc(var(--size, 96px) * .7); }
  .tabs__list { display: flex; border-radius: var(--radius-card); }
  .tabs__tab { flex: 1 1 0; padding: 10px 14px; white-space: normal; line-height: 1.3; border-radius: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticker { animation: none; }
  *, *::before, *::after { transition: none !important; }
}
