/* =========================================================
   Amanda Tamayo · Psicóloga perinatal online
   Basado en la "Propuesta 1" aprobada (fiel a la plantilla del curso).

   PALETA: todos los colores del sitio salen del bloque :root de abajo.
   Para cambiar de paleta, edita SOLO los colores base de ese bloque
   (candidatas en atamayo_propuesta/_herramientas/gen_paletas.py, lista P).
   Los colores derivados se calculan solos con color-mix().
   ========================================================= */

/* ---------- Fuentes alojadas en la propia web (sin Google Fonts) ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("../fonts/fraunces-normal-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 400 500; font-display: swap;
  src: url("../fonts/fraunces-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* =========================================================
   PALETA (único sitio con colores). Actual: "Buganvilla empolvada" (paleta 2)
   ========================================================= */
:root {
  /* --- Colores base: cambiar estos para cambiar de paleta --- */
  --primary: #A8466F;        /* botones, acentos (texto blanco encima >= 4.5:1) */
  --primary-dark: #863859;   /* hover de botones (≈ primary mezclado con 20 % de negro) */
  --secondary: #79616C;      /* detalles decorativos */
  --soft: #F2E2E4;           /* fondo de secciones alternas */
  --bg: #FAF3EA;             /* fondo general */
  --text: #3D2F34;           /* texto principal y fondo del pie */
  --logo: var(--primary);    /* monograma de la cabecera: el rosa fuerte de la paleta (petición de Amanda) */
  --white: #FFFFFF;
  --muted: #675A5C;          /* texto secundario (>= 5:1 sobre --bg y --soft) */
  --line: #DCCBCE;           /* bordes suaves (≈ soft + 18 % secondary) */
  --online: #3FA36B;         /* punto verde "online" (decorativo) */
  --whatsapp: #117A3E;       /* verde WhatsApp oscurecido: texto blanco encima >= 5:1 */

  /* --- Colores derivados (no tocar: se recalculan solos) --- */
  --bg-deep: color-mix(in srgb, var(--soft) 50%, var(--bg));
  --glow: color-mix(in srgb, var(--bg) 50%, var(--white));
  --arch-edge: color-mix(in srgb, var(--soft) 75%, var(--secondary));
  --frame-edge: color-mix(in srgb, var(--soft) 82%, var(--secondary));
  --header-bg: color-mix(in srgb, var(--bg) 92%, transparent);
  --shadow-c: color-mix(in srgb, var(--text) 8%, transparent);
  --shadow-c-strong: color-mix(in srgb, var(--text) 14%, transparent);
  --primary-ring: color-mix(in srgb, var(--primary) 18%, transparent);
  --primary-shadow: color-mix(in srgb, var(--primary) 28%, transparent);
  --secondary-glow: color-mix(in srgb, var(--secondary) 18%, transparent);
  --secondary-ring: color-mix(in srgb, var(--secondary) 22%, transparent);
  --online-ring: color-mix(in srgb, var(--online) 18%, transparent);
  --footer-line: color-mix(in srgb, var(--bg) 20%, transparent);
  --overlay: color-mix(in srgb, var(--text) 45%, transparent);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px var(--shadow-c);
  --shadow-btn: 0 10px 24px var(--primary-shadow);
  --container: 1140px;
  --gutter: 16px;
  --header-h: 72px;
}

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

/* El atributo hidden debe ganar siempre a los display de componentes (.btn, etc.) */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
strong { font-weight: 600; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--text);
}
h1 em, h2 em { font-style: italic; color: var(--primary); font-weight: 400; }

p { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--primary); color: var(--white); padding: .6em 1em;
  border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
.narrow { max-width: 860px; }
.center { text-align: center; }
.break { overflow-wrap: anywhere; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.3;
  padding: .95em 2em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--text); }
