/* ==========================================================================
   Lorena Rodríguez · Psicóloga (Serenpsiquia)
   Hoja de estilos principal
   ========================================================================== */

/* ---------- Fuentes autoalojadas (sin peticiones a terceros · RGPD) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-300-normal.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #FFFFFF;
  --soft: #F6E3E8;
  --soft-light: #FBF0F3;      /* tinte suave para etiquetas sobre blanco (AA con primary) */
  --primary: #9A5468;
  --primary-hover: #86475A;
  --accent: #C98BA3;          /* SOLO decorativo: nunca para texto */
  --text: #4A2738;
  --text-2: #6E5563;
  --border: #EEDCE2;
  --field-border: #AD8494;    /* bordes de campos: 3:1 sobre blanco (WCAG 1.4.11) */
  --card: #FFFFFF;
  --error: #A3243B;
  --wa: #25D366;
  --on-dark: #F6E3E8;
  --on-dark-2: #E7BFCD;

  --radius-btn: 10px;
  --radius-card: 20px;
  --shadow-card: 0 1px 2px rgba(74, 39, 56, .04), 0 14px 34px -16px rgba(74, 39, 56, .18);
  --shadow-hover: 0 2px 4px rgba(74, 39, 56, .05), 0 24px 46px -20px rgba(74, 39, 56, .28);

  --header-h: 76px;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (max-width: 979.98px) { :root { --header-h: 64px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked, html.is-locked body { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.2; margin: 0 0 .6em; color: var(--text); text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--primary); }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--primary-hover); }
button { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--soft); color: var(--text); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--primary); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius-btn);
  text-decoration: none; font-weight: 500; transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Secciones ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section--soft { background: var(--soft); }
