/* =========================================================
   Estefany Nuñez · Psicóloga online
   Paleta "Calma azul" (misma marca que Instagram)
   ========================================================= */

:root {
  --navy: #1E3A6E;
  --navy-hondo: #13284F;
  --azul: #5B80A8;          /* solo texto grande o decorativo */
  --azul-texto: #3F6390;    /* azul con contraste para texto chico */
  --celeste: #A9C1DC;
  --celeste-suave: #E6EEF7;
  --verde: #9CC5A8;
  --verde-suave: #E4F0E7;
  --fondo: #F7F5F1;
  --blanco: #FFFFFF;
  --texto: #26303F;
  --texto-suave: #556073;
  --linea: #E4E0D8;
  --wa: #25D366;
  --wa-hondo: #128C4B;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ancho: 1160px;
  --radio: 24px;
  --suave: cubic-bezier(.22, .8, .3, 1);
  --sombra: 0 30px 60px -40px rgba(19, 40, 79, .45);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--texto);
  background: var(--fondo);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--azul-texto); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--celeste); color: var(--navy-hondo); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.7rem, 10vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 7vw, 3.4rem); }
h3 { font-size: 1.6rem; line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--azul); }
p { margin: 0 0 1em; }

.contenedor { width: min(100% - 2.5rem, var(--ancho)); margin-inline: auto; }
.etiqueta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--azul-texto); margin-bottom: 1.1rem;
}
.etiqueta::before { content: ""; width: 22px; height: 1px; background: var(--verde); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; z-index: 100; background: var(--blanco); padding: .5rem 1rem; }

/* ---------- Barra de progreso de lectura ---------- */
.progreso {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--verde), var(--celeste));
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  pointer-events: none;
}

/* ---------- Encabezado ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, .78);
  backdrop-filter: saturate(1.5) blur(14px);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, background-color .4s;
}
.cabecera.con-borde { border-bottom-color: var(--linea); background: rgba(247, 245, 241, .9); }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 72px; transition: height .4s var(--suave); }
.cabecera.con-borde .contenedor { height: 62px; }
.marca { text-decoration: none; color: var(--navy); line-height: 1.1; }
.marca strong { display: block; font-family: var(--serif); font-size: 1.45rem; font-weight: 500; white-space: nowrap; }
.marca span { display: block; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-texto); white-space: nowrap; }
.nav { display: none; }
.nav a {
  position: relative; text-decoration: none; color: var(--texto); font-size: .9rem; font-weight: 500; padding: .5rem 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: var(--verde);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--suave);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.cabecera-acciones { display: flex; align-items: center; gap: .5rem; }
.cabecera .boton-wa { display: none; }
.boton-menu {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--linea); background: var(--blanco); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.boton-menu svg { width: 20px; height: 20px; }
.menu-movil {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--suave);
  background: var(--fondo);
}
.menu-movil > div { overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.menu-movil.abierto > div { visibility: visible; transition: visibility 0s; }
.menu-movil.abierto { grid-template-rows: 1fr; border-top: 1px solid var(--linea); }
.menu-movil a {
  display: flex; justify-content: space-between; align-items: center;
  padding: .95rem 0; border-bottom: 1px solid var(--linea);
  text-decoration: none; color: var(--navy); font-family: var(--serif); font-size: 1.6rem;
}
.menu-movil a:last-child { border-bottom: 0; margin-bottom: 1rem; }
.menu-movil a svg { width: 20px; height: 20px; color: var(--azul); }

/* ---------- Botones ---------- */
.boton {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 58px; padding: .9rem 1.7rem;
  border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; text-decoration: none;
  transition: transform .35s var(--suave), background-color .3s, box-shadow .35s, color .3s;
}
.boton svg { width: 22px; height: 22px; flex: none; }
.boton::after { /* brillo que cruza el botón al pasar el mouse */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--suave);
}
.boton:hover::after { transform: translateX(120%); }
.boton-wa { background: var(--navy); color: var(--blanco); box-shadow: 0 16px 34px -16px rgba(30, 58, 110, .7); }
.boton-wa:hover { background: var(--navy-hondo); color: var(--blanco); transform: translateY(-2px); box-shadow: 0 22px 40px -18px rgba(30, 58, 110, .8); }
.boton-claro { background: rgba(255, 255, 255, .6); color: var(--navy); box-shadow: inset 0 0 0 1px var(--celeste); }
.boton-claro:hover { background: var(--blanco); color: var(--navy); }
.boton-blanco { background: var(--blanco); color: var(--navy); }
.boton-blanco:hover { color: var(--navy); transform: translateY(-2px); }
.boton-chico { min-height: 44px; padding: .5rem 1.1rem; font-size: .88rem; }
.boton-chico svg { width: 19px; height: 19px; }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-flotante {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  transform: translateY(20px) scale(.6); opacity: 0;
  transition: transform .6s var(--suave), opacity .6s;
}
.wa-flotante.visible { transform: none; opacity: 1; }
.wa-flotante .circulo {
  position: relative; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--blanco);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 75, .65), 0 0 0 4px rgba(255, 255, 255, .9);
  transition: transform .35s var(--suave), background-color .3s;
}
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante .circulo::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .55);
  animation: latido 4.5s ease-out infinite 2s;
}
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 35%, 100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } }
.wa-flotante:hover .circulo, .wa-flotante:focus-visible .circulo { transform: scale(1.07); background: var(--wa-hondo); }

