/* ==========================================================================
   Fundación Unitrans — Hoja de estilos
   Mobile-first · breakpoints: 640px y 900px
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* Paleta de marca */
  --brand-blue: #6769BE;
  --brand-blue-dark: #4F51A3;
  --brand-pink-light: #F9B4C4;
  --brand-pink-pale: #FFCECB;
  --brand-pink-cream: #F2DFDB;
  --brand-white: #FFECE8;
  --brand-green: #55AEA0;
  --brand-mustard: #BAAB4A;

  /* Colores del logotipo (manual de marca) */
  --logo-black: #111111;
  --logo-orange: #FF4D0C;
  --logo-sky: #5BC5EC;
  --logo-pink: #F4A6B7;

  /* Texto y fondos */
  --text: #1A1A2E;
  --text-muted: #6B6B7B;
  --bg: #FFFFFF;
  --bg-soft: #F5F1FA;
  --border: #E6E1EE;

  /* Tipografía */
  --font-title: "Comfortaa", sans-serif;
  --font-body: "Inter", sans-serif;

  /* Forma y espacio */
  --radius-sm: 16px;
  --radius: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(26, 26, 46, 0.05);
  --shadow: 0 10px 30px rgba(103, 105, 190, 0.12);
  --container: 1120px;
  --gutter: 20px;
  --section-y: 64px;
  --header-h: 72px;
  --transition: 0.2s ease;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--brand-blue-dark); text-underline-offset: 3px; }
ul[class], ol[class] { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

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

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-pill);
  font-family: var(--font-title);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p + p { margin-top: 0.9em; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-blue-dark);
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}