.btn-sm { padding: .6em 1.4em; font-size: .95rem; box-shadow: none; }
.btn-block { width: 100%; }
.btn-arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; flex: none; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.center .btn-group, .btn-group.center { justify-content: center; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 4px 20px var(--shadow-c); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; line-height: 1.1; text-decoration: none; color: var(--text); margin: 0; }
.brand-text { display: flex; flex-direction: column; }
/* Monograma AΨ del logo: máscara alfa, así el color sale de la paleta (--logo) */
.brand-mark {
  flex: none; width: 58px; aspect-ratio: 266 / 160; background: var(--logo);
  -webkit-mask: url("/images/logo-monograma.png") center / contain no-repeat;
          mask: url("/images/logo-monograma.png") center / contain no-repeat;
}
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.brand-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 500; margin-top: 2px; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.6rem; }
.site-nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: .95rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--secondary); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 500; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: var(--soft); cursor: pointer; position: relative; flex: none;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transition: transform .25s, opacity .25s; transform: translateX(-50%);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; transform: none; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); box-shadow: 0 12px 24px var(--shadow-c);
    display: none;
  }
  .no-js .site-nav { position: static; display: block; box-shadow: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; }
  .site-nav li a:not(.btn) { display: block; padding: .8em 0; border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta-item { margin-top: 16px; }
  .nav-cta-item .btn { width: 100%; }
}

/* Cabecera simplificada de la landing (marca + botón) */
.header-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 420px) { .header-cta .btn { padding: .55em 1em; font-size: .9rem; } .brand-name { font-size: 1.25rem; } .brand-mark { width: 48px; } }

/* ---------- Hero ---------- */
.hero {
  padding: 48px 0 72px;
  background:
    radial-gradient(circle at 85% 20%, var(--secondary-glow), transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px; }
.hero-grid > * { min-width: 0; }

.pill-badge {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--white); border-radius: 999px;
  padding: .55em 1.3em .55em 1em;
  font-weight: 500; font-size: .95rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.4rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--online); flex: none;
  box-shadow: 0 0 0 4px var(--online-ring);
}
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500;
  color: var(--primary); margin-bottom: .8rem;
}
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 4.2rem); line-height: 1.08; margin-bottom: .45em; letter-spacing: -.01em; overflow-wrap: break-word; }
.hero h1 em { display: block; }
.hero-home h1 em { display: inline; }
.hero-home .hero-badges { flex-direction: column; align-items: flex-start; }
/* Portada de la landing de fertilidad: mismo tratamiento que Inicio (fondo vainilla de .hero) */
.hero-lp h1 em { display: inline; }
.hero-lp .hero-badges { flex-direction: column; align-items: flex-start; }
.hero-lp .pill-badge.pill-title { font-size: 1.12rem; line-height: 1.3; border-radius: var(--radius); }
.lp-after-split { margin-top: 40px; }
.hero-lead { font-size: 1.08rem; color: var(--muted); max-width: 34em; margin-bottom: 2rem; }
.hero-lead strong { color: var(--text); }
.hero-note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; }

.hero-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1.4rem; }
.hero-badges .pill-badge { margin-bottom: 0; }
.pill-badge.pill-title {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 500;
  color: var(--primary); padding: .4em 1.1em;
}

.hero-media { position: relative; justify-self: center; width: 100%; max-width: 430px; }
/* Foto de portada: rectangular con esquinas suaves (Amanda no la quiere en arco) */
.hero-photo {
  aspect-ratio: 43 / 56;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--glow) 0%, var(--soft) 55%, var(--arch-edge) 100%);
  box-shadow: var(--shadow);
  position: relative;
}
.hero-photo img { position: absolute; inset: 6% 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* Etiqueta flotante sobre la foto (solo en la landing de fertilidad) */
.float-pill {
  position: absolute; left: -28px; bottom: 56px; margin: 0;
  background: var(--white); border-radius: 999px; padding: .75em 1.5em;
  font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px var(--shadow-c-strong);
}

@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { max-width: 340px; }
  .float-pill { left: 0; bottom: 32px; }
}