/* ---------- Portada (hero) ---------- */
.portada { position: relative; overflow: hidden; padding: 1.75rem 0 4rem; }
.aura { position: absolute; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.aura span {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at center, var(--c) 0%, transparent 68%);
  opacity: .75; will-change: transform;
}
.aura span:nth-child(1) { --c: #D7E4F2; width: 620px; height: 620px; right: -260px; top: -180px; animation: deriva1 22s ease-in-out infinite; }
.aura span:nth-child(2) { --c: #DDEDE1; width: 520px; height: 520px; left: -280px; top: 40%; animation: deriva2 26s ease-in-out infinite; }
.aura span:nth-child(3) { --c: #E9EFF7; width: 380px; height: 380px; right: 20%; bottom: -220px; animation: deriva1 30s ease-in-out infinite reverse; }
@keyframes deriva1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-60px, 40px) scale(1.08); } }
@keyframes deriva2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(70px, -50px) scale(1.12); } }

.portada .contenedor { position: relative; display: grid; gap: 3rem; align-items: center; }
.portada-texto .bajada { font-size: 1.14rem; color: var(--texto-suave); max-width: 33rem; }
.portada-acciones { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.9rem; }
.portada-acciones .boton { width: 100%; }
.nota-boton { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--texto-suave); margin: .9rem 0 0; }
.nota-boton::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 0 4px var(--verde-suave); flex: none; }
.rasgos { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.rasgos li {
  font-size: .8rem; font-weight: 500; color: var(--navy);
  background: rgba(255, 255, 255, .7); border: 1px solid var(--linea);
  padding: .38rem .85rem; border-radius: 999px;
}

/* Firma con foto, arriba de todo en celular */
.firma-movil { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.firma-movil img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 2px solid var(--blanco); box-shadow: 0 0 0 1px var(--celeste); }
.firma-movil strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--navy); line-height: 1.1; }
.firma-movil span { font-size: .8rem; color: var(--texto-suave); }

/* Título que aparece palabra por palabra */
.js .titulo-animado .palabra { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px);
  animation: palabra 1s var(--suave) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
@keyframes palabra { to { opacity: 1; transform: none; filter: none; } }
.js .portada-texto > :not(h1):not(.firma-movil) { opacity: 0; transform: translateY(14px); animation: subir 1s var(--suave) forwards .75s; }
.js .portada-texto > .portada-acciones { animation-delay: .9s; }
.js .portada-texto > .nota-boton, .js .portada-texto > .rasgos { animation-delay: 1.05s; }
@keyframes subir { to { opacity: 1; transform: none; } }