.section--clip { overflow: hidden; }
.section--clip-x { overflow-x: clip; }
.section > .container { position: relative; z-index: 1; }
.section__head { max-width: 660px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__title { font-size: clamp(1.85rem, 1.4rem + 2vw, 2.7rem); }
.section__subtitle { color: var(--text-2); font-size: 1.0625rem; margin: 0; }
.section__subtitle--more { margin-top: .35rem; }

/* Etiqueta de sección: línea fina + texto espaciado (sin borde, fondo ni punto) */
.eyebrow {
  display: flex; align-items: center; gap: 12px; width: fit-content;
  margin: 0 0 14px; padding: 0; border: 0; background: none;
  font: 500 12px/1.4 var(--font-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before, .eyebrow::after { content: ""; flex: none; width: 28px; height: 1px; background: var(--accent); }
.eyebrow::after { display: none; margin-left: -.2em; } /* compensa el espaciado tras la última letra */
/* Secciones centradas: línea a ambos lados */
.section__head:not(.section__head--left) .eyebrow, .cta-band .eyebrow { margin-inline: auto; }
.section__head:not(.section__head--left) .eyebrow::after, .cta-band .eyebrow::after { display: block; }
/* Sobre las bandas rosadas, un tono más profundo del primario para mantener AA (4,5:1) */
.section--soft .eyebrow, .cta-band .eyebrow, .page-header .eyebrow { color: var(--primary-hover); }
@media (max-width: 767.98px) { .eyebrow { font-size: 11px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.5em;
  border: 1px solid var(--primary); border-radius: var(--radius-btn);
  font: 500 .95rem/1.25 var(--font-sans); text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(154, 84, 104, .8); }
.btn--outline { background: var(--card); color: var(--primary); }
.btn--outline:hover { background: var(--soft-light); color: var(--primary-hover); transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: .5em 1.15em; font-size: .875rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 559.98px) { .btn-row > .btn { flex: 1 1 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 500; font-size: .9rem; color: var(--primary); }
.link-arrow { transition: color .2s; }
.link-arrow svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s;
}
.site-header.is-scrolled, .site-header.menu-open { background: var(--bg); border-bottom-color: var(--border); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.logo { display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-right: auto; text-decoration: none; line-height: 1; }
.logo__name { font-family: var(--font-serif); font-weight: 500; color: var(--text); font-size: clamp(1.15rem, 1rem + .55vw, 1.4rem); white-space: nowrap; }
.logo__tag { margin-top: .45em; font-size: clamp(.56rem, .52rem + .15vw, .64rem); font-weight: 500; letter-spacing: .2em; color: var(--primary); white-space: nowrap; }
.logo--light .logo__name { color: var(--bg); }
.logo--light .logo__tag { color: var(--on-dark-2); }

.nav__list { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2rem); }
.nav__link { position: relative; display: inline-block; padding: .35em 0; color: var(--text); text-decoration: none; font-size: .92rem; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.nav__link:hover { color: var(--primary); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta-mobile { display: none; }
.nav__link.is-current::after { transform: scaleX(1); }

/* Desplegable "Servicios" */
.nav__item--sub { position: relative; }
.nav__trigger { display: inline-flex; align-items: center; gap: .25rem; border: 0; background: none; cursor: pointer; font: inherit; font-size: .92rem; }
.nav__trigger svg { width: 18px; height: 18px; flex: none; color: var(--primary); transition: transform .2s var(--ease); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 14px); left: 50%; z-index: 5; min-width: 270px; padding: .45rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 18px 40px -24px rgba(74, 39, 56, .35);
  visibility: hidden; opacity: 0; transform: translate(-50%, -4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* puente para el hover */
.nav__item--sub.is-open .nav__sub { visibility: visible; opacity: 1; transform: translate(-50%, 0); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
.nav__sub a { display: block; padding: .65rem .9rem; border-radius: 10px; color: var(--text); font-size: .9rem; text-decoration: none; transition: background-color .2s, color .2s; }
.nav__sub a:hover, .nav__sub a:focus-visible, .nav__sub a[aria-current="page"] { background: var(--soft-light); color: var(--primary-hover); }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-right: -8px; padding: 0;
  align-items: center; justify-content: center; border: 0; background: none; cursor: pointer; border-radius: var(--radius-btn);
}
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars span { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Instagram en el header (solo móvil/tablet, junto a la hamburguesa) */
.header__ig { display: none; }
@media (max-width: 979.98px) {
  .header__ig {
    display: grid; place-items: center; flex: none; width: 44px; height: 44px;
    margin-right: calc(6px - 1.5rem); /* 6px hasta la hamburguesa (el header usa gap: 1.5rem) */
    border-radius: var(--radius-btn); color: var(--text); transition: color .2s;
  }
  .header__ig:hover, .header__ig:active, .header__ig:focus-visible { color: var(--primary); }
  .header__ig svg { width: 22px; height: 22px; }
}
@media (max-width: 979.98px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: .5rem var(--gutter) 1.75rem; background: var(--bg); border-bottom: 1px solid var(--border);
    /* Cerrado: realmente oculto (sin sombra, fuera del orden de tabulación) */
    visibility: hidden; opacity: 0; transform: translateY(-8px); box-shadow: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .menu-open .nav {
    visibility: visible; opacity: 1; transform: none;
    box-shadow: 0 28px 40px -28px rgba(74, 39, 56, .28);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: .95rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta-mobile { display: flex; width: 100%; margin-top: 1.25rem; }
  .nav__trigger { display: flex; width: 100%; justify-content: space-between; text-align: left; }
  .nav__sub {
    position: static; min-width: 0; padding: 0 0 0 1rem; border: 0; border-radius: 0; background: none; box-shadow: none;
    display: none; visibility: visible; opacity: 1; transform: none; transition: none;
  }
  .nav__sub::before { display: none; }
  .nav__item--sub.is-open .nav__sub { display: block; transform: none; }
  .nav__sub a { padding: .8rem 0; border-radius: 0; border-bottom: 1px solid var(--border); font-size: 1rem; }
  .nav__sub a:hover, .nav__sub a:focus-visible, .nav__sub a[aria-current="page"] { background: none; }
}
@media (max-width: 479.98px) { .header__cta { display: none; } }

/* Desplazamiento para páginas interiores (header fijo) */
.page-top { padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)); }

/* ---------- Círculos suaves (solo bandas "Para ti" y CTA) ----------
   Recortados por la banda (overflow hidden) y limitados al relleno superior/inferior,
   de modo que nunca quedan detrás del texto. */
.band-circle { --d: clamp(180px, 28vw, 400px); position: absolute; z-index: 0; width: var(--d); height: var(--d); border-radius: 50%; background: #fff; opacity: .45; pointer-events: none; }
.band-circle--accent { background: var(--accent); opacity: .08; }
.band-circle--tl { top: calc(var(--d) * -.72); left: calc(var(--d) * -.3); }
.band-circle--tr { top: calc(var(--d) * -.72); right: calc(var(--d) * -.25); }
.band-circle--br { bottom: calc(var(--d) * -.72); right: calc(var(--d) * -.3); }
.band-circle--bl { bottom: calc(var(--d) * -.72); left: calc(var(--d) * -.25); }
.band-circle--card { --d: clamp(120px, 18vw, 200px); top: calc(var(--d) * -.8); right: calc(var(--d) * -.3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  min-height: 640px; height: 100vh; height: 100svh; max-height: 900px;
  padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
/* Velo mínimo: el contraste lo garantizan las bandas de subrayado del texto.
   La franja superior se mantiene solo para la legibilidad del header transparente. */
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82) 0, rgba(255, 255, 255, .62) 50px, rgba(255, 255, 255, .28) 120px, rgba(255, 255, 255, .1) 170px, rgba(255, 255, 255, 0) 230px);
}
/* Contenido centrado un poco por debajo de la mitad (más relleno arriba que abajo) */
.hero__content { position: relative; z-index: 1; padding-block: clamp(4rem, 9vh, 6rem) clamp(2.5rem, 5vh, 3.5rem); }

/* Una única luz radial muy difusa detrás del texto: se funde con la cortina y no se percibe como forma */
/* Luz lateral suave anclada al bloque de texto (como la de una ventana a la izquierda):
   intensa bajo el texto, se apaga ~180px después de su final y deja intactos la rosa y los colores
   de la derecha. Es más alta que el hero, así que no tiene bordes visibles arriba ni abajo. */
.hero__inner { position: relative; width: fit-content; max-width: 100%; }
.hero__inner::before {
  content: ""; position: absolute; z-index: -1; top: -100vh; bottom: -100vh; left: -100vw; right: -180px; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .68) 0, rgba(255, 255, 255, .66) calc(100% - 240px), rgba(255, 255, 255, .56) calc(100% - 180px),
    rgba(255, 255, 255, .28) calc(100% - 110px), rgba(255, 255, 255, .08) calc(100% - 50px), rgba(255, 255, 255, 0) 100%);
}
.hero__title {
  max-width: 11.2em; margin: 0 0 clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500; font-style: normal; font-size: clamp(2.1rem, 1.15rem + 4vw, 4.2rem);
  line-height: 1.08; letter-spacing: -.015em; color: var(--text); text-wrap: balance;
}
.hero__subtitle {
  max-width: 520px; margin: 0 0 clamp(1.9rem, 3.2vw, 2.5rem);
  font-family: var(--font-sans); font-weight: 400; font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  line-height: 1.65; color: var(--text); text-wrap: pretty;
}
.hero .btn--outline { background: var(--bg); }
.hero .btn--outline:hover { background: var(--soft-light); }

/* Indicación de scroll */
.hero__cue {
  position: absolute; left: 50%; bottom: clamp(1rem, 2.6vh, 1.75rem); z-index: 2; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(74, 39, 56, .7); text-decoration: none;
  font: 500 .66rem/1 var(--font-sans); letter-spacing: .24em; text-transform: uppercase;
}
.hero__cue:hover { color: var(--text); }
.hero__cue-label { padding-left: .24em; } /* compensa el espaciado final para centrar ópticamente */
.hero__cue::before {
  content: ""; position: absolute; z-index: -1; inset: -90px -170px -40px; pointer-events: none;
  background: radial-gradient(closest-side at 50% 42%, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .5) 18%, rgba(255, 255, 255, .3) 45%, rgba(255, 255, 255, .12) 72%, rgba(255, 255, 255, 0) 100%);
}
.hero__cue-line { position: relative; width: 1px; height: 34px; overflow: hidden; background: rgba(74, 39, 56, .2); }
.hero__cue-line::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: currentColor; transform: translateY(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero__cue-line::after { animation: cue-line 2.6s cubic-bezier(.65, 0, .35, 1) infinite; }
}
@keyframes cue-line { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }

@media (max-width: 979.98px) {
  /* Tablet y móvil: el bloque se apoya en la parte baja y deja las rosas libres arriba */
  .hero { align-items: flex-end; }
  .hero__content { padding-block: 2rem calc(clamp(1rem, 2.6vh, 1.75rem) + 6rem); }
}
.hero__secondary-arrow { display: none; }

/* ---------- Hero · móvil (≤ 767px) ----------
   Rosas y jarrón arriba, nítidos; el texto se apoya abajo sobre un degradado que solo sube hasta ~35%. */
@media (max-width: 767.98px) {
  .hero { align-items: flex-end; height: 100vh; height: 100svh; min-height: 620px; max-height: none; }
  /* Encuadre: la pared iluminada con las hojas colgantes ocupa la parte alta, nítida */
  .hero__bg { object-position: 47% 50%; }
  /* Arriba: solo una franja suave para el header; la foto queda nítida */
  .hero__veil { background: linear-gradient(180deg, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, .45) 56px, rgba(255, 255, 255, 0) 100px); }
  .hero__content { padding: 0 24px 32px; }
  /* El pie del hero ya es blanco opaco: el espacio hasta la siguiente sección se reparte entre ambos
     (12px del área táctil del enlace + 32px + 28px ≈ 72px) en lugar de sumar 124px de blanco */
  .hero + .section { padding-top: 28px; }
  .hero__inner::before { display: none; }
  /* Degradado de abajo arriba atado al bloque de texto: empieza transparente ~110px por encima del titular
     (≈35–40% de la altura en móviles normales), llega a 0.75 detrás del texto y ~0.95 al pie */
  .hero__content::before {
    content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; top: -110px; pointer-events: none;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .75) 110px, rgba(255, 255, 255, .82) 55%,
      rgba(255, 255, 255, .94) calc(100% - 96px), #FFFFFF calc(100% - 24px), #FFFFFF 100%);
  }

  /* Corte por sentido: "Lo que duele" / "también" / "se puede hablar" */
  .hero__title {
    max-width: none; margin: 0 0 14px;
    font-size: clamp(2.5rem, 2rem + 2.4vw, 2.625rem); line-height: 1.05; letter-spacing: -.01em; text-wrap: balance;
  }
  .hero__phrase { white-space: nowrap; }
  .hero__subtitle { max-width: 32ch; margin: 0 0 24px; font-size: 15px; line-height: 1.6; color: rgba(74, 39, 56, .85); }

  .hero .btn-row { flex-direction: column; align-items: stretch; gap: 4px; }
  .hero .btn-row > .btn { flex: none; }
  .hero .btn--primary { width: 100%; min-height: 52px; }
  /* Segundo botón → enlace discreto */
  .hero .hero__secondary {
    align-self: center; min-height: 44px; padding: .5rem .75rem; gap: .4em;
    border: 0; border-radius: 0; background: none; color: var(--primary);
    font-size: 15px; font-weight: 500; text-decoration: none;
  }
  .hero .hero__secondary:hover, .hero .hero__secondary:active, .hero .hero__secondary:focus-visible {
    background: none; color: var(--primary-hover); transform: none;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
  }
  .hero__secondary-arrow { display: block; width: 18px; height: 18px; }

  .hero__cue { display: none; }
}
/* Móviles bajos: rampa más corta para no velar las rosas, que quedan justo encima del titular */
@media (max-width: 767.98px) and (max-height: 700px) {
  .hero__content::before {
    top: -70px;
    background: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, .75) 70px, rgba(255, 255, 255, .82) 55%,
      rgba(255, 255, 255, .94) calc(100% - 96px), #FFFFFF calc(100% - 24px), #FFFFFF 100%);
  }
}

/* ---------- Sobre mí (inicio) ---------- */
/* Marco fino desplazado detrás de las fotos (sustituye a los blobs) */
.photo-frame { --frame-offset: 16px; position: relative; margin: 0 var(--frame-offset) var(--frame-offset) 0; }
.photo-frame::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border: 1px solid var(--accent); border-radius: var(--radius-card);
  transform: translate(var(--frame-offset), var(--frame-offset));
}
.photo-frame img { position: relative; z-index: 1; display: block; width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
@media (max-width: 759.98px) { .photo-frame { --frame-offset: 10px; } }


.soft-quote { display: flex; gap: .85rem; align-items: flex-start; margin: 1.75rem 0; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); }
.soft-quote svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: calc(.75em - 11px); }
.soft-quote p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1em; line-height: 1.5; color: var(--primary); }

