/* NRP Women's Health Science — hoja de estilos de la demo.
   Base del prototipo v1 + capa de movimiento (revelados, parallax, marquesina…).
   Todo el movimiento se apaga con prefers-reduced-motion al final del archivo. */

:root {
  --arena-50: #fbf8f3;
  --arena-100: #f5efe6;
  --arena-200: #ebe0d1;
  --oliva-500: #7c7a52;
  --oliva-700: #565536;
  --tinta-900: #3a322b;
  --tinta-600: #6b5b4d;
  --terracota: #c08763;
  --nude: #d8b9a8;
  --salvia: #6e8b6e;
  --white: #fffdf9;
  --shadow: 0 20px 55px rgba(58, 50, 43, .12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --max: 1180px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; overflow-x: clip; }
body {
  margin: 0;
  color: var(--tinta-900);
  background: var(--arena-50);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .serif {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 5.6rem); margin-bottom: clamp(18px, 2.4vw, 28px); }
h2 { font-size: clamp(1.75rem, 4.2vw, 4.2rem); margin-bottom: clamp(16px, 2vw, 24px); }
h3 { line-height: 1.25; }
:focus-visible { outline: 3px solid var(--terracota); outline-offset: 4px; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; overflow: clip; }
.section--soft { background: var(--arena-100); }
.section--olive { background: var(--oliva-700); color: var(--arena-50); }
.section--ink { background: var(--tinta-900); color: var(--arena-50); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head p { font-size: 1.06rem; color: var(--tinta-600); }
.section--olive .section-head p, .section--ink .section-head p { color: #e5ded4; }

/* ---------- Textura de papel: da cuerpo a los fondos planos ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}
main, .site-header, footer { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--oliva-700);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: lineIn .9s var(--ease-out) both;
}
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.section--olive .eyebrow, .section--ink .eyebrow { color: var(--arena-200); }

/* ---------- Botones ---------- */
.btn {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 24px;
  background: var(--oliva-500);
  color: white;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease-out), background .25s ease, color .25s ease,
    border-color .25s ease, box-shadow .25s ease;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-18deg);
  transition: left .55s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); background: var(--oliva-700); box-shadow: 0 14px 28px rgba(58, 50, 43, .18); }
.btn:hover::after { left: 115%; }
.btn:active { transform: translateY(-1px) scale(.99); }
.btn--secondary { background: transparent; border-color: rgba(58, 50, 43, .28); color: var(--tinta-900); }
.btn--secondary:hover { color: white; border-color: var(--oliva-700); }
.btn--light { background: var(--arena-50); color: var(--oliva-700); }
.btn--light:hover { background: white; color: var(--tinta-900); }
.btn--ghost-light { background: transparent; border-color: rgba(255, 255, 255, .38); color: white; }
.btn--ghost-light:hover { background: white; color: var(--oliva-700); }
.arrow { font-size: 1.15em; transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(5px); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(58, 50, 43, .08);
  background: rgba(251, 248, 243, .9);
  backdrop-filter: blur(18px);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-stuck { background: rgba(251, 248, 243, .96); box-shadow: 0 10px 30px rgba(58, 50, 43, .07); }
.site-header.is-stuck .nav { min-height: 66px; }
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--oliva-500), var(--terracota));
  transition: width .1s linear;
}
.nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  transition: min-height .3s var(--ease-out);
}
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.logo-mark { font-family: "Playfair Display", Georgia, serif; font-size: 2.05rem; color: var(--oliva-700); letter-spacing: -.08em; transition: transform .3s var(--ease-out); }
.logo:hover .logo-mark { transform: translateY(-2px); }
.logo-sub { margin-top: 5px; font-size: .45rem; letter-spacing: .2em; font-weight: 600; color: var(--tinta-600); }
.nav-links { display: flex; justify-content: center; gap: 26px; }
.nav-links a { position: relative; text-decoration: none; font-size: .78rem; font-weight: 600; transition: color .2s ease; }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--oliva-500);
  transition: right .25s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-links a.is-active { color: var(--oliva-700); }