.lead { font-size: 1.125rem; color: var(--text-muted); max-width: 60ch; }
.muted { color: var(--text-muted); }
.small { font-size: 0.875rem; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6A5F12;
  background: #F3EFD2;
  border-radius: var(--radius-pill);
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--lilac { background: var(--bg-soft); }
.section--pink { background: var(--brand-pink-cream); }
.section--blue { background: var(--brand-blue); color: #fff; }
.section--blue h2,
.section--blue .section__head h3 { color: #fff; }
.section--blue .section__head p { color: #fff; }
.section--blue .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; }

.section__head { max-width: 680px; margin-bottom: 36px; }
.section__head p { margin-top: 12px; color: var(--text-muted); }
.section--pink .section__head p { color: var(--text); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__foot { margin-top: 32px; }
.section__foot--center { text-align: center; }

.grid { display: grid; gap: 20px; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--brand-blue); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-blue-dark); }

.btn-outline { background: transparent; color: var(--brand-blue-dark); border-color: var(--brand-blue); }
.btn-outline:hover { background: var(--bg-soft); }

.btn-ghost { background: transparent; color: var(--brand-blue-dark); padding-inline: 8px; }
.btn-ghost:hover { text-decoration: underline; transform: none; }

.btn-block { width: 100%; }

/* Variantes sobre fondo azul */
.section--blue .btn-primary,
.cta--blue .btn-primary { background: #fff; color: var(--brand-blue-dark); }
.section--blue .btn-primary:hover,
.cta--blue .btn-primary:hover { background: var(--brand-white); }

/* ---------- 6. Header y navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

/* Logo oficial */
.logo { display: inline-flex; align-items: center; border-radius: 10px; }
.logo img { width: auto; height: 46px; }
@media (min-width: 900px) { .logo img { height: 52px; } }
.logo--compact img { height: 56px; }

/* Menú */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--bg-soft);
  border: 0;
  border-radius: 14px;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: none;
  padding: 12px var(--gutter) 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: block; }
.site-nav ul { display: flex; flex-direction: column; gap: 4px; list-style: none; padding: 0; }
.site-nav a {
  display: block;
  padding: 12px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.site-nav a:hover { background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--brand-blue-dark); background: var(--bg-soft); }
.site-nav .nav-cta { margin-top: 8px; }
.site-nav .nav-cta a { color: #fff; background: var(--brand-blue); text-align: center; }
.site-nav .nav-cta a:hover { background: var(--brand-blue-dark); }

/* ---------- 7. Hero ---------- */
.hero { padding-block: 48px 64px; overflow: hidden; }
.hero .container { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.hero__note svg { width: 18px; height: 18px; color: var(--brand-green); flex-shrink: 0; }
.hero__art { max-width: 280px; margin-inline: auto; width: 100%; }

.page-hero {
  padding-block: 56px 48px;
  background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%);
}
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18ch; }
.page-hero .lead { margin-top: 16px; }

/* ---------- 8. Tarjetas ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 24px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--text); }
.card p { color: var(--text-muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; }
.card-actions .btn { margin-top: 0; }
.card--flat { box-shadow: none; }
.section--blue .card,
.section--pink .card,
.section--lilac .card { border-color: transparent; }

a.card {
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--brand-blue-dark);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--pink { background: var(--brand-white); color: #B23A57; }
.card__icon--green { background: #E3F3F0; color: #2C7268; }
.card__icon--mustard { background: #F3EFD2; color: #6A5F12; }

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--brand-blue-dark);
}
.card__arrow svg { width: 18px; height: 18px; }

.card__number {
  font-family: var(--font-title);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
}

/* Tarjeta de servicio con datos */
.service-meta {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.service-meta { width: 100%; }
.service-meta div { display: grid; gap: 2px; }
.service-meta dt { font-weight: 600; color: var(--text); }
.service-meta dd { margin: 0; color: var(--text-muted); }

/* ---------- 9. Split / Quiénes somos ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split__highlight {
  padding: 32px 28px;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
}
.split__highlight p { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; line-height: 1.4; color: var(--text); }
.split__highlight .muted { margin-top: 12px; font-family: var(--font-body); font-size: 1rem; font-weight: 400; color: var(--text); }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.facts li {
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--bg-soft);
  border-radius: var(--radius-pill);
}

/* ---------- 10. Ruta / timeline ---------- */
.timeline { display: grid; gap: 16px; counter-reset: paso; }
.timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 20px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.section--blue .timeline__step { border-color: transparent; }
.timeline__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-blue);
  border-radius: 50%;
}
.timeline__step--optional .timeline__num { background: #fff; color: var(--brand-blue-dark); border: 2px dashed var(--brand-blue); }
.timeline__step h3 { margin-bottom: 4px; color: var(--text); }
.timeline__step p { color: var(--text-muted); }
.timeline__step .tag { margin-top: 8px; }

/* ---------- 11. Misión / Visión ---------- */
.mv { display: grid; gap: 20px; }
.mv__item { padding: 32px 28px; border-radius: var(--radius-lg); }
.mv__item h3 { margin-bottom: 12px; font-size: 1.4rem; }
.mv__item--mission { background: var(--bg-soft); }
.mv__item--vision { background: var(--brand-white); }

/* ---------- 12. Alianzas ---------- */
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 16px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.partner-card .partner-card__name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

/* ---------- 13. Notice ---------- */
.notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px 22px;
  background: #FFF8E6;
  border: 1px solid #F0DFA8;
  border-left: 6px solid var(--brand-mustard);
  border-radius: var(--radius-sm);
  color: var(--text);
}
.notice svg { width: 24px; height: 24px; flex-shrink: 0; color: #6A5F12; margin-top: 2px; }
.notice strong { font-family: var(--font-title); }
.notice p + p { margin-top: 6px; }
.notice--info { background: var(--bg-soft); border-color: var(--border); border-left-color: var(--brand-blue); }
.notice--info svg { color: var(--brand-blue-dark); }
.notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.notice--cirugia { margin-bottom: 32px; }

/* ---------- 14. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq__item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq__question { margin: 0; font-size: 1.05rem; }
.faq__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  font-family: var(--font-title);
  font-weight: 700;
  text-align: left;
  background: transparent;
  border: 0;
}
.faq__button:hover { background: var(--bg-soft); }
.faq__button svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand-blue-dark); transition: transform var(--transition); }
.faq__button[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__panel { padding: 0 22px 22px; color: var(--text-muted); }
.faq__panel[hidden] { display: none; }

/* ---------- 15. Equipo ---------- */
.profile { align-items: flex-start; }
.profile__role { font-weight: 600; color: var(--brand-blue-dark) !important; }
.profile__bio { font-style: italic; }

/* ---------- 16. Historia clínica / contacto ---------- */
.feature-box {
  display: grid;
  gap: 24px;
  padding: 36px 28px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.feature-box h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.feature-box__privacy {
  display: flex;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.feature-box__privacy svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand-green); margin-top: 2px; }

.email-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 28px;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
}
.email-box__address {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 4vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
}

