/* ============================================================
   HIJAS DEL REY — hoja de estilos
   Paleta crema (#FBF3F0) + rosa (#F1B4B6). Montserrat.
   Mobile-first. Foto flotante + fade por scroll.
   ============================================================ */

:root {
  --cream:      #FBF3F0;   /* fondo de todo el sitio */
  --card:       #ffffff;   /* tarjetas */
  --card-2:     #FDF7F5;

  --pink:       #F1B4B6;   /* botones y resaltados */
  --pink-soft:  #F8D6D7;
  --pink-deep:  #C77A7D;   /* acentos de texto legibles sobre crema */

  --ink:        #2A2320;   /* texto principal */
  --ink-dim:    #7A6B64;   /* texto secundario */

  --maxw: 640px;
  --pad: clamp(1.25rem, 6vw, 2.5rem);
  --radius: 20px;
  --shadow: 0 20px 44px -26px rgba(42, 35, 32, .28);
  --ease-out: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  font-weight: 600;                /* Montserrat semibold/bold en todo el sitio */
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Resaltados: efecto marcador rosa (#F1B4B6) legible sobre crema */
.hl {
  color: var(--pink-deep);     /* rosa más fuerte, solo el texto */
  font-style: normal;
}


/* Sub-animaciones al entrar en pantalla; el contenido es visible por defecto */
.reveal { opacity: 1; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1.05rem 2.2rem;
  border: none;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  background: var(--pink);
  box-shadow: 0 12px 28px -10px rgba(241,180,182,.9);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background .3s;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%);
  transform: translateX(-120%);
}
.btn:hover {
  transform: translateY(-3px);
  background: #EBA6A9;
  box-shadow: 0 18px 40px -12px rgba(241,180,182,1);
}
.btn:hover::after { animation: sheen 1.1s var(--ease-out) forwards; }
.btn:active { transform: translateY(-1px) scale(.99); }
@keyframes sheen { to { transform: translateX(120%); } }
.btn--lg { padding: 1.2rem 2.8rem; font-size: 1.15rem; }
.btn--primary { animation: pulseGlow 3.2s ease-in-out infinite; }
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 12px 28px -10px rgba(241,180,182,.85); }
  50%     { box-shadow: 0 16px 40px -8px rgba(241,180,182,1); }
}

/* ---------- Layout general ---------- */
section, .hero {
  padding-inline: var(--pad);
  padding-block: clamp(4rem, 12vw, 7rem);
  max-width: var(--maxw);
  margin-inline: auto;
  position: relative;
}