.menu-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--tinta-900); transition: transform .25s var(--ease-out), opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Revelado al entrar en pantalla ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Titular que aparece línea a línea */
.reveal-lines .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.reveal-lines .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.reveal-lines.is-in .line > span { transform: none; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(40px, 7vw, 74px) 0 clamp(36px, 6vw, 54px);
  display: flex;
  align-items: center;
  overflow: clip;
}
/* Manchas de color: siempre dentro, en proporción al ancho disponible. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: clamp(220px, 42vw, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(clamp(40px, 6vw, 70px));
  opacity: .5;
  pointer-events: none;
}
.hero::before { left: -8%; top: 6%; background: radial-gradient(circle, rgba(216, 185, 168, .75), transparent 68%); animation: drift 17s ease-in-out infinite alternate; }
.hero::after { right: -8%; bottom: 0; background: radial-gradient(circle, rgba(124, 122, 82, .35), transparent 68%); animation: drift 21s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, -4%, 0) scale(1.1); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero-copy > p { max-width: 62ch; font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--tinta-600); }
.hero h1 em { position: relative; color: var(--oliva-500); font-weight: inherit; }
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .06em;
  height: 3px;
  background: var(--nude);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.1s var(--ease-out) 1.1s both;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 24px; font-size: .76rem; color: var(--tinta-600); }
.hero-proof span { display: flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--terracota); }
.hero-proof span:nth-child(1)::before { animation: pulse 2.6s ease-in-out infinite; }
.hero-proof span:nth-child(2)::before { animation: pulse 2.6s ease-in-out .5s infinite; }
.hero-proof span:nth-child(3)::before { animation: pulse 2.6s ease-in-out 1s infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.5); opacity: .55; } }

.scroll-hint { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; color: var(--tinta-600); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; }
.scroll-hint i { flex: 0 0 1px; align-self: center; display: block; width: 1px; height: 34px; background: linear-gradient(var(--oliva-500), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform: scaleY(.2); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(.2); transform-origin: bottom; } }

/* ---------- Retrato: una caja con proporción, no alturas a mano ---------- */
.portrait-wrap {
  position: relative;
  width: 100%;
  max-width: min(460px, 78vw);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
}
.portrait-arch {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 46% 46% 6% 6% / 34% 34% 4% 4%;
  background: linear-gradient(150deg, var(--arena-200), var(--nude));
  box-shadow: var(--shadow);
}
.portrait-arch::before {
  content: "";
  position: absolute;
  width: 90%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  left: -38%;
  top: 14%;
  animation: spin 34s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Nube de marca: flota sola y se acerca al cursor como un imán. */
.nube {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 1;
  width: 66%;
  translate: -50% -50%;
  pointer-events: none;
  transition: transform .8s var(--ease-out);
}
.nube svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 26px rgba(58, 50, 43, .16)); }
.nube-flota { animation: floaty 7s ease-in-out infinite; }

.rocio-photo {
  position: absolute;
  inset: 8% 0 0;
  z-index: 2;
  background: url("assets/rocio-color.png") center bottom / contain no-repeat;
  -webkit-mask: url("assets/rocio-mask.png") center bottom / contain no-repeat;
  mask: url("assets/rocio-mask.png") center bottom / contain no-repeat;
  filter: drop-shadow(0 24px 35px rgba(58, 50, 43, .18));
}
.portrait-note {
  position: absolute;
  left: 0;
  bottom: 6%;
  z-index: 3;
  max-width: min(255px, 62%);
  padding: 16px 18px;
  border: 1px solid rgba(58, 50, 43, .09);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 14px 34px rgba(58, 50, 43, .12);
  font-size: clamp(.72rem, 1.6vw, .78rem);
  font-weight: 600;
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.portrait-note strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.05em; color: var(--oliva-700); margin-bottom: 3px; }
.line-art { display: none; }

/* ---------- Barra de confianza ---------- */
.trust-bar { padding: 34px 0; border-top: 1px solid rgba(58, 50, 43, .08); border-bottom: 1px solid rgba(58, 50, 43, .08); }
.trust-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); align-items: center; gap: 20px; }
.trust-grid .lead { font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; line-height: 1.25; }
.trust-item { border-left: 1px solid rgba(58, 50, 43, .15); padding-left: 22px; transition: transform .3s var(--ease-out); }
.trust-item:hover { transform: translateY(-4px); }
.trust-item strong { display: block; font-size: .83rem; }
.trust-item span { font-size: .7rem; color: var(--tinta-600); }