/* ---------- 16b. Asesoría personalizada ---------- */
.advisory { display: grid; gap: 28px; align-items: start; }
.advisory h4 { margin-top: 8px; font-size: 1.05rem; }
.advisory__steps-title { margin-bottom: 18px; font-size: 1.35rem; }

.checklist { display: grid; gap: 12px; list-style: none; padding: 0; }
.checklist li { display: flex; gap: 10px; color: var(--text); }
.checklist svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--brand-green); }

.steps { display: grid; gap: 14px; list-style: none; padding: 0; }
.steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps strong { display: block; font-family: var(--font-title); color: var(--text); line-height: 1.35; }
.steps p { margin-top: 4px; color: var(--text-muted); }
.steps__num {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-family: var(--font-title); font-weight: 700;
  color: #fff; background: var(--brand-blue); border-radius: 50%;
}
.steps--compact li { grid-template-columns: 32px 1fr; gap: 10px; }
.steps--compact .steps__num { width: 32px; height: 32px; font-size: 0.9rem; }

/* Subnavegación interna */
.subnav { margin-top: 28px; }
.subnav ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.subnav a {
  display: inline-block;
  padding: 8px 16px;
  font-family: var(--font-title);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-blue-dark);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.subnav a:hover { background: var(--bg-soft); border-color: var(--brand-blue); }