.pill-outline { display: inline-block; margin: 0 0 1.75rem; padding: .4em 1em; border: 1px solid var(--accent); border-radius: 999px; font-size: .8rem; line-height: 1.4; color: var(--text-2); }

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.75rem, 6vw, 5.5rem); align-items: start; }
.about__media img { aspect-ratio: 5 / 4; object-fit: cover; }
.about__text { max-width: 580px; }
.about__text > p:not(.eyebrow):not(.pill-outline) { color: var(--text-2); font-size: 1.0625rem; line-height: 1.75; }
.about__text strong { font-weight: 500; color: var(--text); }
@media (max-width: 859.98px) {
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; width: calc(100% - var(--frame-offset)); }
}

/* ---------- Para ti si… ---------- */
.foryou { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.25rem; max-width: 940px; margin-inline: auto; }
.foryou li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.4rem 1.5rem; border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(255, 255, 255, .9);
  font-size: 1.04rem; line-height: 1.6;
}
.foryou__dot { position: relative; flex: none; width: 6px; height: 6px; margin-top: calc(.8em - 3px); border-radius: 50%; background: var(--accent); }
@media (max-width: 679.98px) { .foryou { grid-template-columns: 1fr; } }

/* ---------- Sistema de iconos: un único contenedor circular ----------
   44px · borde 1px #EEDCE2 · fondo blanco · sin sombra. Icono 18px dentro (22px en filas de información). */