/* "hoy": mismo celeste del título, con doble trazo a mano en verde debajo */
.resalte { position: relative; display: inline-block; white-space: nowrap; }
.resalte .trazo { position: absolute; left: -.05em; width: calc(100% + .1em); bottom: -.16em; height: .3em; overflow: visible; }
.resalte .trazo path { fill: none; stroke: var(--verde); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.resalte .trazo path:last-child { stroke-width: 2; opacity: .7; }
.js .resalte path { stroke-dasharray: 160; stroke-dashoffset: 160; animation: trazar 1s var(--suave) forwards 1.1s; }
.js .resalte .trazo path:last-child { animation-delay: 1.35s; }
@keyframes trazar { to { stroke-dashoffset: 0; } }

/* Foto principal: rectángulo con marco desplazado y tarjetas flotantes */
.foto-principal { position: relative; width: min(100%, 420px); margin: 0 auto; padding: 0 0 1.5rem 1.5rem; }
.foto-principal .marco {
  position: absolute; inset: 1.5rem 1.5rem 0 0; border: 1px solid var(--celeste); border-radius: 30px;
}
.foto-principal .marco::after {
  content: ""; position: absolute; width: 90px; height: 90px; left: -30px; bottom: -30px;
  background-image: radial-gradient(var(--celeste) 1.4px, transparent 1.6px); background-size: 14px 14px; opacity: .9;
}
.foto-principal .ventana { position: relative; border-radius: 30px; overflow: hidden; box-shadow: var(--sombra); background: var(--celeste-suave); }
.foto-principal img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; transform: scale(1.06); }
.js .foto-principal .ventana { clip-path: inset(100% 0 0 0 round 30px); animation: revelar 1.4s var(--suave) forwards .25s; }
.js .foto-principal img { transform: scale(1.18); animation: acercar 2s var(--suave) forwards .25s; }
@keyframes revelar { to { clip-path: inset(0 0 0 0 round 30px); } }
@keyframes acercar { to { transform: scale(1.06); } }
.flotante {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem;
  background: rgba(255, 255, 255, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px;
  padding: .7rem .95rem; box-shadow: var(--sombra);
  font-size: .78rem; line-height: 1.3; color: var(--texto-suave);
}
.flotante strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--navy); }
.flotante .icono { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--celeste-suave); color: var(--navy); flex: none; }
.flotante .icono svg { width: 19px; height: 19px; }
.flotante-1 { left: 0; bottom: 3.5rem; }
.flotante-2 { right: -.5rem; bottom: -.75rem; } /* abajo a la derecha, sobre la camisa: no tapa el rostro */
.js .flotante { opacity: 0; animation: aparecer-flotante 1s var(--suave) forwards 1.2s, flotar 8s ease-in-out infinite 2.2s; }
.js .flotante-2 { animation-delay: 1.4s, 3.5s; }
@keyframes aparecer-flotante { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Cinta de temas ---------- */
.cinta { overflow: hidden; border-block: 1px solid var(--linea); background: var(--blanco); padding: 1.1rem 0; }
.cinta-pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.cinta ul { display: flex; gap: 2.5rem; list-style: none; margin: 0; padding: 0 1.25rem; }
.cinta li { display: flex; align-items: center; gap: 2.5rem; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--navy); white-space: nowrap; }
.cinta li::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--verde); }
@keyframes cinta { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.seccion { position: relative; padding: 5rem 0; }
.seccion-blanca { background: var(--blanco); }
.seccion-celeste { background: var(--celeste-suave); }
.cabeza-seccion { max-width: 42rem; margin-bottom: 2.75rem; }
.cabeza-seccion p { color: var(--texto-suave); font-size: 1.08rem; }

/* Aparición al hacer scroll */
.js .aparece { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--suave), transform 1s var(--suave); transition-delay: calc(var(--d, 0) * 90ms); }
.js .aparece.visible { opacity: 1; transform: none; }

/* Tarjetas de temas con luz que sigue al mouse */
.temas { display: grid; }
.tema {
  position: relative; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--texto);
  background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio);
  padding: 2rem 1.6rem 1.6rem; min-height: 270px;
  transition: transform .5s var(--suave), border-color .4s, box-shadow .5s;
}
.tema::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 193, 220, .35), transparent 45%);
}
.tema:hover { transform: translateY(-6px); border-color: var(--celeste); box-shadow: var(--sombra); color: var(--texto); }
.tema:hover::before { opacity: 1; }
.tema > * { position: relative; }
.tema .numero { font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--celeste); }
.tema h3 { margin: 1rem 0 .5rem; font-size: 1.85rem; }
.tema p { color: var(--texto-suave); margin: 0 0 1.5rem; }
.tema .ir { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; font-size: .92rem; color: var(--navy); }
.tema .ir i { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--celeste); transition: background-color .4s, color .4s, transform .4s var(--suave); }
.tema .ir svg { width: 17px; height: 17px; }
.tema:hover .ir i { background: var(--navy); color: var(--blanco); transform: translateX(4px); }
.tambien { margin-top: 1.75rem; color: var(--texto-suave); }