/* Cabecera de páginas interiores */
.page-hero { padding: 56px 0 64px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18em; margin-left: auto; margin-right: auto; }
.page-hero h1 em { display: inline; }
.page-hero .hero-lead { margin-left: auto; margin-right: auto; }
.page-hero .btn-group { justify-content: center; }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-tight { padding-top: 24px; }
@media (max-width: 700px) { .section { padding: 64px 0; } .section-tight { padding-top: 16px; } }

.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; margin-bottom: 1.2em; overflow-wrap: break-word; }
.section-title.align-left { text-align: left; }
.section-title.has-intro { margin-bottom: .5em; }
.section-intro { text-align: center; max-width: 640px; margin: 0 auto 2rem; }
/* Foto panorámica bajo el título de sección (el encuadre se ajusta con object-position en el HTML) */
.section-photo {
  margin: 0 0 2.2rem; aspect-ratio: 2 / 1; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--soft);
}
.section-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .section-photo { aspect-ratio: 4 / 3; margin-bottom: 1.6rem; } }
/* Foto a un lado + pestañas al otro (Inicio: «Más dura» y «Permíteme ayudarte») */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }
.split-reverse .split-photo { order: 2; }
.split-photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow); background: var(--soft);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.split .tab-list { justify-content: flex-start; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split-reverse .split-photo { order: 0; }
  .split-photo { aspect-ratio: 4 / 3; }
  .split .tab-list { justify-content: center; }
}
.kicker { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 500; color: var(--primary); margin-bottom: .6rem; }
.section-soft .kicker, .section-soft .eyebrow { color: var(--primary-dark); }

/* ---------- Tabs (problema / solución) ---------- */
.tab-list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-bottom: 28px;
}
.tab-list [role="tab"] {
  font: 500 .92rem var(--font-body);
  color: var(--text); background: var(--white);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: .55em .7em .55em 1.2em; cursor: pointer;
  display: inline-flex; align-items: center; gap: .6em;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
/* «+» dibujado con CSS: indica que se puede pulsar; en la pestaña abierta pasa a «−» */
.tab-list [role="tab"]::after {
  content: ""; flex: none; width: 1.45em; height: 1.45em; border-radius: 50%;
  border: 1.5px solid currentColor;
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 9px no-repeat;
  transition: transform .25s;
}
.tab-list [role="tab"]:hover { transform: translateY(-1px); }
.tab-list [role="tab"]:hover::after { transform: rotate(90deg); }
.tab-list [role="tab"][aria-selected="true"]::after {
  background: linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat;
}
.tab-list [role="tab"]:hover { border-color: var(--primary); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--white); }
.section-soft .tab-list [role="tab"] { border-color: transparent; }
.section-soft .tab-list [role="tab"]:hover { border-color: var(--primary); }

.tab-panel {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px 36px; box-shadow: var(--shadow);
  animation: fadeUp .4s ease;
}
.tab-panel + .tab-panel { margin-top: 16px; }
.js .tab-panel + .tab-panel { margin-top: 0; }
@media (max-width: 600px) { .tab-panel { padding: 24px 20px; } }