.icon-circle, .step__num, .info-list__icon, .avatar, .slider__arrow, .modal__close, .faq__icon {
  display: grid; place-items: center; flex: none; box-sizing: border-box;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border); box-shadow: none;
  color: var(--primary);
  transition: border-color .2s, color .2s;
}
.slider__arrow svg, .modal__close svg, .faq__icon svg { width: 18px; height: 18px; }
.slider__arrow, .modal__close { cursor: pointer; }
.slider__arrow:hover, .modal__close:hover, .faq__btn:hover .faq__icon { border-color: var(--primary); color: var(--primary-hover); }

/* ---------- Pasos ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.steps__line { position: absolute; top: -8px; left: calc(100% / 6); right: calc(100% / 6); height: 60px; z-index: 0; color: var(--accent); }
.steps__line svg { width: 100%; height: 100%; overflow: visible; }
.step { position: relative; z-index: 1; text-align: center; }
.step__num { margin: 0 auto 1.4rem; font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1; }
.step__title { font-size: 1.4rem; margin-bottom: .5em; }
.step p { color: var(--text-2); margin: 0; max-width: 340px; margin-inline: auto; }
@media (max-width: 779.98px) {
  .steps { grid-template-columns: 1fr; gap: 2.25rem; }
  .steps__line { display: none; }
  .step { display: grid; grid-template-columns: 44px 1fr; gap: 1.25rem; text-align: left; }
  .step__num { margin: 0; }
  .step p { margin: 0; }
  .step__title { margin-top: .3em; }
  /* Línea fina (1px) con una curva suave entre pasos */
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 16px; top: 52px; bottom: calc(-2.25rem + 8px); width: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='48' viewBox='0 0 12 48'%3E%3Cpath d='M6 0 C 2 12, 10 24, 6 36 S 2 48, 6 48' fill='none' stroke='%23C98BA3' stroke-width='1' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y center top / 12px 48px;
  }
}

/* ---------- Tarjetas genéricas ---------- */
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: clamp(1.4rem, 3vw, 1.85rem); }
.card__title { font-size: 1.45rem; margin-bottom: .25em; }

/* ---------- Servicios (inicio) ----------
   Cada tarjeta ocupa 5 filas de una subgrid compartida: imagen · eyebrow · título · texto · pie.
   Así subtítulos, textos, precios y enlaces quedan alineados aunque los títulos ocupen distintas líneas. */