.eyebrow {
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 1rem;
}
.section-heading {
  font-weight: 800;
  font-size: clamp(1.9rem, 8vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: balance;
  margin-bottom: 2.2rem;
}

/* ============================ 1 · HERO ============================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: clamp(3rem, 10vw, 5rem);
  gap: 1.2rem;
}
.hero-logo {
  width: min(13vw, 48px);
  margin: 0 auto .2rem;
}
.hero-logo img { width: 100%; display: block; }

/* Foto flotante sobre el título, con sombra que cae sobre el texto */
.hero-portrait {
  width: min(42vw, 168px);
  margin: .4rem auto -1.2rem;      /* apenas solapando sobre el título, sin tapar las letras */
  position: relative;
  z-index: 3;
  animation: floaty 8s ease-in-out infinite;
}
.hero-portrait img {
  width: 100%;
  display: block;
  filter: none;                       /* la sombra se aplica al decodificar (evita sombra cuadrada) */
}
.hero-portrait.is-loaded img {
  filter: drop-shadow(0 30px 26px rgba(42, 35, 32, .30));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.hero-title {
  position: relative;
  z-index: 1;
  font-weight: 800;
  font-size: clamp(1.5rem, 7vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 16ch;
}
.hero-sub {
  font-weight: 600;
  font-size: clamp(.9rem, 3.8vw, 1.08rem);
  color: var(--ink-dim);
  max-width: 32ch;
  text-wrap: balance;
}

.video-frame { width: 100%; max-width: 560px; margin-block: .6rem; }

/* -------- Reproductor VSL (solo play + barra estratégica) -------- */
.vsl {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--pink-soft), var(--card-2));
  box-shadow: var(--shadow);
  cursor: pointer;
}
.vsl-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
/* Botón de play centrado */
.vsl-play {
  position: absolute; inset: 0;
  margin: auto;
  width: 74px; height: 74px;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 12px 30px -6px rgba(241,180,182,1);
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  transition: opacity .35s var(--ease-out), transform .25s var(--ease-out);
  animation: pulseGlow 3s ease-in-out infinite;
}
.vsl-play::after {
  content: "";
  border-left: 22px solid var(--ink);
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  margin-left: 6px;
}
.vsl-play:hover { transform: scale(1.06); }
.vsl.is-playing .vsl-play { opacity: 0; pointer-events: none; animation: none; }
/* Etiqueta mientras no hay video cargado */
.vsl-hint {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-weight: 800; font-size: .8rem;
  color: var(--ink);
  z-index: 3;
  pointer-events: none;
}
.vsl.is-ready .vsl-hint,
.vsl.is-playing .vsl-hint { display: none; }
/* Barra de progreso estratégica */
.vsl-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 5px;
  background: rgba(42, 35, 32, .18);
  z-index: 4;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
}
.vsl.is-playing .vsl-bar { opacity: 1; }
.vsl-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--pink);
  border-radius: 0 3px 3px 0;
}

/* ============================ 2 · PROBLEMA ============================ */
.problem { text-align: center; }
.community-img {
  width: min(92%, 470px);
  margin: .4rem auto 0;            /* más pegada al texto de arriba */
  animation: floaty 7s ease-in-out infinite;
}
.community-img img {
  width: 100%;
  display: block;
  filter: none;
}
.community-img.is-loaded img {
  filter: drop-shadow(0 26px 34px rgba(42, 35, 32, .3));
}
.problem-text {
  font-weight: 700;
  font-size: clamp(1.3rem, 6vw, 1.9rem);
  line-height: 1.35;
  text-wrap: balance;
  color: var(--ink);
}
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 28ms);
}
.problem-text.is-in .split-word { opacity: 1; transform: none; }

/* ============================ 3 · CAMINO DE NIVELES ============================ */
.path { max-width: 640px; }
.path-intro { text-align: center; margin-bottom: 3rem; }
.path-heading {
  font-weight: 800;
  font-size: clamp(1.7rem, 7.5vw, 2.5rem);
  line-height: 1.14;
  text-wrap: balance;
  margin-bottom: .9rem;
}
.path-note { color: var(--ink-dim); font-size: 1rem; }

.levels { list-style: none; position: relative; padding: 0; counter-reset: lvl; }

.level {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1.6rem;
  counter-increment: lvl;
  opacity: .3;                                 /* BLOQUEADO: apagado */
  transition: opacity .5s var(--ease-out);
}
.level.is-in, .level--done { opacity: 1; }     /* DESBLOQUEADO: encendido */
.level:last-child { margin-bottom: 0; }

/* Línea que conecta hacia el siguiente número, con gaps (no toca los círculos) */
.level:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 27px; top: 64px; bottom: -18px;
  width: 3px;
  border-radius: 3px;
  background: var(--pink-soft);
  transition: background .5s var(--ease-out);
}
.level.is-in:not(:last-child)::after,
.level--done:not(:last-child)::after { background: var(--pink); }

/* -------- Círculo: rosa pastel sólido, sin sombras -------- */
.level-node {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink);
  color: var(--ink);
  z-index: 2;
}
.level.is-in .level-node { animation: nodePop .6s var(--ease-out) both; }
@keyframes nodePop { 0%{transform:scale(.7)} 55%{transform:scale(1.08)} 100%{transform:scale(1)} }