.pain-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pain-list li, .check-list li { position: relative; padding-left: 36px; }
.pain-list li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--secondary); box-shadow: 0 0 0 5px var(--secondary-ring);
}
/* Check dibujado con CSS (sin colores incrustados en SVG) */
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary);
}
.check-list li::after {
  content: ""; position: absolute; left: 8.5px; top: calc(.2em + 6px);
  width: 6px; height: 10px;
  border: solid var(--white); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.check-list.compact { gap: 10px; margin-bottom: 2rem; }

/* ---------- Mi enfoque ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-grid.align-start { align-items: start; }
.about-media { position: relative; max-width: 420px; justify-self: center; width: 100%; }
.about-media::before {
  content: ""; position: absolute; inset: 24px -18px -18px 24px;
  border-radius: var(--radius-lg); background: var(--secondary); opacity: .55;
}
.about-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--glow), var(--frame-edge));
}
.about-frame img { position: absolute; inset: 5% 0 0 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.about-frame.is-photo img { inset: 0; object-position: center top; }
.about-text h3 { font-size: 1.35rem; margin-top: 1.4em; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { max-width: 320px; }
}

/* Texto largo de una columna (Sobre mí, legales) */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2:not(.section-title) { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li + li { margin-top: .35em; }
.prose .lead { font-size: 1.12rem; }
.legal-meta { color: var(--muted); font-size: .92rem; }
.pending {
  background: var(--soft); color: var(--text); border-radius: 6px; padding: 0 .3em;
  font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.notice {
  background: var(--white); border-left: 4px solid var(--primary); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); margin: 0 0 2rem;
}
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.data-table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--white); border-radius: var(--radius); overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { background: var(--soft); font-weight: 600; }

/* ---------- Tiles ---------- */
.tiles {
  list-style: none; margin: 0 0 32px; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
}
.tile {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-weight: 500;
  transition: transform .25s, box-shadow .25s;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px var(--shadow-c-strong); }
.icon {
  width: 56px; height: 56px; padding: 10px; border-radius: 50%;
  background: var(--soft); flex: none;
  fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.section-soft .icon { background: var(--bg); }
.tiles-note { text-align: center; font-size: 1.1rem; margin-bottom: 28px; }
@media (max-width: 480px) { .tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .tile { padding: 22px 12px; font-size: .92rem; } }

/* Tarjetas que se voltean (Inicio, «¿En qué momentos…?»): delante etapa, detrás frase de apoyo */
.tiles-flip { display: flex; flex-wrap: wrap; justify-content: center; }
.tiles-flip .tile-flip { flex: 0 1 calc((100% - 4 * 18px) / 5); }
.tile-flip { padding: 0; background: none; box-shadow: none; display: flex; perspective: 900px; }
.tile-flip:hover { box-shadow: none; }
.flip {
  flex: 1; display: grid; width: 100%; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius);
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.flip[aria-expanded="true"] { transform: rotateY(180deg); }
.flip-face {
  grid-area: 1 / 1; position: relative;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 18px 34px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  min-height: 192px;
  text-align: center; font-weight: 500;
}
.flip-back {
  transform: rotateY(180deg); background: var(--primary); color: var(--white);
  font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.08rem; line-height: 1.35;
}
/* «+» en la esquina: indica que la tarjeta se puede pulsar */
.flip-hint {
  position: absolute; right: 12px; bottom: 12px; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--primary); color: var(--primary);
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 9px no-repeat;
  transition: transform .25s;
}
.flip:hover .flip-hint { transform: rotate(90deg); }
@media (max-width: 1000px) { .tiles-flip .tile-flip { flex-basis: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 700px) { .flip-face { min-height: 216px; } }
@media (max-width: 480px) {
  .tiles-flip .tile-flip { flex-basis: calc((100% - 12px) / 2); }
  .flip-face { padding: 22px 12px 32px; font-size: .92rem; }
  .flip-back { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) { .flip { transition: none; } }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  margin: 0; background: var(--white); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  border: 2px dashed var(--line);
}
.testimonial .quote { width: 36px; height: 36px; fill: var(--secondary); margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 20px; flex: 1; color: var(--muted); font-style: italic; }
.testimonial figcaption { font-size: .95rem; color: var(--muted); }
.testimonial figcaption strong { color: var(--text); }
@media (max-width: 860px) { .testimonials { grid-template-columns: 1fr; } }

/* ---------- Tarifas ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 40px 28px;
  text-align: center; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center;
  border: 2px solid var(--primary);
}
.price-card h3 { font-size: 1.4rem; }
.price { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--primary); margin: .2em 0 .5em; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; color: var(--muted); }
.price-card li + li { margin-top: 4px; }
.price-card.featured { transform: translateY(-8px); }
.pricing-note { text-align: center; color: var(--muted); margin-top: 28px; font-size: .95rem; }
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.featured { transform: none; }
}

/* ---------- Pasos (3 en horizontal) ---------- */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { text-align: center; position: relative; padding: 0 8px; }
.step-num {
  display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); color: var(--primary); font-family: var(--font-display);
  font-size: 1.8rem; font-style: italic; box-shadow: var(--shadow); margin-bottom: 18px;
  position: relative; z-index: 1;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 44px); width: calc(100% - 88px + 28px);
  border-top: 2px dashed var(--secondary);
}
.step h3 { font-size: 1.3rem; }
.step p { color: var(--muted); max-width: 18em; margin: 0 auto; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .step:not(:last-child)::after { display: none; }
}