/* ---------- Marquesina ---------- */
.marquee { padding: 26px 0; overflow: hidden; border-bottom: 1px solid rgba(58, 50, 43, .08); background: var(--arena-50); }
/* Sin hueco en la pista y con el hueco dentro de cada grupo: así el salto del bucle es exacto. */
.marquee-track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 42px; padding-right: 42px; font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; font-style: italic; color: var(--tinta-600); white-space: nowrap; }
.marquee span::after { content: "✦"; font-style: normal; font-size: .7rem; color: var(--terracota); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(12px, 1.6vw, 16px);
}
.problem-card {
  min-height: 0;
  padding: 28px;
  border: 1px solid rgba(58, 50, 43, .09);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .35s ease;
}
@media (min-width: 1100px) { .problem-card:nth-child(2), .problem-card:nth-child(4) { transform: translateY(22px); } }
.problem-card:hover { border-color: var(--nude); box-shadow: 0 22px 46px rgba(58, 50, 43, .12); transform: translateY(-8px); }
.problem-card:nth-child(2):hover, .problem-card:nth-child(4):hover { transform: translateY(14px); }
.problem-number { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--arena-100); color: var(--oliva-700); font-size: .72rem; font-weight: 700; transition: background .3s ease, color .3s ease; }
.problem-card:hover .problem-number { background: var(--oliva-700); color: white; }
.problem-card h3 { margin: clamp(18px, 3vw, 34px) 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.problem-card p { margin-bottom: 0; color: var(--tinta-600); font-size: .84rem; }
.problem-close { max-width: 780px; margin: 70px auto 0; text-align: center; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.25; }

/* ---------- Método ---------- */
.method-intro { display: grid; grid-template-columns: 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .method-intro { grid-template-columns: 1.15fr .85fr; align-items: end; } }
.method-intro h2 { margin: 0; }
.method-intro p { margin: 0 0 8px; color: #e5ded4; }
.pillars { display: block; }
.pillar {
  position: relative;
  min-height: 330px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .055);
  transition: background .35s ease, transform .35s var(--ease-out), border-color .35s ease;
}
.pillar::after { content: ""; position: absolute; width: 145px; height: 145px; right: -70px; bottom: -70px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; transition: transform .5s var(--ease-out); }
.pillar.is-active::after { display: none; }
.pillar:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); transform: translateY(-8px); }
.pillar:hover::after { transform: scale(1.9); }
.pillar-code { font-family: "Playfair Display", Georgia, serif; color: var(--nude); font-size: .94rem; font-style: italic; }
.pillar h3 { margin: 86px 0 10px; font-size: 1.12rem; letter-spacing: .11em; text-transform: uppercase; }
.pillar strong { display: block; margin-bottom: 12px; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; font-weight: 500; }
.pillar p { margin-bottom: 0; color: #dfd7cc; font-size: .82rem; }
.method-note { display: flex; justify-content: space-between; align-items: center; gap: 28px; margin-top: 48px; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.method-note p { max-width: 660px; margin: 0; font-size: .86rem; color: #dfd7cc; }

/* ---------- Proceso ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: process; }
.process-step { position: relative; padding: 0 28px 0 0; counter-increment: process; }
.process-step:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 50px; right: 0; height: 1px; background: var(--arena-200); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out) .2s; }
.process-step.is-in:not(:last-child)::after { transform: scaleX(1); }
.process-index { position: relative; z-index: 1; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--oliva-500); border-radius: 50%; background: var(--arena-50); color: var(--oliva-700); font-size: .72rem; font-weight: 700; transition: background .3s ease, color .3s ease, transform .3s var(--ease-out); }
.process-step:hover .process-index { background: var(--oliva-700); color: white; transform: scale(1.08); }
.process-step h3 { margin: 26px 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.process-step p { margin: 0; color: var(--tinta-600); font-size: .82rem; }

/* ---------- App ---------- */
.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(30px, 5vw, 72px);
  align-items: center;
}
@media (min-width: 900px) { .app-layout { grid-template-columns: .9fr 1.1fr; } }
.app-copy { min-width: 0; }
.app-copy p { color: #e6ded4; }

/* Pestañas de la app: encima del móvil, para ver el cambio a la vez. */
.app-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 520px;
  margin: 0 auto clamp(22px, 3vw, 34px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.app-tab {
  flex: 1 1 auto;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  background: transparent;
  color: #c3b8ac;
  cursor: pointer;
  font-size: clamp(.68rem, 1.1vw, .76rem);
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background .35s var(--ease-out), color .35s ease;
}
.app-tab em, .app-tab-linea { display: none; }
.app-tab:hover { color: var(--arena-50); }
.app-tab[aria-selected="true"] { background: var(--arena-50); color: var(--tinta-900); }

/* En pantallas estrechas, una sola fila que se desliza: nada de saltos de línea. */
@media (max-width: 760px) {
  .app-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    border-radius: 999px;
  }
  .app-tabs::-webkit-scrollbar { display: none; }
  .app-tab { flex: 0 0 auto; scroll-snap-align: center; padding: 10px 16px; }
}

.app-feature-title { margin-bottom: 7px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 500; }
.app-feature-text { font-size: .88rem; }
.app-feature-title, .app-feature-text { transition: opacity .25s ease, transform .25s ease; }
.app-copy.is-swapping .app-feature-title, .app-copy.is-swapping .app-feature-text { opacity: 0; transform: translateY(6px); }

/* El escenario: el móvil manda y el portátil es decoración detrás, solo si hay sitio. */
.app-stage { position: relative; display: grid; place-items: center; width: 100%; }
/* Luz detrás del móvil: le da cuerpo sin añadir trastos. */
.app-stage::before {
  content: "";
  position: absolute;
  width: min(520px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 185, 168, .16), transparent 66%);
  pointer-events: none;
}
.desktop-card { display: none; } /* el portátil quitaba protagonismo al móvil */
.desktop-shell { padding: 24px; color: var(--tinta-900); }
.desktop-shell .dash-title { font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; }
.desktop-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 16px; }
.desktop-widget { border-radius: 14px; padding: 14px; background: white; font-size: .62rem; aspect-ratio: 2 / 1; }
.desktop-widget.wide { grid-row: span 2; aspect-ratio: auto; }
.mini-line { height: 5px; margin: 9px 0; border-radius: 999px; background: #e3ddd5; }
.mini-line.green { width: 68%; background: #a4b3a2; }

/* El móvil: ancho fluido y proporción fija; nunca se sale ni se deforma. */
.phone {
  position: relative;
  z-index: 3;
  width: min(264px, 64vw);
  aspect-ratio: 298 / 608;
  padding: 3.4%;
  border: 2px solid #312b26;
  border-radius: 14%/6.8%;
  background: #171411;
  box-shadow: 0 38px 80px rgba(0, 0, 0, .35);
}
.phone::before { content: ""; position: absolute; z-index: 5; width: 31%; height: 4%; left: 50%; top: 2.6%; transform: translateX(-50%); border-radius: 20px; background: #171411; }
.phone-screen {
  --escala: .71; /* lo ajusta el JS al ancho real; este es el valor de partida */
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 11%/5.4%;
  background: #f7f3ec;
  color: var(--tinta-900);
}
.app-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 390px;
  height: calc(100% / var(--escala));
  border: 0;
  transform: scale(var(--escala));
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.app-frame.is-active { opacity: 1; visibility: visible; }

/* ---------- Precios ---------- */
.service-tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 40px; border: 1px solid rgba(58, 50, 43, .1); border-radius: 999px; background: white; }
.service-tab { border: 0; border-radius: 999px; padding: 12px 19px; background: transparent; color: var(--tinta-600); cursor: pointer; font-size: .76rem; font-weight: 700; transition: background .3s var(--ease-out), color .3s ease; }
.service-tab[aria-selected="true"] { background: var(--oliva-700); color: white; }
.pricing-panel[hidden] { display: none; }
.pricing-panel { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.pricing-intro { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: start; margin-bottom: 34px; }
.pricing-intro h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 500; }
.pricing-intro p { margin: 0; color: var(--tinta-600); font-size: .9rem; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 800px; }
.price-card { position: relative; display: flex; min-height: 430px; flex-direction: column; padding: 30px; border: 1px solid rgba(58, 50, 43, .1); border-radius: var(--radius-lg); background: white; transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .3s ease; }
.price-card:hover { transform: translateY(-10px); box-shadow: 0 28px 55px rgba(58, 50, 43, .14); border-color: var(--nude); }
.price-card.featured { border-color: var(--oliva-500); background: var(--arena-200); box-shadow: var(--shadow); }
.badge { position: absolute; right: 22px; top: 22px; padding: 6px 10px; border-radius: 999px; background: var(--terracota); color: white; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.price-duration { color: var(--oliva-700); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.price { margin: 16px 0 2px; font-family: "Playfair Display", Georgia, serif; font-size: 3.45rem; line-height: 1; }
.per-month { margin-bottom: 22px; color: var(--tinta-600); font-size: .7rem; }
.price-card ul { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; }
.price-card li { position: relative; margin-bottom: 11px; padding-left: 20px; color: var(--tinta-600); font-size: .78rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--salvia); font-weight: 700; }
.price-card .btn { width: 100%; }
.pricing-note { margin-top: 24px; color: var(--tinta-600); font-size: .72rem; }

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: .85fr 1.15fr; } }

.about-image {
  position: relative;
  width: 100%;
  max-width: min(430px, 82vw);
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 46% 46% 6% 6% / 34% 34% 4% 4%;
  background: linear-gradient(150deg, var(--arena-200), var(--nude));
  box-shadow: var(--shadow);
}
.about-image::after {
  content: "NRP";
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -50%;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.5rem, 14vw, 7rem);
  letter-spacing: -.05em;
  color: rgba(255, 253, 249, .5);
}
.about-image .rocio-photo { inset: 8% 0 0; z-index: 1; }

/* La cita: bajo la foto en móvil, superpuesta cuando hay sitio. */
.about-badge {
  position: relative;
  z-index: 2;
  max-width: min(430px, 82vw);
  margin: -28px auto 0;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--oliva-700);
  color: white;
  font-size: clamp(.78rem, 2.2vw, .84rem);
  line-height: 1.6;
  box-shadow: 0 18px 40px rgba(58, 50, 43, .22);
}
@media (min-width: 900px) {
  .about-badge {
    position: absolute;
    right: -6%;
    bottom: 6%;
    max-width: 250px;
    margin: 0;
    font-size: .76rem;
  }
}