.services { --svc-gap: clamp(1.25rem, 2.5vw, 2rem); display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--svc-gap); row-gap: 0; }
.service-card { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; margin-bottom: var(--svc-gap); }
.service-card__media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .4s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.03); }
.service-card__eyebrow { margin: 0; padding: 1.5rem 1.6rem 0; font-size: .72rem; font-weight: 500; letter-spacing: .16em; line-height: 1.4; color: var(--primary); }
.service-card__title { margin: 0; padding: .45rem 1.6rem 0; font-size: 1.45rem; line-height: 1.25; }
.service-card__link { color: var(--text); text-decoration: none; }
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); }
.service-card__link:focus-visible { outline: none; }
.service-card:has(.service-card__link:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.service-card__text { margin: 0; padding: .65rem 1.6rem 0; color: var(--text-2); font-size: .98rem; line-height: 1.7; }
.service-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.35rem 1.6rem 0; padding: 1rem 0 1.4rem; border-top: 1px solid var(--border); align-self: end; }
.service-card__price { font-family: var(--font-serif); font-size: 1.08rem; color: var(--text); }
.link-arrow svg { transition: transform .2s var(--ease); }
.service-card:hover .link-arrow svg, .mini-card:hover .link-arrow svg { transform: translateX(3px); }
.services-cta { display: flex; justify-content: center; margin-top: clamp(.5rem, 2vw, 1rem); }
@media (prefers-reduced-motion: reduce) {
  .service-card:hover .service-card__media img, .service-card:hover .link-arrow svg, .mini-card:hover .link-arrow svg { transform: none; }
}
@media (max-width: 1023.98px) and (min-width: 680px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services > :last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - var(--svc-gap) / 2); }
}
@media (max-width: 679.98px) { .services { grid-template-columns: 1fr; } }

/* ---------- Páginas de servicio ---------- */
.svc-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.svc-hero__media img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.svc-hero .pill-outline { margin: 1.5rem 0 0; }
.svc-hero__note { margin: 1.5rem 0 0; max-width: 560px; font-family: var(--font-serif); font-style: italic; font-size: 1.0625rem; line-height: 1.5; color: var(--primary-hover); }
@media (max-width: 859.98px) {
  .svc-hero { grid-template-columns: 1fr; }
  .svc-hero__media { width: calc(100% - var(--frame-offset)); max-width: 560px; }
}
.svc-layout { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 360px); grid-template-areas: "content aside"; justify-content: space-between; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.svc-content { grid-area: content; }
.svc-aside { grid-area: aside; position: sticky; top: 120px; }
.svc-block + .svc-block { margin-top: clamp(2.5rem, 5vw, 3.25rem); }
.svc-block h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); margin-bottom: .6em; }
.svc-block p { font-size: 1.0625rem; line-height: 1.8; color: var(--text); margin: 0; }
.bullet-list li { position: relative; padding-left: 1.5rem; font-size: 1.0625rem; line-height: 1.8; }
.bullet-list li + li { margin-top: .45rem; }
.bullet-list li::before { content: ""; position: absolute; left: .3rem; top: calc(.9em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (max-width: 899.98px) {
  .svc-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "aside" "content"; }
  .svc-aside { position: relative; top: auto; max-width: 560px; }
  .svc-content { max-width: 640px; }
}

.info-card { padding: 1.75rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); }
.info-card__rows li { display: flex; gap: .85rem; align-items: flex-start; padding: .85rem 0; border-bottom: 1px solid var(--border); font-size: .95rem; line-height: 1.5; color: var(--text-2); }
.info-card__rows li:first-child { padding-top: 0; }
.info-card__rows svg { width: 22px; height: 22px; flex: none; margin-top: calc(.75em - 11px); color: var(--primary); }
.info-card__rows strong { font-weight: 500; color: var(--text); }
.info-card__actions { display: grid; gap: .65rem; margin-top: 1.5rem; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips a {
  display: inline-flex; align-items: center; min-height: 40px; padding: .45em 1.05em;
  border: 1px solid var(--accent); border-radius: 999px; background: var(--card);
  color: var(--text); font-size: .92rem; text-decoration: none; transition: border-color .2s, color .2s;
}
.chips a:hover { border-color: var(--primary); color: var(--primary-hover); }

.steps--compact .step__title { font-size: 1.25rem; }
.steps--compact .step p { font-size: .95rem; }

.mini-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.5vw, 1.75rem); max-width: 920px; margin-inline: auto; }
.mini-card { display: grid; grid-template-columns: 150px 1fr; gap: 1.25rem; align-items: center; padding: .75rem 1.25rem .75rem .75rem; }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.mini-card__eyebrow { margin: 0 0 .3rem; font-size: .7rem; font-weight: 500; letter-spacing: .16em; color: var(--primary); }
.mini-card__title { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.3; }
.mini-card__title a { color: var(--text); text-decoration: none; }
.mini-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); }
.mini-card__title a:focus-visible { outline: none; }
.mini-card:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 639.98px) {
  .mini-cards { grid-template-columns: 1fr; }
  .mini-card { grid-template-columns: 112px 1fr; }
}