/* ---------- Pasos en vertical (Cómo funciona) ---------- */
.timeline { list-style: none; margin: 0 auto 48px; padding: 0; max-width: 780px; display: grid; gap: 22px; }
.timeline-item {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start;
}
.timeline-item:not(:last-child)::before {
  content: ""; position: absolute; left: 31px; top: 70px; bottom: -22px;
  border-left: 2px dashed var(--secondary);
}
.timeline-item .step-num { margin: 0; }
.timeline-card { background: var(--white); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); min-width: 0; }
.timeline-card h2 { font-size: 1.45rem; margin-bottom: .4em; }
.timeline-card p { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .timeline-item { grid-template-columns: 48px 1fr; gap: 14px; }
  .timeline-item .step-num { width: 48px; height: 48px; font-size: 1.4rem; }
  .timeline-item:not(:last-child)::before { left: 23px; top: 54px; }
  .timeline-card { padding: 20px; }
}

/* ---------- Es adecuado ---------- */
.fit-list { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); margin-bottom: 40px; gap: 18px; }
@media (max-width: 600px) { .fit-list { padding: 24px 20px; } }

/* ---------- Acordeón (preguntas frecuentes) ---------- */
.accordion { max-width: 820px; margin: 0 auto 48px; display: grid; gap: 14px; }
.accordion-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.accordion-item h2, .accordion-item h3 { margin: 0; font-size: inherit; font-family: inherit; }
.accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  font: 500 1.15rem/1.35 var(--font-display); color: var(--text);
  padding: 22px 26px; border-radius: var(--radius);
}
.accordion-trigger:hover { color: var(--primary); }
.accordion-icon {
  position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--soft); flex: none;
}
.accordion-icon::before, .accordion-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  background: var(--primary); border-radius: 2px; transition: transform .25s;
}
.accordion-icon::after { transform: rotate(90deg); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: rotate(0deg); }
.accordion-panel { padding: 0 26px 22px; color: var(--muted); }
.accordion-panel p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .accordion-trigger { padding: 18px 18px; font-size: 1.05rem; }
  .accordion-panel { padding: 0 18px 18px; }
}