/* -------- Iconos: candado (bloqueado) → número (desbloqueado) -------- */
.ic { position: relative; grid-area: 1 / 1; place-self: center; color: currentColor; }

/* Candado cerrado (BLOQUEADO) */
.ic-lock { width: 17px; height: 13px; background: currentColor; border-radius: 3px; margin-top: 6px; }
.ic-lock::before {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  width: 11px; height: 9px;
  border: 3px solid currentColor;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  transform: translateX(-50%);
}

/* Número del nivel (DESBLOQUEADO) — grande */
.ic-num {
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  opacity: 0;
  transform: scale(.4);
}
.ic-num::before { content: counter(lvl); }

/* Transición limpia candado → número */
.level.is-in .ic-lock { opacity: 0; transform: scale(.5); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.level.is-in .ic-num { opacity: 1; transform: scale(1); transition: opacity .5s var(--ease-out) .22s, transform .5s var(--ease-out) .22s; }

/* Nivel 1 ya completado: número desde el inicio, sin candado */
.level--done .ic-lock { display: none; }
.level--done .ic-num { opacity: 1; transform: scale(1); }

/* -------- Tarjeta -------- */
.level-card {
  position: relative;
  padding: .25rem 0;
}

/* -------- Estado (a la DERECHA) -------- */
.level-status {
  position: absolute;
  top: .1rem; right: 0;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28em .7em;
  border-radius: 999px;
  color: #9b8b84;
  background: #EFE7E3;
  transition: color .4s, background .4s;
}
.level-status::before { content: "Bloqueado"; }
.level.is-in .level-status { color: var(--pink-deep); background: var(--pink-soft); }
.level.is-in .level-status::before { content: "Desbloqueado"; }
.level.level--done .level-status { color: var(--ink); background: var(--pink); }
.level.level--done .level-status::before { content: "Completado"; }

.level-num {
  display: block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--pink-deep);
  margin-bottom: .2rem;
  padding-right: 6.5rem;
}
.level-title { font-weight: 800; font-size: 1.22rem; line-height: 1.15; margin-bottom: .35rem; }
.level-desc { font-weight: 600; font-size: .96rem; color: var(--ink-dim); }

/* Botón debajo de los niveles */
.path-cta { text-align: center; margin-top: 2.8rem; }