/* Mosaico de temas: en celular, la principal ocupa todo el ancho, dos van de a par y la última es horizontal */
.temas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.tema-1, .tema-4 { grid-column: 1 / -1; }
.tema .corto { display: none; }
.tema-chica { min-height: 0; padding: 1.4rem 1.15rem 1.2rem; }
.tema-chica .numero { font-size: 2.4rem; }
.tema-chica h3 { font-size: 1.5rem; margin-top: .6rem; }
.tema-chica .largo { display: none; }
.tema-chica .corto { display: block; font-size: .9rem; line-height: 1.5; margin-bottom: 1.1rem; }
.tema-chica .ir-texto { display: none; }
.tema-1 { background: var(--navy); border-color: var(--navy); color: #DCE6F2; min-height: 300px; }
.tema-1:hover { color: #DCE6F2; border-color: var(--navy); }
.tema-1::before { background: radial-gradient(420px circle at var(--mx, 80%) var(--my, 10%), rgba(169, 193, 220, .28), transparent 50%); opacity: 1; }
.tema-1 .numero { color: var(--azul); }
.tema-1 h3 { color: var(--blanco); font-size: 2.1rem; }
.tema-1 p { color: #C9D5E6; }
.tema-1 .ir { color: var(--blanco); }
.tema-1 .ir i { border-color: rgba(169, 193, 220, .5); }
.tema-1:hover .ir i { background: var(--blanco); color: var(--navy); }
.tema-4 { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 1.25rem; align-items: start; }
.tema-4 .ir { grid-column: 2; }
.tema-4 h3 { margin-top: .2rem; }

/* Frase ancla (normalización) */
.ancla { padding: 5.5rem 0; text-align: center; }
.ancla blockquote { margin: 0 auto; max-width: 50rem; font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 3.1rem); line-height: 1.2; color: var(--navy); }
.ancla blockquote em { color: var(--azul); }
.ancla .filete { width: 1px; height: 56px; margin: 0 auto 2rem; background: linear-gradient(var(--fondo), var(--verde)); }

/* Señales (¿te suena?) */
.senales { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.senales li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--fondo); border: 1px solid var(--linea); border-radius: 18px; padding: 1.1rem 1.2rem;
  transition: transform .4s var(--suave), border-color .4s;
}
.senales li:hover { transform: translateX(6px); border-color: var(--celeste); }
.senales li::before {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: .55rem; border-radius: 50%;
  background: var(--verde); box-shadow: 0 0 0 5px var(--verde-suave);
}

/* Pensamientos interactivos (terapia cognitivo-conductual) */
.pensamientos { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; perspective: 1200px; }
.pensamiento {
  position: relative; display: grid; width: 100%; min-height: 128px; padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
  transform-style: preserve-3d; transition: transform .9s var(--suave);
}
.pensamiento .cara {
  grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; gap: .4rem;
  padding: 1.35rem 1.5rem; border-radius: 26px 26px 26px 8px;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.pensamiento .frente { background: var(--blanco); box-shadow: 0 22px 44px -32px rgba(19, 40, 79, .55); }
.pensamiento .dorso { background: var(--navy); color: var(--blanco); transform: rotateY(180deg); }
.pensamiento .frase { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.2; color: var(--navy); }
.pensamiento .dorso .frase { color: var(--blanco); font-style: normal; }
.pensamiento small { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-texto); display: flex; align-items: center; gap: .45rem; }
.pensamiento .dorso small { color: var(--celeste); }
.pensamiento small svg { width: 15px; height: 15px; }
.pensamiento[aria-pressed="true"] { transform: rotateY(180deg); }
.pensamiento:nth-child(2) .cara { border-radius: 26px 26px 8px 26px; }
.pensamiento:nth-child(2) { margin-left: 1.25rem; width: calc(100% - 1.25rem); }
.js .pensamientos.visible .pensamiento:not([aria-pressed="true"]) .frente { animation: flotar 8s ease-in-out infinite; }
.js .pensamientos.visible .pensamiento:nth-child(2) .frente { animation-delay: -2.6s; }
.js .pensamientos.visible .pensamiento:nth-child(3) .frente { animation-delay: -5.2s; }
.pensamientos-texto p { color: var(--texto); }
.instruccion { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 500; color: var(--navy); background: var(--blanco); border-radius: 999px; padding: .45rem .9rem; margin-bottom: 1.25rem; }
.instruccion svg { width: 17px; height: 17px; }
.aclaracion { font-size: .86rem; color: var(--texto-suave); margin-top: 1.5rem; }

/* Cómo trabajamos */
.enfoque { display: grid; gap: 1rem; }
.enfoque article { position: relative; background: var(--blanco); border-radius: var(--radio); padding: 1.8rem 1.6rem; border: 1px solid var(--linea); overflow: hidden; }
.enfoque article::before { content: ""; position: absolute; left: 1.6rem; top: 0; width: 40px; height: 3px; background: var(--verde); border-radius: 0 0 3px 3px; }
.enfoque .num { font-family: var(--serif); font-style: italic; color: var(--azul-texto); font-size: 1.05rem; }
.enfoque h3 { font-size: 1.5rem; margin-top: .4rem; }
.enfoque p { color: var(--texto-suave); margin: 0; }
.seccion-blanca .enfoque article { background: var(--fondo); }

/* En celular: carrusel deslizable con la siguiente tarjeta asomando */
@media (max-width: 639px) {
  .enfoque {
    display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem; scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
  }
  .enfoque::-webkit-scrollbar { display: none; }
  .enfoque article { flex: 0 0 80%; scroll-snap-align: start; }
  .enfoque + .deslizar { display: flex; }
}
.deslizar { display: none; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .82rem; color: var(--texto-suave); }
.deslizar .puntos { display: flex; gap: 6px; }
.deslizar .puntos i { width: 7px; height: 7px; border-radius: 99px; background: var(--celeste); transition: width .4s var(--suave), background-color .4s; }
.deslizar .puntos i.activo { width: 22px; background: var(--navy); }

/* Respiración guiada (solo /ansiedad) */
.respira { display: grid; gap: 2.5rem; align-items: center; }
.respira-visual { position: relative; width: min(78vw, 320px); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.respira-visual .anillo { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--celeste); }
.respira-visual .bola {
  position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, var(--celeste) 70%);
  box-shadow: 0 30px 60px -30px rgba(30, 58, 110, .6);
  transform: scale(.8); transition: transform 4s cubic-bezier(.45, 0, .55, 1);
}
.respira-visual.inhala .bola { transform: scale(1.75); }
.respira-visual.exhala .bola { transform: scale(.8); transition-duration: 6s; }
.respira-visual .indicacion { position: relative; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }

/* Quién soy */
.sobre-mi { display: grid; gap: 2.5rem; align-items: center; }
.sobre-mi .retrato { position: relative; width: min(100%, 380px); margin: 0 auto; }
.sobre-mi .retrato .ventana { border-radius: 26px; overflow: hidden; box-shadow: var(--sombra); }
.sobre-mi .retrato img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--suave); }
.sobre-mi .retrato:hover img { transform: scale(1.04); }
.sobre-mi .retrato::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--celeste); border-radius: 30px; z-index: -1; }
.datos { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.datos li { display: grid; gap: .1rem; padding: .85rem 0; border-bottom: 1px solid var(--linea); }
.datos li span:first-child { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--azul-texto); }
.mini-sobre-mi { display: grid; gap: 1.5rem; align-items: center; background: var(--blanco); border: 1px solid var(--linea); border-radius: 28px; padding: 1.5rem; }
.mini-sobre-mi img { width: 112px; aspect-ratio: 1; border-radius: 22px; object-fit: cover; object-position: 50% 18%; }
.mini-sobre-mi h2 { font-size: 2rem; margin-bottom: .3rem; }
.mini-sobre-mi p { color: var(--texto-suave); margin-bottom: .6rem; }
.mini-sobre-mi .credenciales { font-size: .85rem; color: var(--azul-texto); margin: 0; }