.about-media { position: relative; }
.about-copy { min-width: 0; }
.about-copy p { color: var(--tinta-600); max-width: 62ch; }
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: clamp(22px, 3vw, 28px) 0 clamp(26px, 4vw, 34px);
}
.credential {
  padding: 16px;
  border: 1px solid rgba(58, 50, 43, .1);
  border-radius: var(--radius-md);
  background: white;
  transition: transform .3s var(--ease-out), border-color .3s ease;
}
.credential:hover { transform: translateY(-5px); border-color: var(--nude); }
.credential strong { display: block; margin-bottom: 3px; font-size: .8rem; }
.credential span { color: var(--tinta-600); font-size: .68rem; line-height: 1.5; }

/* ---------- Encaje ---------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fit-card { padding: 34px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); transition: transform .35s var(--ease-out); }
.fit-card:hover { transform: translateY(-6px); }
.fit-card h3 { font-family: "Playfair Display", Georgia, serif; font-size: 1.7rem; font-weight: 500; }
.fit-card ul { margin: 0; padding: 0; list-style: none; }
.fit-card li { position: relative; margin: 12px 0; padding-left: 22px; color: #e6ded4; font-size: .83rem; }
.fit-card li::before { content: ""; position: absolute; width: 8px; height: 8px; left: 0; top: .63em; border-radius: 50%; background: var(--nude); }
.fit-card.muted { background: transparent; }
.fit-card.muted li::before { background: transparent; border: 1px solid var(--nude); }

/* ---------- Preguntas ---------- */
.faq-list { max-width: 860px; margin-inline: auto; border-top: 1px solid rgba(58, 50, 43, .14); }
.faq-item { border-bottom: 1px solid rgba(58, 50, 43, .14); }
.faq-question { display: grid; width: 100%; grid-template-columns: 1fr auto; gap: 24px; padding: 24px 0; border: 0; background: transparent; color: var(--tinta-900); text-align: left; cursor: pointer; font-family: "Playfair Display", Georgia, serif; font-size: 1.25rem; transition: color .25s ease; }
.faq-question:hover { color: var(--oliva-700); }
.faq-icon { font-family: "Montserrat", Arial, sans-serif; transition: transform .3s var(--ease-out); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(135deg); }
/* Apertura suave: la fila del grid pasa de 0fr a 1fr */
.faq-answer-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .38s var(--ease-out); }
.faq-item.is-open .faq-answer-wrap { grid-template-rows: 1fr; }
.faq-answer { overflow: hidden; max-width: 740px; color: var(--tinta-600); font-size: .86rem; }
.faq-answer > p { margin: 0; padding: 0 0 24px; }