/* Barra inferior fija (móvil) */
.svc-bar {
  --bar-h: 64px;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: flex; align-items: center; gap: 1rem;
  min-height: var(--bar-h); padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--border);
  transform: translateY(100%); visibility: hidden; transition: transform .2s var(--ease), visibility 0s linear .2s;
}
.svc-bar.is-visible { transform: none; visibility: visible; transition: transform .2s var(--ease), visibility 0s; }
.svc-bar__info { display: flex; flex-direction: column; min-width: 0; margin: 0; font-size: .82rem; line-height: 1.35; color: var(--text-2); }
.svc-bar__info strong { font-family: var(--font-serif); font-size: .98rem; font-weight: 400; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-bar .btn { margin-left: auto; min-height: 44px; flex: none; }
body.has-bar .wa-float { bottom: calc(64px + 12px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .svc-bar { display: none; } }

/* ---------- Áreas ---------- */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.area-card { padding: .7rem .7rem 0; }
.area-card[hidden] { display: none; }
.area-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.area-card .card__body { padding: 1.25rem 1rem 1.4rem; }
.area-card .card__title { font-size: 1.3rem; }
.area-card__btn {
  all: unset; cursor: pointer; font: inherit; color: inherit;
}
.area-card__btn::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); }
.area-card:has(.area-card__btn:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.area-card__line { color: var(--text-2); font-size: .95rem; flex: 1; }
.area-card:hover .link-arrow, .post-card:hover .link-arrow { color: var(--primary-hover); }
.area-card.is-entering { animation: fadeUp .65s var(--ease) both; }
.areas-toggle-wrap { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 2.75rem); }
.areas-toggle svg { transition: transform .2s var(--ease); }
.areas-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (max-width: 979.98px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599.98px) { .areas { grid-template-columns: 1fr; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Modal de áreas ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(74, 39, 56, .45); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--ease); }
.modal__dialog {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 900px; max-height: min(88vh, 720px);
  overflow: hidden; background: var(--bg); border-radius: 24px; box-shadow: 0 30px 80px -24px rgba(74, 39, 56, .5);
  opacity: 0; transform: translateY(18px) scale(.98);
  transition: opacity .35s var(--ease), transform .4s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__dialog:focus { outline: none; }
.modal__scroll { overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; }
.modal__media { padding: 1.25rem 0 1.25rem 1.25rem; }
.modal__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.modal__body { padding: 2.25rem 2.25rem 2rem; }
.modal__title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem); padding-right: 2.5rem; }
.modal__text { color: var(--text-2); }
.modal__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.modal__close { position: absolute; top: .9rem; right: .9rem; z-index: 3; }
.modal__handle { display: none; }
@media (max-width: 759.98px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal__dialog {
    max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 24px 24px 0 0;
    opacity: 1; transform: translateY(100%); transition: transform .42s var(--ease);
  }
  .modal.is-open .modal__dialog { transform: none; }
  .modal__dialog.is-dragging { transition: none; }
  .modal__handle { display: block; flex: none; width: 100%; padding: .7rem 0 .35rem; cursor: grab; touch-action: none; }
  .modal__handle span { display: block; width: 44px; height: 5px; margin: 0 auto; border-radius: 99px; background: var(--border); }
  .modal__scroll { grid-template-columns: 1fr; }
  .modal__media { padding: .25rem 1rem 0; }
  .modal__body { padding: 1.5rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom)); }
  .modal__close { top: .55rem; right: .75rem; }
  .modal__actions .btn { flex: 1 1 100%; }
}