/* ¿Es para vos? */
.encaje { display: grid; gap: 1rem; }
.encaje > div { border-radius: var(--radio); padding: 1.8rem 1.6rem; }
.encaje .si { background: var(--navy); color: #DCE6F2; }
.encaje .si h3 { color: var(--blanco); }
.encaje .no { background: var(--blanco); border: 1px solid var(--linea); }
.encaje ul { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.encaje li { display: flex; gap: .75rem; align-items: flex-start; }
.encaje li svg { width: 20px; height: 20px; flex: none; margin-top: .25rem; }
.encaje .si li svg { color: var(--verde); }
.encaje .no li svg { color: var(--azul); }
.encaje .no p { font-size: .92rem; color: var(--texto-suave); margin: 1.25rem 0 0; }

/* Pasos con línea que se completa al hacer scroll */
.pasos { list-style: none; margin: 0; padding: 0; counter-reset: paso; position: relative; }
.pasos .linea { position: absolute; left: 22px; top: 12px; bottom: 12px; width: 1px; background: var(--linea); }
.pasos .linea::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--verde), var(--azul)); transform-origin: top; transform: scaleY(var(--p, 0)); }
.paso { position: relative; padding: 0 0 2.2rem 4.25rem; counter-increment: paso; }
.paso:last-child { padding-bottom: 0; }
.paso::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blanco); border: 1px solid var(--celeste);
  font-family: var(--serif); font-size: 1.35rem; color: var(--navy);
  transition: background-color .5s, color .5s, border-color .5s;
}
.paso.activo::before { background: var(--navy); color: var(--blanco); border-color: var(--navy); }
.seccion-blanca .paso::before { background: var(--fondo); }
.seccion-blanca .paso.activo::before { background: var(--navy); }
.paso h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.paso p { color: var(--texto-suave); margin: 0; }

/* Fichas de datos prácticos */
.fichas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2.5rem; }
.ficha { background: var(--fondo); border: 1px solid var(--linea); border-radius: 18px; padding: 1.05rem; transition: transform .4s var(--suave), border-color .4s; }
.ficha:hover { transform: translateY(-3px); border-color: var(--celeste); }
.seccion-celeste .ficha, .seccion:not(.seccion-blanca) .ficha { background: var(--blanco); }
.ficha span { display: block; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--azul-texto); }
.ficha strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; line-height: 1.15; color: var(--navy); margin-top: .3rem; }
.ficha small { display: block; font-size: .84rem; color: var(--texto-suave); margin-top: .2rem; }
.ficha-ancha { grid-column: 1 / -1; }
.ficha-destacada { background: var(--navy) !important; border-color: var(--navy); }
.ficha-destacada span { color: var(--celeste); }
.ficha-destacada strong { color: var(--blanco); }
.ficha-destacada small { color: #C9D5E6; }

/* Preguntas frecuentes */
.preguntas { border-top: 1px solid var(--linea); }
.preguntas details { border-bottom: 1px solid var(--linea); }
.preguntas summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0; font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; color: var(--navy);
  transition: color .3s;
}
.preguntas summary:hover { color: var(--azul-texto); }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--celeste);
  background:
    linear-gradient(var(--navy), var(--navy)) center / 12px 1.5px no-repeat,
    linear-gradient(var(--navy), var(--navy)) center / 1.5px 12px no-repeat;
  transition: transform .45s var(--suave), background-color .3s;
}
.preguntas details[open] summary::after { transform: rotate(135deg); background-color: var(--celeste-suave); }
.preguntas .respuesta { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--suave); }
.preguntas details[open] .respuesta { grid-template-rows: 1fr; }
.preguntas .respuesta > div { overflow: hidden; }
.preguntas .respuesta p { color: var(--texto-suave); padding-right: 2.5rem; }