/* ---------- Cierre ---------- */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 900px; margin-inline: auto; }
.final-cta p { max-width: 650px; margin: 0 auto 30px; color: #e6ded4; }
.final-cta .button-row { justify-content: center; }

footer { padding: 60px 0 28px; background: #2f2924; color: #eae2d8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, .7fr); gap: 36px; }
footer .logo-mark { color: var(--arena-200); }
footer .logo-sub { color: #cfc4b8; }
.footer-about { max-width: 380px; margin-top: 20px; color: #cfc4b8; font-size: .75rem; }
.footer-col strong { display: block; margin-bottom: 14px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 8px 0; color: #cfc4b8; text-decoration: none; font-size: .72rem; transition: color .2s ease, transform .2s ease; }
.footer-col a:hover { color: white; transform: translateX(3px); }
/* Firma del estudio que desarrolla la web (logotipo de gtialabs.com) */
.footer-dev { display: flex; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-dev a { display: inline-flex; align-items: center; gap: 10px; color: #aa9d91; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .2s ease; }
.footer-dev a:hover { color: #fff; }
.footer-dev svg { height: 13px; width: auto; display: block; }
.footer-dev .gtia-ia { color: #8ca06a; }
.footer-dev__labs { padding-left: 10px; border-left: 1px solid rgba(255, 255, 255, .22); letter-spacing: .3em; }

.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #aa9d91; font-size: .62rem; }

/* ---------- Formulario ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(38, 32, 27, .66); backdrop-filter: blur(8px); animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { position: relative; width: min(100%, 720px); max-height: calc(100dvh - 44px); overflow: auto; padding: 38px; border-radius: var(--radius-lg); background: var(--arena-50); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); animation: modalIn .45s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.97); } }
.modal-close { position: absolute; right: 18px; top: 16px; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: var(--arena-100); cursor: pointer; font-size: 1.2rem; transition: background .25s ease, transform .25s var(--ease-out); }
.modal-close:hover { background: var(--arena-200); transform: rotate(90deg); }
.modal-card h2 { padding-right: 36px; font-size: clamp(2.1rem, 5vw, 3.4rem); }
.modal-card > p { color: var(--tinta-600); font-size: .82rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 28px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .67rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #d9d0c4; border-radius: 12px; padding: 13px 14px; background: white; color: var(--tinta-900); font-size: .78rem; transition: border-color .25s ease, box-shadow .25s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--oliva-500); box-shadow: 0 0 0 4px rgba(124, 122, 82, .12); outline: none; }
.field textarea { min-height: 110px; resize: vertical; }
.consent { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; color: var(--tinta-600); font-size: .65rem; }
.consent input { margin-top: 4px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 6px; }
.form-note { max-width: 320px; color: var(--tinta-600); font-size: .62rem; }
.success-state { padding: 38px 0 14px; text-align: center; animation: modalIn .45s var(--ease-out); }
.success-icon { display: grid; width: 70px; height: 70px; margin: 0 auto 22px; place-items: center; border-radius: 50%; background: var(--salvia); color: white; font-size: 1.6rem; animation: pop .55s var(--ease-out) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.success-state h3 { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; font-weight: 500; }
.success-state p { color: var(--tinta-600); }
.prototype-tag { position: fixed; z-index: 40; right: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(58, 50, 43, .88); color: white; font-size: .56rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(8px); }

/* ---------- Adaptación a pantallas ---------- */
@media (max-width: 980px) {
  .section { padding: 88px 0; }
  .nav { grid-template-columns: 1fr auto auto; }
  .nav-links { position: fixed; inset: 110px 20px auto; display: none; flex-direction: column; gap: 0; padding: 18px; border: 1px solid rgba(58, 50, 43, .1); border-radius: var(--radius-lg); background: var(--arena-50); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; animation: panelIn .3s var(--ease-out); }
  .nav-links a { padding: 14px 10px; border-bottom: 1px solid rgba(58, 50, 43, .08); }
  .nav-links a:last-child { border-bottom: 0; }
  .menu-toggle { display: block; }
  .nav > .btn { min-height: 44px; padding: 9px 15px; font-size: .72rem; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .method-intro { grid-template-columns: 1fr; gap: 18px; }
  .process { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .process-step:nth-child(2)::after { display: none; }
  .pricing-intro { grid-template-columns: 1fr; gap: 12px; }
  .price-grid { grid-template-columns: 1fr; }
  .price-grid.two { grid-template-columns: 1fr 1fr; max-width: none; }
  .price-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .nav { min-height: 68px; gap: 10px; }
  .logo-mark { font-size: 1.7rem; }
  .logo-sub { display: none; }
  .nav-links { inset: 100px 14px auto; }
  .nav > .btn { min-height: 40px; padding: 8px 12px; }
  .button-row { flex-direction: column; align-items: stretch; }
  .button-row .btn { width: 100%; }
  .hero-proof { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .scroll-hint { display: none; }
  .trust-grid { grid-template-columns: 1fr; gap: 18px; }
  .trust-item { border-left: 0; border-top: 1px solid rgba(58, 50, 43, .12); padding: 14px 0 0; }
  .marquee span { font-size: 1.1rem; }
  .process, .fit-grid, .price-grid.two, .footer-grid { grid-template-columns: 1fr; }
  .process { gap: 0; }
  .process-step { padding: 0 0 34px 72px; }
  .process-index { position: absolute; left: 0; top: 0; }
  .process-step:not(:last-child)::after { display: block; top: 46px; bottom: 0; left: 23px; right: auto; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .process-step.is-in:not(:last-child)::after { transform: scaleY(1); }
  .process-step h3 { margin-top: 0; }
  .method-note { align-items: flex-start; flex-direction: column; }
  .service-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 18px; }
  .service-tab { border-radius: 13px; }
  .price-card { padding: 25px; }
  .footer-bottom { flex-direction: column; }
  .modal-card { padding: 30px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .consent, .form-actions { grid-column: auto; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-note { max-width: none; }
}

/* Quien pide menos movimiento, ve la web quieta y completa. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-lines .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ---------- Formulario ---------- */
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-error {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(181, 80, 60, .3);
  border-radius: 12px;
  background: #f6e7e1;
  color: #96412f;
  font-size: .74rem;
}

/* ---------- Paso de una sección a otra ---------- */
/* Curva que enlaza el fondo claro con el oscuro; se dibuja al entrar. */
.section-curve {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 78px;
  pointer-events: none;
  line-height: 0;
}
.section-curve svg { display: block; width: 100%; height: 100%; }
.section-curve path { transform: scaleY(0); transform-origin: top; transition: transform 1s var(--ease-out); }
.section.is-near .section-curve path { transform: scaleY(1); }
.section--olive, .section--ink, .section--soft { padding-top: 132px; }

/* El contenido de cada sección entra con un punto de fuga suave. */
.section > .container { transition: transform .9s var(--ease-out), opacity .9s var(--ease-out); }
.section:not(.is-near) > .container { transform: translateY(34px) scale(.985); opacity: .55; }
.section.is-near > .container { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .section:not(.is-near) > .container { transform: none; opacity: 1; }
  .section-curve path { transform: scaleY(1); }
}

/* La barra de acción es solo del móvil: en el escritorio la cabecera ya lleva
   su propio "Quiero empezar" fijo, y aquí abajo sobraba. */
@media (min-width: 641px) { .cta-movil { display: none; } }

/* ---------- Móvil ---------- */
@media (max-width: 980px) {
  /* La curva entre secciones es más baja, y el aire de arriba se ajusta a ella. */
  .section-curve { height: 46px; }
  .section--olive, .section--ink, .section--soft { padding-top: 104px; }
}

@media (max-width: 640px) {
  .section-curve { height: 34px; }
  .section--olive, .section--ink, .section--soft { padding-top: 88px; }

  /* El grano fijo obliga a repintar en cada scroll: en el móvil no compensa. */
  body::before { display: none; }

  /* La sección no se atenúa: en una pantalla pequeña casi siempre hay dos a la vez. */
  .section:not(.is-near) > .container { opacity: 1; transform: translateY(16px); }

  .phone-real { bottom: -28px; font-size: .52rem; }
  .marquee { padding: 18px 0; }

  /* Barra fija con la llamada principal, de lado a lado de la pantalla. */
  .cta-movil {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(58, 50, 43, .1);
    background: rgba(251, 248, 243, .98);
    box-shadow: 0 -10px 30px rgba(58, 50, 43, .12);
    transform: translateY(140%);
    transition: transform .45s var(--ease-out);
  }
  .cta-movil.is-visible { transform: none; }
  .cta-movil .btn { width: 100%; min-height: 52px; gap: 8px; font-size: .84rem; }
  .cta-desde { font-weight: 500; opacity: .8; font-size: .74rem; }

  /* WhatsApp: círculo flotante justo encima de la barra. */
  .wasap { display: grid; width: 48px; height: 48px; right: 14px; bottom: 88px; }
  .wasap svg { width: 22px; height: 22px; }

  /* Sitio para la barra: que no tape el pie ni el último botón. */
  footer { padding-bottom: 96px; }
}

@media (max-width: 380px) {
  .service-tab { padding: 11px 12px; font-size: .7rem; }
  .price { font-size: 2.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-movil { transition: none; }
}

/* ---------- Pestañas del método ---------- */
.pillar-tabs {
  position: relative;
  display: flex;
  gap: 4px;
  margin-bottom: 26px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
}
.pillar-tab {
  position: relative;
  z-index: 1;
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: transparent;
  color: #ded6cb;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: color .3s ease;
}
.pillar-tab span { margin-right: 8px; font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; opacity: .7; }
.pillar-tab[aria-selected="true"] { color: var(--oliva-700); }
.pillar-tab[aria-selected="true"] span { opacity: 1; }
/* La pastilla se desliza de una pestaña a otra. */
/* En estrecho, las pestañas se deslizan y la activa se pinta sola. */
@media (max-width: 899px) {
  .pillar-tabs { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .pillar-tabs::-webkit-scrollbar { display: none; }
  .pillar-tab { flex: 0 0 auto; scroll-snap-align: center; padding: 11px 15px; font-size: .8rem; }
  .pillar-tab[aria-selected="true"] { background: var(--arena-50); border-radius: 999px; }
  .pillar-tab-marca { display: none; }
}

.pillar-tab-marca {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  border-radius: 999px;
  background: var(--arena-50);
  transition: left .45s var(--ease-out), width .45s var(--ease-out);
}

/* Una tarjeta cada vez, en cualquier tamaño: la elige la pestaña. */
.pillars { min-height: 0; }
.pillar {
  display: none;
  min-height: 0;
  padding: clamp(22px, 4vw, 40px) clamp(20px, 4vw, 44px);
  animation: pilarIn .5s var(--ease-out);
}
.pillar.is-active { display: block; }
.pillar .pillar-code { display: none; }
.pillar h3 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .2em; color: var(--nude); }
.pillar strong { display: block; margin: 0 0 12px; font-size: clamp(1.45rem, 5.4vw, 2.5rem); line-height: 1.18; }
.pillar p { margin: 0; font-size: clamp(.86rem, 2.4vw, 1rem); line-height: 1.75; }
@keyframes pilarIn { from { opacity: 0; transform: translateY(14px); } }

/* Con sitio, el titular a la izquierda y la explicación al lado. */
@media (min-width: 900px) {
  .pillars { min-height: 230px; }
  .pillar.is-active {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: clamp(28px, 4vw, 60px);
    row-gap: 10px;
    min-height: 200px;
  }
  .pillar h3 { grid-column: 1; grid-row: 1; margin-bottom: 12px; }
  .pillar strong { grid-column: 1; grid-row: 2; margin: 0; }
  .pillar p { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* ---------- Móvil: menos coste de pintado ---------- */
@media (max-width: 640px) {
  .site-header { backdrop-filter: none; background: rgba(251, 248, 243, .97); }
  .portrait-note { backdrop-filter: none; background: rgba(255, 253, 249, .97); }
  .cta-movil { backdrop-filter: none; background: rgba(251, 248, 243, .98); }
  .modal-backdrop { backdrop-filter: none; background: rgba(38, 32, 27, .8); }
  .hero::before, .hero::after { filter: blur(46px); }
}

/* ---------- Más movimiento ---------- */
/* Los títulos de sección se descubren como el de la portada. */
.section h2 { overflow: hidden; padding-bottom: .14em; margin-bottom: calc(24px - .14em); }
.section h2 > span.linea { display: block; transform: translateY(102%); transition: transform .95s var(--ease-out); }
.section.is-near h2 > span.linea { transform: none; }

/* La tarjeta recomendada respira con un borde que se ilumina. */
.price-card.featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(130deg, var(--oliva-500), var(--nude), var(--terracota), var(--oliva-500));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: brilloBorde 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes brilloBorde { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* El botón sigue al cursor un poco: se nota al pasar por encima. */
@media (hover: hover) and (min-width: 981px) {
  .btn { will-change: transform; }
  .credential, .problem-card, .price-card { will-change: transform; }
}

/* Volver arriba, discreto, cuando ya has bajado bastante. */
.subir {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 44;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(58, 50, 43, .12);
  border-radius: 50%;
  background: rgba(251, 248, 243, .94);
  color: var(--tinta-600);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(58, 50, 43, .14);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), color .2s ease;
}
.subir.is-visible { opacity: 1; transform: none; }
.subir:hover { color: var(--oliva-700); }
@media (max-width: 640px) { .subir { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .section h2 > span.linea { transform: none; }
  .price-card.featured::before { animation: none; }
}

/* ---------- WhatsApp ---------- */
.wasap {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 44;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--terracota);
  color: var(--arena-50);
  box-shadow: 0 12px 28px rgba(192, 135, 99, .42);
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.wasap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--terracota);
  animation: latido 2.8s ease-out infinite;
}
@keyframes latido {
  0% { transform: scale(1); opacity: .7; }
  70%, 100% { transform: scale(1.55); opacity: 0; }
}
.wasap:hover { transform: translateY(-3px) scale(1.05); background: var(--oliva-700); box-shadow: 0 16px 34px rgba(86, 85, 54, .45); }
@media (prefers-reduced-motion: reduce) { .wasap::after { animation: none; } }

/* ---------- Telón de entrada ---------- */
/* Se quita solo con CSS: si el JavaScript fallara, la web no se queda tapada. */
.telon {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--arena-50);
  animation: telonFuera .75s var(--ease-out) .35s forwards;
}
.telon-marca {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3rem, 12vw, 6rem);
  letter-spacing: -.06em;
  color: var(--oliva-700);
  opacity: 0;
  animation: marcaEntra .55s var(--ease-out) forwards;
}
@keyframes marcaEntra { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes telonFuera {
  to { opacity: 0; visibility: hidden; transform: translateY(-2%); }
}
body.cargada .telon { display: none; }

/* ---------- Palabra a palabra ---------- */
.palabras .pal {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--w) * 32ms);
}
.palabras.is-in .pal { opacity: 1; transform: none; }

/* ---------- Brillo que sigue al cursor en las tarjetas ---------- */
@media (hover: hover) and (min-width: 981px) {
  .problem-card, .price-card, .credential, .fit-card {
    position: relative;
    overflow: hidden;
  }
  .problem-card::after, .price-card::after, .credential::after, .fit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(216, 185, 168, .28), transparent 62%);
  }
  .fit-card::after { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .12), transparent 62%); }
  .problem-card:hover::after, .price-card:hover::after, .credential:hover::after, .fit-card:hover::after { opacity: 1; }
}

/* ---------- Línea del proceso que se dibuja con el scroll ---------- */
.process { position: relative; }
.process-progreso {
  position: absolute;
  left: 23px;
  top: 46px;
  width: 1px;
  background: var(--oliva-500);
  transform-origin: top;
  transform: scaleY(var(--avance, 0));
  transition: transform .2s linear;
}
@media (min-width: 641px) { .process-progreso { display: none; } }


@media (prefers-reduced-motion: reduce) {
  .telon { display: none; }
  .palabras .pal { opacity: 1; transform: none; }
}

/* ---------- Dosier descargable ---------- */
.dossier {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 24px 28px;
  border: 1px solid rgba(58, 50, 43, .12);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, var(--white), var(--arena-200));
}
.dossier strong { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.dossier span { display: block; max-width: 520px; margin-top: 4px; color: var(--tinta-600); font-size: .84rem; }
.dossier .btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .dossier { padding: 20px; }
  .dossier .btn { width: 100%; }
}

.carrusel-pista { display: none; } /* los carruseles se cambiaron por rejillas y pestañas */