/* ---------- Banda de llamada a la acción ---------- */
.cta-band { background: var(--text); color: var(--bg); text-align: center; }
.cta-band h2 { color: var(--bg); }
.cta-band h2 em { color: var(--soft); }
.cta-band p { max-width: 620px; margin-left: auto; margin-right: auto; }
.cta-band .btn-group { justify-content: center; margin-top: 1.6rem; }
.cta-band .btn-outline { color: var(--bg); border-color: var(--bg); }
.cta-band .btn-outline:hover { background: var(--bg); color: var(--text); }
.cta-band :focus-visible { outline-color: var(--soft); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-online { display: inline-flex; align-items: center; gap: .7em; font-weight: 500; background: var(--white); border-radius: 999px; padding: .4em 1.1em .4em .9em; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list a {
  display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text);
  background: var(--white); border-radius: var(--radius); padding: 14px 18px;
  transition: transform .2s, box-shadow .2s;
}
.contact-list a:hover { transform: translateX(4px); box-shadow: var(--shadow); color: var(--text); }
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--primary-dark); font-weight: 500; }
.contact-list > li > a > span { min-width: 0; font-weight: 500; }
/* Tarjeta de WhatsApp en verde para que se reconozca (petición de Amanda) */
.contact-list a.contact-wa, .contact-list a.contact-wa:hover { background: var(--whatsapp); color: var(--white); }
.contact-list a.contact-wa small { color: var(--white); }
.contact-list a.contact-wa .icon-sm { background: var(--white); stroke: var(--whatsapp); }
.icon-sm {
  width: 44px; height: 44px; padding: 10px; border-radius: 50%; flex: none; background: var(--soft);
  fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow); }
.contact-form h2 { font-size: 1.6rem; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--font-body); color: var(--text);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px;
  padding: .8em 1em; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring);
}
.field-hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.field-check { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 16px; font-size: .92rem; }
.field-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form-legal { font-size: .8rem; color: var(--muted); margin: 0 0 20px; line-height: 1.55; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } .contact-form { padding: 24px 20px; } }

/* ---------- Pie ---------- */
.site-footer { background: var(--text); color: var(--bg); padding: 56px 0 24px; font-size: .95rem; }
.site-footer a, .site-footer .link-button { color: var(--bg); text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: var(--soft); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--soft); }
.brand-footer .brand-name { color: var(--bg); }
.brand-footer .brand-mark { background: var(--bg); }
.brand-footer .brand-tag { color: var(--soft); }
.brand-footer { margin-bottom: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid > * { min-width: 0; }
.footer-title { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 12px; color: var(--soft); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  border-top: 1px solid var(--footer-line); margin-top: 40px; padding-top: 20px; font-size: .85rem;
}
.footer-bottom p { margin: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); display: grid; place-items: center;
  box-shadow: var(--shadow-btn);
  transition: transform .25s, background-color .25s;
}
.wa-float:hover { transform: scale(1.07); background: var(--primary-dark); }
.wa-float svg { width: 30px; height: 30px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cookies-open .wa-float { display: none; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 250;
  max-width: 720px; margin: 0 auto;
  background: var(--white); color: var(--text);
  border-radius: var(--radius-lg); box-shadow: 0 20px 50px var(--shadow-c-strong);
  border: 1.5px solid var(--line);
  padding: 24px 28px; max-height: calc(100vh - 32px); overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.35rem; margin-bottom: .4em; }
.cookie-banner p { font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.cookie-actions .btn { flex: 1 1 140px; padding: .75em 1.2em; font-size: .95rem; box-shadow: none; }
.cookie-actions .btn-primary, .cookie-actions .btn-outline { transform: none; }
.cookie-prefs { border: 0; margin: 4px 0 12px; padding: 0; display: grid; gap: 10px; }
.cookie-prefs legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.cookie-pref { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
.cookie-pref input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.cookie-pref strong { display: block; }
.cookie-pref span { color: var(--muted); }
@media (max-width: 560px) { .cookie-banner { padding: 20px; left: 8px; right: 8px; bottom: 8px; } }

/* ---------- Página de gracias / 404 ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; padding: 64px var(--gutter); text-align: center; }
.thanks-card { max-width: 600px; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .4em; }
.thanks p { margin: 0 auto 1.4em; }
.thanks .btn-group { justify-content: center; }

/* ---------- Animaciones ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* Enlaces de texto dentro de la banda oscura */
.cta-band a:not(.btn) { color: var(--bg); }
.cta-band a:not(.btn):hover { color: var(--soft); }
.cta-band .hero-note { color: var(--bg); }
.contact-extras { margin-top: 28px; }