/* ============================ 4 · INCLUYE ============================ */
.includes { text-align: center; }
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.card {
  background: var(--card);
  border: 1px solid rgba(42,35,32,.08);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  transition: transform .4s var(--ease-out), border-color .4s, box-shadow .4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(241,180,182,.7);
  box-shadow: 0 26px 50px -28px rgba(199,122,125,.55);
}
.card-ico {
  display: block;
  width: min(300px, 100%);
  height: auto;
  object-fit: contain;
  margin: 0 auto .7rem;
}
.card h3 { font-weight: 800; font-size: 1.2rem; margin-bottom: .4rem; }
.card p { font-weight: 600; color: var(--ink-dim); font-size: .98rem; }
/* ============================ 5 · PRUEBA ============================ */
.proof { text-align: center; }
.proof-quote {
  font-weight: 700;
  font-size: clamp(1.25rem, 5.4vw, 1.7rem);
  line-height: 1.4;
  text-wrap: balance;
  position: relative;
  padding-top: 1.5rem;
}
.proof-quote::before {
  content: "\201C";
  font-size: 4rem;
  color: var(--pink);
  position: absolute;
  top: -.5rem; left: 50%;
  transform: translateX(-50%);
  line-height: 1;
}
.proof-quote cite {
  display: block;
  margin-top: 1.2rem;
  font-size: .95rem;
  font-style: normal;
  font-weight: 800;
  color: var(--pink-deep);
}
.testimonials { margin-top: 2.5rem; }
.testimonial {
  background: var(--card);
  border: 1px dashed rgba(241,180,182,.8);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.testimonial p { font-weight: 600; color: var(--ink-dim); }
.testimonial-name { display: block; margin-top: .6rem; font-weight: 800; color: var(--pink-deep); font-size: .9rem; }

/* ============================ 6 · PRECIO ============================ */
.price { text-align: center; }
.price-card {
  background: var(--card);
  border: 1px solid rgba(241,180,182,.7);
  border-radius: 28px;
  padding: clamp(2rem, 8vw, 3rem) 1.6rem;
  box-shadow: 0 40px 80px -40px rgba(199,122,125,.5);
  position: relative;
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(70% 50% at 50% 0%, rgba(241,180,182,.28), transparent 70%);
  pointer-events: none;
}
.price-heading { position: relative; font-weight: 800; font-size: clamp(1.6rem, 7vw, 2.2rem); margin: .3rem 0 1rem; }
.price-photo {
  position: relative;
  width: min(230px, 66%);
  margin: 0 auto 1.4rem;
}
.price-photo img {
  width: 100%;
  display: block;
  border-radius: 26px;
  box-shadow: 0 22px 44px -22px rgba(199, 122, 125, .55);
}
.price-amount {
  position: relative;
  font-weight: 800;
  font-size: clamp(3rem, 16vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .1rem;
}
.price-currency { font-size: .5em; color: var(--pink-deep); }
.price-per { font-size: .3em; font-weight: 700; color: var(--ink-dim); margin-left: .2rem; }
.price-benefits {
  position: relative;
  list-style: none;
  text-align: left;
  max-width: 300px;
  margin: 1.4rem auto;
  display: grid;
  gap: .65rem;
}
.price-benefits li {
  position: relative;
  padding-left: 2rem;
  font-weight: 700;
  color: var(--ink);
  font-size: .98rem;
}
.price-benefits li::before {           /* círculo rosa */
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 21px; height: 21px;
  margin-top: -10.5px;
  border-radius: 50%;
  background: var(--pink);
}
.price-benefits li::after {            /* tilde */
  content: "";
  position: absolute;
  left: 7.5px; top: 50%;
  width: 5px; height: 9px;
  margin-top: -6px;
  border: solid var(--ink);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.price-cancel { position: relative; color: var(--pink-deep); font-weight: 700; margin-bottom: 1.6rem; }
.price-instant { position: relative; margin-top: 1rem; font-size: .9rem; color: var(--ink-dim); }

/* ============================ 7 · FAQ ============================ */
.faq { text-align: center; }
.faq-list { text-align: left; margin-top: 1.5rem; display: grid; gap: .8rem; }
.faq-item {
  background: var(--card);
  border: 1px solid rgba(42,35,32,.08);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color .3s;
}
.faq-item[open] { border-color: rgba(241,180,182,.8); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 1.3rem;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 11px; height: 11px;
  border-right: 2.5px solid var(--pink-deep);
  border-bottom: 2.5px solid var(--pink-deep);
  transform: rotate(45deg);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-body {
  padding: 0 1.3rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease-soft), padding .4s var(--ease-soft);
}
.faq-item[open] .faq-body { max-height: 420px; padding: 0 1.3rem 1.2rem; }
.faq-body p { font-weight: 600; color: var(--ink-dim); }

/* ============================ 8 · CIERRE ============================ */
.closing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: clamp(5rem, 16vw, 8rem);
}
.closing-title {
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: 1.08;
  text-wrap: balance;
  max-width: 16ch;
}
.closing-glory { font-weight: 800; font-size: 1.4rem; color: var(--pink-deep); margin-top: 1rem; }
.closing-brand { font-weight: 700; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Desktop / tablets ---------- */
@media (min-width: 720px) {
  :root { --maxw: 780px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: clamp(2rem, 3.6vw, 2.7rem); }
  .hero-portrait { width: min(24vw, 180px); }
}

/* Sólo apagamos efectos intrusivos con reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .btn--primary, .video-play, .hero-portrait, .community-img { animation: none; }
}