/* ---------- Opiniones (slider) ---------- */
.slider { --per-view: 3; --gap: 24px; position: relative; }
.slider__viewport { overflow: hidden; margin: -16px -12px -32px; padding: 16px 12px 32px; touch-action: pan-y; }
.slider__track { display: flex; gap: var(--gap); transition: transform .8s var(--ease); will-change: transform; }
.slide { flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view)); display: flex; }
.tcard { position: relative; display: flex; flex-direction: column; width: 100%; padding: 2rem 1.75rem 1.6rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.tcard__mark { position: absolute; top: 1.5rem; right: 1.5rem; width: 28px; height: 28px; color: var(--accent); opacity: .55; }
.tcard__stars { display: flex; align-items: center; gap: 4px; height: 18px; margin-bottom: 1.1rem; color: var(--accent); }
.tcard__stars svg { width: 14px; height: 14px; }
.tcard__text { margin: 0; font-size: .97rem; line-height: 1.7; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.tcard.is-expanded .tcard__text { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.tcard__more { align-self: flex-start; margin-top: .6rem; padding: .3rem 0; border: 0; background: none; color: var(--primary); font-size: .875rem; font-weight: 500; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.tcard__more[hidden] { display: none; }
.tcard__footer { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: 1.25rem; }
.tcard__body { flex: 1; margin-bottom: 1.25rem; }
.avatar { font-family: var(--font-serif); font-weight: 500; font-size: 1rem; line-height: 1; }
.tcard__name { font-size: .9rem; font-weight: 500; color: var(--text); }
.slider__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.25rem; }
.slider__dots { display: flex; gap: 2px; }
.slider__dot { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer; }
.slider__dot span { display: block; width: 6px; height: 6px; border-radius: 99px; background: var(--accent); transition: width .2s var(--ease), background-color .2s; }
.slider__dot[aria-current="true"] span { width: 22px; background: var(--primary); }
@media (max-width: 1023.98px) { .slider { --per-view: 2; --gap: 20px; } }
@media (max-width: 679.98px) { .slider { --per-view: 1; --gap: 16px; } }

/* ---------- Blog (tarjetas) ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.post-card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-bottom: .9rem; font-size: .82rem; color: var(--text-2); }
.tag { display: inline-block; padding: .25em .85em; border-radius: 999px; background: var(--soft-light); color: var(--primary); font-size: .75rem; font-weight: 500; letter-spacing: .04em; }
.post-card__title { font-size: 1.3rem; line-height: 1.3; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-card); }
.post-card:has(a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.post-card__title a:focus-visible { outline: none; }
.post-card__excerpt { color: var(--text-2); font-size: .95rem; flex: 1; }
@media (max-width: 979.98px) { .posts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639.98px) { .posts { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .85rem; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: 16px; transition: box-shadow .3s; }
.faq__item:has(.faq__btn[aria-expanded="true"]) { box-shadow: var(--shadow-card); }
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%;
  padding: 1.2rem 1.4rem; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--font-serif); font-size: clamp(1.05rem, 1rem + .25vw, 1.18rem); line-height: 1.4; color: var(--text); border-radius: 16px;
}
.faq__icon svg { transition: transform .2s var(--ease); }
.faq__btn[aria-expanded="true"] .faq__icon svg { transform: rotate(180deg); }
.faq__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s linear .4s; }
.faq__panel.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.faq__inner { min-height: 0; overflow: hidden; }
.faq__inner p { margin: 0; padding: 0 1.4rem 1.35rem; color: var(--text-2); max-width: 680px; }

/* ---------- CTA final ---------- */
.cta-band { text-align: center; }
.cta-band__title { font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem); }
.cta-band p:not(.eyebrow) { color: var(--text-2); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Reserva ---------- */
.booking { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.booking__intro > p:not(.eyebrow) { color: var(--text-2); font-size: 1.0625rem; }
.info-list { display: grid; gap: 1rem; margin-top: 2rem !important; }
.info-list li { display: flex; align-items: center; gap: 1rem; color: var(--text); }
.info-list__icon svg { width: 22px; height: 22px; }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.field { margin-bottom: 1.2rem; }
.field label, .field__label { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; color: var(--text); }
.field__optional { font-weight: 400; color: var(--text-2); }
.field input:not([type="checkbox"]), .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: 400 1rem/1.5 var(--font-sans); color: var(--text);
  background: var(--bg); border: 1px solid var(--field-border); border-radius: var(--radius-btn);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8B7380; opacity: 1; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer; text-overflow: ellipsis;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%239A5468' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(154, 84, 104, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field__error { display: flex; gap: .4em; align-items: flex-start; margin: .4rem 0 0; font-size: .84rem; line-height: 1.45; color: var(--error); }
.field__error:empty { display: none; }
.field--check { display: block; }
.field .check { display: flex; gap: .75rem; align-items: flex-start; margin: 0; cursor: pointer; font-size: .92rem; font-weight: 400; line-height: 1.5; }
.field .check input { flex: none; width: 20px; height: 20px; min-height: 0; margin: .1rem 0 0; padding: 0; accent-color: var(--primary); cursor: pointer; }
.honeypot { display: none !important; }
.form-status { margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: 14px; font-size: .95rem; line-height: 1.55; display: flex; gap: .75rem; align-items: flex-start; }
.form-status[hidden] { display: none; }
.form-status svg { width: 18px; height: 18px; flex: none; margin-top: calc(.775em - 9px); }
.form-status--ok { background: var(--soft-light); color: var(--text); border: 1px solid var(--border); }
.form-status--ok svg { color: var(--primary); }
.form-status--error { background: #FFF5F6; color: var(--error); border: 1px solid #F1C9D1; }
.form-status a { font-weight: 500; color: inherit; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
@media (max-width: 899.98px) { .booking { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: var(--on-dark); padding: clamp(3.5rem, 7vw, 5rem) 0 1.75rem; font-size: .92rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.5rem); }
.footer__tagline { margin: 1.25rem 0 0; font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; line-height: 1.5; color: var(--on-dark); max-width: 320px; }
.footer__title { margin: 0 0 1rem; font-family: var(--font-sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; color: var(--on-dark-2); }
.footer__links { display: grid; gap: .5rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--on-dark); }
.footer__contact { display: grid; gap: .65rem; }
.footer__contact a { display: inline-flex; align-items: center; gap: .6rem; }
.footer__contact svg { width: 18px; height: 18px; flex: none; color: var(--on-dark-2); }
.footer__meta { margin-top: 1.25rem; color: var(--on-dark-2); font-size: .85rem; line-height: 1.6; }
.footer__meta p { margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(238, 220, 226, .2); font-size: .8rem; color: #D9C2CC; }
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.footer__bottom a { color: #D9C2CC; }
@media (max-width: 859.98px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 519.98px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(74, 39, 56, .35);
  transition: transform .2s var(--ease), box-shadow .2s, opacity .2s, visibility 0s;
}
.wa-float:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(74, 39, 56, .4); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; visibility: hidden; transform: translateY(8px); transition: transform .2s var(--ease), opacity .2s, visibility 0s linear .2s; }
@media (max-width: 559.98px) { .wa-float { width: 52px; height: 52px; } .wa-float svg { width: 26px; height: 26px; } }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s !important; }
.reveal-d2 { transition-delay: .16s !important; }

/* ==========================================================================
   Páginas interiores
   ========================================================================== */

/* ---------- Sobre mí ---------- */
.page-header { background: var(--soft); padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(2.75rem, 6vw, 4.25rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.25rem; font-size: .85rem; color: var(--text-2); }
.breadcrumb li + li::before { content: "·"; margin-right: .5rem; color: var(--text-2); }
.breadcrumb ol { flex-wrap: nowrap; min-width: 0; }
.breadcrumb li { flex: none; white-space: nowrap; }
.breadcrumb li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb a { color: var(--text); }
.page-header__title { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.5rem); line-height: 1.1; margin-bottom: .4em; }
.page-header__subtitle { margin: 0; max-width: 560px; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 300; color: var(--text); }

.story { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 580px); justify-content: space-between; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.story__media { position: sticky; top: 120px; }
.story__media img { aspect-ratio: 1 / 1; object-fit: cover; }
.story__text { max-width: 580px; }
.story__text > p:not(.pill-outline) { font-size: 1.0625rem; line-height: 1.8; color: var(--text); margin-bottom: 1.35em; }
.story__text .soft-quote { margin: 2.25rem 0; }
.pills { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem !important; }
.pills li { padding: .4em 1em; border-radius: 999px; background: var(--card); border: 1px solid var(--accent); color: var(--text-2); font-size: .8rem; line-height: 1.4; }
.story__text .pill-outline { margin-bottom: 0; }
@media (max-width: 859.98px) {
  .story { grid-template-columns: 1fr; }
  .story__media { position: relative; top: auto; width: min(calc(100% - var(--frame-offset)), 60vh); }
}

.training { max-width: 720px; margin-inline: auto; }
.training__title { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.3rem); margin-bottom: 1.25rem; }
.training__list li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.15rem 0; border-bottom: 1px solid var(--border); font-size: 1.0625rem; line-height: 1.55; }
.training__list li:first-child { border-top: 1px solid var(--border); }
.training__list svg { width: 22px; height: 22px; flex: none; margin-top: calc(.775em - 11px); color: var(--primary); }
.training__list li:has(.training__label) svg { margin-top: calc(.72rem * .775 - 11px); }
.training__label { display: block; margin-bottom: .2rem; font-size: .72rem; font-weight: 500; letter-spacing: .16em; color: var(--primary); }

.cta-card { position: relative; overflow: hidden; max-width: 900px; margin-inline: auto; padding: clamp(2.25rem, 6vw, 3.75rem) clamp(1.5rem, 5vw, 3.5rem); text-align: center; background: var(--soft); border-radius: 28px; }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem); }
.cta-card p { color: var(--text-2); font-size: 1.08rem; margin-bottom: 1.75rem; }
.cta-card .btn-row { justify-content: center; }
.cta-card > .band-circle { position: absolute; z-index: 0; }

/* ---------- Artículos ---------- */
.article__header { max-width: 820px; margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: .45em; margin-bottom: 1.75rem; font-size: .9rem; font-weight: 500; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 18px; height: 18px; flex: none; }
.article__title { font-size: clamp(2rem, 1.4rem + 2.8vw, 3.2rem); line-height: 1.15; margin: 1rem 0 1.25rem; }
.article__byline { display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--text-2); font-size: .9rem; margin-bottom: 2.25rem; }
.article__byline strong { font-weight: 500; color: var(--text); }
.article__hero { max-width: 1000px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); }
.article__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.article__body { max-width: 680px; margin-inline: auto; font-size: 1.0625rem; line-height: 1.85; }
.article__body > p { color: var(--text); }
.article__body .lead { font-family: var(--font-serif); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); line-height: 1.65; color: var(--text); margin-bottom: 1.5em; }
.article__body h2 { font-size: clamp(1.45rem, 1.25rem + .9vw, 1.85rem); margin: 2.2em 0 .7em; }
.article__body ul { list-style: none; margin: 0 0 1.5em; padding: 0; }
.article__body ul li { position: relative; padding-left: 1.6rem; margin-bottom: .7em; }
.article__body ul li::before { content: ""; position: absolute; left: .3rem; top: calc(.925em - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.note-box { margin: 2.5rem 0 1.25rem; padding: 1.5rem 1.6rem; background: var(--soft); border-radius: var(--radius-card); display: flex; gap: 1rem; align-items: flex-start; }
.note-box svg { width: 22px; height: 22px; flex: none; color: var(--primary); margin-top: calc(1.15rem * .8 - 11px); }
.note-box p { margin: 0; font-family: var(--font-serif); font-style: italic; font-size: 1.15rem; line-height: 1.6; }
.article__body .cta-card h2 { margin: 0 0 .5em; }
.article__body .cta-card p { color: var(--text-2); }
.disclaimer { font-size: .85rem !important; line-height: 1.6 !important; color: var(--text-2) !important; margin-bottom: 3rem !important; }
.related { margin-top: clamp(3.5rem, 7vw, 5rem); }
.related__title { text-align: center; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); margin-bottom: 2rem; }
.posts--two { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
@media (max-width: 639.98px) { .posts--two { grid-template-columns: 1fr; } }

/* ---------- Política de privacidad ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(2.1rem, 1.5rem + 2.5vw, 3rem); margin-bottom: .5em; }
.legal h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; }
.legal p:not(.eyebrow) { color: var(--text-2); line-height: 1.8; }
.legal .updated { font-size: .9rem; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