/* Directorio de especialistas */
.avatar {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--border);
}
.avatar__initials { font-family: var(--font-title); font-size: 1.35rem; font-weight: 700; color: #fff; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.advisory__profile .avatar { width: 96px; height: 96px; }
.advisory__person { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.advisory__person strong { font-family: var(--font-title); font-size: 1.1rem; }

/* Logos de aliados */
.partner__logo { max-width: 100%; max-height: 56px; width: auto; object-fit: contain; }
.logo-strip { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.logo-strip img { max-height: 48px; max-width: 120px; width: auto; object-fit: contain; }

/* Producto en tablas de precios */
.product { display: flex; align-items: center; gap: 12px; }
.product img {
  width: 56px; height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.profile__note {
  display: flex; gap: 8px;
  padding: 10px 12px;
  font-size: 0.9375rem;
  color: var(--text) !important;
  background: #FFF8E6;
  border-radius: 12px;
}
.profile__note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: #6A5F12; }
.profile__contacts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; width: 100%; }
.card .profile__contacts .btn { margin-top: 0; align-self: stretch; font-size: 0.9375rem; }

/* Terapia hormonal */
.hrt { display: grid; gap: 20px; }
.hrt__col { gap: 16px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.price-table caption {
  padding-bottom: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  text-align: left;
  color: var(--text);
}
.price-table th, .price-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.price-table thead th { font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: var(--bg-soft); }
.price-table tbody th { font-weight: 500; color: var(--text); }
.price-table td { font-weight: 600; text-align: right; white-space: nowrap; color: var(--text); }
.price-table thead th:last-child { text-align: right; }
.price-table tbody th a { color: var(--text); text-decoration-color: var(--border); }
.price-table tbody th a:hover { color: var(--brand-blue-dark); text-decoration-color: currentColor; }
.price-usd { display: block; }
.price-bs { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
.price-unit { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.price-table td.is-stale .price-usd::after { content: " *"; color: #6A5F12; }

.rate-bar {
  margin-bottom: 20px;
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-blue-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  width: fit-content;
  max-width: 100%;
}

/* ---------- 16c. Registro de pacientes ---------- */
/* Sin registro: se ocultan costos y contactos ([data-privado]) y se muestra la invitación ([data-candado]) */
.reg-locked [data-privado] { display: none !important; }
html:not(.reg-locked) [data-candado] { display: none !important; }

.lock-note {
  display: flex; gap: 8px; align-items: flex-start;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}
.lock-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; color: var(--brand-blue-dark); }
.lock-box {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px dashed var(--brand-blue);
  border-radius: var(--radius);
}
.lock-box strong { font-family: var(--font-title); }
.lock-box p { margin: 4px 0 14px; color: var(--text-muted); }
.lock-box .card__icon { margin: 0; flex-shrink: 0; }

.reg-form { gap: 0; padding: 28px 22px; }
.reg-form fieldset { margin: 0 0 8px; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--border); }
.reg-form fieldset + fieldset, .reg-form fieldset + .reg-consent { padding-top: 20px; }
.reg-form legend {
  float: left; width: 100%;
  margin-bottom: 16px; padding: 0;
  font-family: var(--font-title); font-size: 1.2rem; font-weight: 700; color: var(--text);
}
.reg-form legend + * { clear: both; }
.field-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field--short { max-width: 160px; }
.field label, .field-label { font-weight: 600; color: var(--text); }
.field-label { margin: 16px 0 10px; }
.req { color: #B23A57; }
.field-help { font-size: 0.875rem; color: var(--text-muted); font-weight: 400; }
.reg-form input[type="text"], .reg-form input[type="email"], .reg-form input[type="tel"],
.reg-form input[type="number"], .reg-form input[type="date"], .reg-form select, .reg-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1.5px solid #CFC8DC;
  border-radius: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.reg-form textarea { resize: vertical; }
.reg-form input:focus, .reg-form select:focus, .reg-form textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(103, 105, 190, 0.2);
}
.reg-form input:user-invalid, .reg-form select:user-invalid { border-color: #B23A57; }
.choice-group { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--text); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--brand-blue); }
.choice-group .check {
  padding: 12px 14px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
}
.choice-group .check:has(input:checked) { border-color: var(--brand-blue); background: var(--bg-soft); }
.reg-form .notice { margin-top: 16px; }
.reg-form .notice p + label { margin-top: 10px; }
.reg-consent { display: grid; gap: 8px; padding-top: 20px; }
.reg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-status { color: var(--text-muted); }
.form-status.is-error { color: #B23A57; font-weight: 600; }
.reg-success { align-items: flex-start; padding: 32px 28px; }
.reg-success:focus { outline: none; }
#reg-ya-registrado { margin-bottom: 20px; }
.reg-acceso { display: grid; gap: 18px; margin-bottom: 28px; padding: 28px 22px; background: var(--bg-soft); border-color: transparent; }
.reg-acceso h3 { margin-bottom: 6px; }
.reg-acceso p { color: var(--text-muted); }
.acceso-form { display: grid; gap: 14px; align-items: end; }
.acceso-form input {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid #CFC8DC; border-radius: 14px;
}
.acceso-form input:focus { outline: none; border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(103, 105, 190, 0.2); }
.acceso-form .form-status { grid-column: 1 / -1; }
.reg-separador { display: flex; align-items: center; gap: 14px; margin: 8px 0 20px; font-family: var(--font-title); font-weight: 700; color: var(--text); }
.reg-separador::before, .reg-separador::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.field--date { max-width: 260px; }
.choice-group--inline { grid-template-columns: repeat(2, minmax(0, 120px)); }
.lopnna { margin-top: 16px; padding: 18px; background: var(--bg-soft); border-radius: var(--radius); }
.lopnna blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--logo-orange); }
.lopnna blockquote p { font-style: italic; color: var(--text); }
.lopnna blockquote footer { margin-top: 6px; font-size: 0.875rem; font-weight: 600; color: var(--text-muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.reg-success .notice { margin-top: 4px; }

/* ---------- 17. CTA final ---------- */
.cta {
  padding: 48px 28px;
  text-align: center;
  background: var(--brand-blue);
  color: #fff;
  border-radius: var(--radius-lg);
}
.cta h2 { color: #fff; }
.cta p { max-width: 54ch; margin: 14px auto 26px; color: #fff; }

/* ---------- 18. Footer ---------- */
.site-footer {
  padding-block: 56px 32px;
  background: var(--text);
  color: #E9E7F0;
}
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 36px; }
.footer__tagline { margin-top: 14px; max-width: 36ch; color: #CFCBDB; }
.footer__title {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #fff;
}
.footer__links { display: grid; gap: 10px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  word-break: break-all;
}
.footer__links a:hover { text-decoration: underline; }
.footer__links svg { width: 20px; height: 20px; flex-shrink: 0; }
.footer__disclaimer {
  margin-top: 40px;
  padding: 16px 20px;
  font-size: 0.9375rem;
  color: #E9E7F0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  font-size: 0.875rem;
  color: #CFCBDB;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* ==========================================================================
   Breakpoint 640px
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: 28px; --section-y: 80px; }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--6 { grid-template-columns: repeat(2, 1fr); }

  .partners { grid-template-columns: repeat(3, 1fr); }
  .mv { grid-template-columns: repeat(2, 1fr); }
  .timeline--preview { grid-template-columns: repeat(2, 1fr); }
  .feature-box { padding: 48px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field--wide { grid-column: 1 / -1; }
  .choice-group--grid { grid-template-columns: 1fr 1fr; }
  .cta { padding: 64px 48px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ==========================================================================
   Breakpoint 900px
   ========================================================================== */
@media (min-width: 900px) {
  :root { --section-y: 96px; --header-h: 80px; }

  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: 4px; }
  .site-nav a { padding: 10px 16px; border-radius: var(--radius-pill); }
  .site-nav .nav-cta { margin: 0 0 0 8px; }

  .hero { padding-block: 72px 96px; }
  .hero .container { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
  .hero__art { max-width: 420px; }
  .page-hero { padding-block: 80px 64px; }

  .grid--3,
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }

  .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
  .timeline--preview { grid-template-columns: repeat(3, 1fr); }
  .timeline--full { max-width: 860px; }
  .partners { grid-template-columns: repeat(6, 1fr); }
  .feature-box { grid-template-columns: 1.3fr 1fr; align-items: center; padding: 56px; }
  .advisory { grid-template-columns: 1fr 1fr; gap: 48px; }
  .hrt { grid-template-columns: 1fr 1fr; }
  .reg-form { padding: 40px; }
  .reg-acceso { padding: 32px 40px; }
  .acceso-form { grid-template-columns: 1.4fr 1fr auto; }
}

/* ---------- Tarjetas oscuras: laboratorios y alianzas ---------- */
#laboratorios .card,
#alianzas .partner-card {
  background: #111118;
  border-color: #111118;
  color: #fff;
}
#laboratorios .card :is(h3, strong, dt),
#alianzas .partner-card :is(h3, h3.partner-card__name) { color: #fff; }
#laboratorios .card :is(p, dd, li),
#alianzas .partner-card p { color: #D4D4DE; }
#laboratorios .card a:not(.btn) { color: #fff; }
#laboratorios .service-meta { background: #24243A; }
#laboratorios .steps__num { background: #fff; color: #111118; }
#laboratorios .card .btn-primary,
#alianzas .partner-card .btn-primary { background: #fff; color: #111118; }
#laboratorios .card .btn-primary:hover,
#alianzas .partner-card .btn-primary:hover { background: #E6E6F0; }
#laboratorios .card .btn-outline,
#alianzas .partner-card .btn-outline { color: #fff; border-color: #fff; }
#laboratorios .card .btn-outline:hover,
#alianzas .partner-card .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Especialista de vacaciones ---------- */
.vacation-note {
  display: flex; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.9375rem;
  color: var(--text) !important;
  background: linear-gradient(135deg, #FFF3E0, #FFE7EC);
  border-radius: 14px;
}
.vacation-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--logo-orange); }
.vacation-note strong { display: block; font-family: var(--font-title); color: var(--text); }