/* Llamado final con vista previa del mensaje */
.llamado { position: relative; overflow: hidden; background: var(--navy); color: #DCE6F2; padding: 5.5rem 0; }
.llamado .aura span { opacity: .14; }
.llamado .aura span:nth-child(1) { --c: #A9C1DC; }
.llamado .aura span:nth-child(2) { --c: #9CC5A8; }
.llamado .aura span:nth-child(3) { --c: #5B80A8; }
.llamado .aura { z-index: 0; }
.llamado .contenedor { position: relative; z-index: 1; display: grid; gap: 3rem; align-items: center; }
.llamado h2 { color: var(--blanco); }
.llamado h2 em { color: var(--celeste); }
.llamado p { max-width: 32rem; }
.llamado .nota-boton { color: #C9D5E6; }
.llamado .nota-boton::before { box-shadow: 0 0 0 4px rgba(156, 197, 168, .25); }
.chat {
  width: min(100%, 380px); margin: 0 auto; background: #EFEAE2; border-radius: 28px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); color: var(--texto);
}
.chat-cabeza { display: flex; align-items: center; gap: .7rem; background: var(--blanco); padding: .85rem 1rem; }
.chat-cabeza img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; }
.chat-cabeza strong { display: block; font-size: .95rem; font-weight: 500; color: var(--texto); line-height: 1.2; }
.chat-cabeza span { font-size: .75rem; color: var(--texto-suave); }
.chat-cuerpo { padding: 1.5rem 1rem 1.25rem; display: grid; gap: .5rem; }
.chat-aviso { justify-self: center; font-size: .72rem; color: var(--texto-suave); background: rgba(255, 255, 255, .75); border-radius: 8px; padding: .25rem .6rem; }
.burbuja {
  justify-self: end; max-width: 88%; background: #D9FDD3; border-radius: 14px 4px 14px 14px;
  padding: .65rem .85rem; font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
}
.js .chat .burbuja { display: none; opacity: 0; transform: translateY(10px) scale(.96); transform-origin: right bottom; transition: opacity .6s var(--suave), transform .6s var(--suave); }
.js .chat.listo .burbuja { display: block; }
.js .chat.mostrar .burbuja { opacity: 1; transform: none; }
.escribiendo { display: none; justify-self: end; gap: 4px; background: #D9FDD3; border-radius: 14px; padding: .75rem .9rem; }
.js .chat.visible:not(.listo) .escribiendo { display: flex; }
.escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #7a9a80; animation: punto 1.2s infinite; }
.escribiendo i:nth-child(2) { animation-delay: .15s; }
.escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* Texto largo (privacidad) */
.texto-largo-pagina { max-width: 46rem; }
.texto-largo-pagina h1 { font-size: clamp(2.6rem, 8vw, 4rem); }
.texto-largo-pagina h2 { font-size: 1.9rem; margin-top: 2.25rem; }
.texto-largo-pagina ul { padding-left: 1.2rem; }

/* ---------- Pie ---------- */
.pie { background: var(--navy-hondo); color: #C9D5E6; padding: 4rem 0 6rem; font-size: .92rem; }
.pie a { color: #E8EEF6; }
.pie .marca strong { color: var(--blanco); font-size: 1.8rem; }
.pie .marca span { color: var(--celeste); }
.pie-grilla { display: grid; gap: 2.25rem; }
.pie h2 { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--celeste); margin-bottom: .9rem; font-weight: 500; }
.pie ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pie-legal { border-top: 1px solid rgba(169, 193, 220, .2); margin-top: 3rem; padding-top: 1.5rem; font-size: .8rem; color: #A9B8CC; }

/* ---------- Transiciones extra ---------- */

/* Subrayado que se dibuja bajo las palabras en cursiva de los títulos */
h2 em {
  background: linear-gradient(var(--verde), var(--verde)) 0 94% / 0 2px no-repeat;
  transition: background-size 1.3s var(--suave) .45s;
}
.js .aparece.visible h2 em, html:not(.js) h2 em { background-size: 100% 2px; }
.llamado h2 em { background-image: linear-gradient(var(--celeste), var(--celeste)); }

/* Frase ancla que se va "encendiendo" palabra por palabra al bajar */
.js .ancla blockquote .p { opacity: .16; transition: opacity .45s ease, color .45s ease; }
.js .ancla blockquote .p.on { opacity: 1; }

/* Señales: entran desde un costado */
.js .senales .aparece { transform: translateX(-24px); }
.js .senales .aparece.visible { transform: none; }

/* Tarjetas de temas: entrada con leve zoom */
.js .temas .aparece { transform: translateY(30px) scale(.96); }
.js .temas .aparece.visible { transform: none; }
.js .temas .aparece.visible:hover { transform: translateY(-6px); }

/* Fichas: aparecen girando apenas */
.js .fichas .aparece { transform: translateY(16px) rotate(-1.5deg); }
.js .fichas .aparece.visible { transform: none; }

/* Transición suave entre páginas (navegadores compatibles) */
@view-transition { navigation: auto; }
.cabecera { view-transition-name: cabecera; }
.wa-flotante { view-transition-name: wa-flotante; }
::view-transition-old(root) { animation: salir .28s ease both; }
::view-transition-new(root) { animation: entrar .5s var(--suave) both; }
@keyframes salir { to { opacity: 0; transform: translateY(-10px); } }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; animation-delay: 0s !important; }
  .js .aparece, .js .titulo-animado .palabra, .js .portada-texto > *, .js .flotante { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .foto-principal .ventana { clip-path: none; }
  .js .resalte path { stroke-dashoffset: 0; }
  .cinta-pista { animation: none; }
  .js .ancla blockquote .p { opacity: 1; }
  h2 em { background-size: 100% 2px; }
  @view-transition { navigation: none; }
}

/* ---------- Pantallas medianas en adelante ---------- */
@media (min-width: 640px) {
  .portada-acciones { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .portada-acciones .boton { width: auto; }
  .temas { gap: 1rem; }
  .tema-chica .largo { display: block; }
  .tema-chica .corto { display: none; }
  .tema-chica .ir-texto { display: inline; }
  .tema-chica { padding: 2rem 1.6rem 1.6rem; }
  .fichas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ficha-ancha { grid-column: auto; }
  .enfoque { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .encaje { grid-template-columns: 1fr 1fr; }
  .mini-sobre-mi { grid-template-columns: auto 1fr; padding: 2rem; }
  .mini-sobre-mi img { width: 150px; }
  .wa-flotante .circulo { width: 62px; height: 62px; }
}

@media (min-width: 960px) {
  .cabecera .boton-wa { display: inline-flex; }
  .firma-movil { display: none; }
  .nav { display: flex; gap: 2rem; }
  .boton-menu, .menu-movil { display: none; }
  .portada { padding: 4rem 0 6.5rem; }
  .portada .contenedor { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; }
  .foto-principal { width: 100%; max-width: 460px; padding: 0 0 2rem 2rem; }
  .foto-principal .marco { inset: 2rem 2rem 0 0; }
  .flotante-1 { left: -1.5rem; }
  .flotante-2 { right: -2rem; }
  .seccion { padding: 7.5rem 0; }
  /* Mosaico en computadora: la principal alta a la izquierda, dos arriba y una ancha abajo */
  .temas { grid-template-columns: 1.2fr 1fr 1fr; }
  .tema-1 { grid-column: 1; grid-row: span 2; min-height: 460px; justify-content: flex-end; }
  .tema-1 .numero { position: absolute; top: 2rem; font-size: 5rem; }
  .tema-1 h3 { font-size: 2.6rem; }
  .tema-1 .tema-texto { margin-top: auto; }
  .tema-1 .ir { margin-top: .5rem; }
  .tema-4 { grid-column: 2 / span 2; grid-template-columns: auto 1fr auto; align-items: center; padding: 1.8rem 2rem; }
  .tema-4 .ir { grid-column: 3; margin-top: 0; }
  .tema-4 p { margin-bottom: 0; }
  .dos-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 5.5rem; align-items: start; }
  .dos-columnas.centrado { align-items: center; }
  .pegajoso { position: sticky; top: 120px; }
  .sobre-mi { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .pensamiento .frase { font-size: 1.85rem; }
  .respira { grid-template-columns: 1fr 1fr; }
  .llamado .contenedor { grid-template-columns: 1.1fr .9fr; }
  .pie-grilla { grid-template-columns: 1.4fr 1fr 1fr; }
  .dos-columnas .fichas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dos-columnas .ficha-ancha { grid-column: 1 / -1; }
  .pie { padding-bottom: 3rem; }
}

.junto { white-space: nowrap; }
