/* ============================================================
   EL CLUB RICO & SANO — Landing de venta (informativa)
   Línea gráfica oficial: blanco / negro / verde aqua #4FBB84 /
   lavanda #EBCEFF / dorado #D6A047.  Tipografías: Now(→Poppins) + Livvic.
   ============================================================ */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, video { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens ---------- */
:root {
  --negro:       #171717;
  --negro-suave: #2A2A2A;
  --blanco:      #FFFFFF;
  --hueso:       #FBF7F1;   /* off-white cálido (secciones claras alt) */

  --verde:       #4FBB84;
  --verde-osc:   #2F8F5B;
  --verde-prof:  #1F6B43;

  --lavanda:     #EBCEFF;
  --lavanda-sf:  #F4E8FF;   /* lavanda muy suave */
  --lavanda-bd:  #DDBCF6;
  --lavanda-tx:  #6E3E9C;

  --dorado:      #D6A047;
  --dorado-osc:  #B07F2A;

  --texto:       #1F1F1F;
  --suave:       #6B6B6B;
  --borde:       #ECE5DA;

  --font-titulo: 'Poppins', 'Livvic', system-ui, sans-serif;
  --font-cuerpo: 'Livvic', 'Segoe UI', system-ui, sans-serif;

  --fs-hero: clamp(2rem, 5vw, 3.4rem);
  --fs-h2:   clamp(1.7rem, 4vw, 2.6rem);
  --fs-h3:   clamp(1.15rem, 2.3vw, 1.45rem);
  --fs-body: clamp(1rem, 1.6vw, 1.12rem);

  --max:    1240px;
  --radius: 999px;
  --radius-card: 16px;
  --shadow:    0 16px 40px rgba(30, 25, 15, 0.12);
  --shadow-sm: 0 8px 22px rgba(30, 25, 15, 0.08);
  --transition: .26s ease;
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-cuerpo);
  color: var(--texto);
  background: var(--blanco);
  font-size: var(--fs-body);
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--font-titulo); font-weight: 700; line-height: 1.12; color: var(--negro); letter-spacing: -.4px; }
strong { font-weight: 700; color: var(--verde-osc); }
.container { width: min(100% - 2.4rem, var(--max)); margin-inline: auto; }
.acento-verde { color: var(--verde-osc); }
.acento-coral { color: var(--dorado-osc); }
.acento-lavanda { color: var(--lavanda-tx); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(3.2rem, 7vw, 5.5rem) 0; position: relative; overflow: hidden; }
.seccion > .container { position: relative; z-index: 1; }
.hero__inner { position: relative; z-index: 1; }

/* ===== Decoraciones de fondo (doodles de cocina) ===== */
.deco { position: absolute; z-index: 0; pointer-events: none; opacity: .10; color: var(--verde); animation: deco-float 9s ease-in-out infinite; }
.deco svg { width: 100%; height: 100%; display: block; }
.deco--gold { color: var(--dorado); }
.deco--lav  { color: var(--lavanda-tx); }
.deco--slow { animation-duration: 13s; }
.seccion--negro .deco, .seccion--verde .deco, .seccion--tinta .deco { opacity: .18; }
@keyframes deco-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }
.seccion--blanco  { background: var(--blanco); }
.seccion--hueso   { background: var(--hueso); }
.seccion--lavanda { background: linear-gradient(180deg, var(--lavanda-sf), var(--lavanda)); }
.seccion--crema   { background: var(--hueso); }
.seccion--marfil2 { background: var(--hueso); }
.seccion--negro   { background: var(--negro); color: #f3f3f3; }
.seccion--negro h2, .seccion--negro h3 { color: #fff; }
/* compat (clases viejas) */
.seccion--verde, .seccion--tinta { background: var(--negro); color: #f3f3f3; }
.seccion--verde h2, .seccion--tinta h2, .seccion--verde h3, .seccion--tinta h3 { color: #fff; }

.seccion__titulo { font-size: var(--fs-h2); text-align: center; margin-bottom: 1rem; }
.seccion__titulo::after { content: ""; display: block; width: 54px; height: 4px; margin: .9rem auto 0; background: var(--verde); border-radius: 2px; }
.seccion__intro { text-align: center; max-width: 680px; margin: 0 auto 2.6rem; color: var(--suave); font-size: clamp(1.02rem, 1.8vw, 1.18rem); }
.seccion--negro .seccion__intro, .seccion--verde .seccion__intro, .seccion--tinta .seccion__intro { color: #cfcfcf; }

/* ============================================================
   HERO  (entra completo en viewport · imagen de Vicky)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 78% 30%, var(--lavanda-sf), transparent 70%),
    radial-gradient(46% 40% at 12% 80%, rgba(79,187,132,.16), transparent 70%),
    var(--blanco);
}
.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(1.2rem, 3vw, 2rem);
}
.hero__texto { text-align: left; min-width: 0; }
.hero__logo { width: 100%; max-width: 440px; height: auto; margin-bottom: 2.2rem; }
.hero__kicker {
  display: inline-block; font-family: var(--font-titulo); font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; font-size: .76rem;
  color: var(--lavanda-tx); background: var(--lavanda); padding: .4rem .9rem;
  border-radius: 999px; margin-bottom: 1.7rem;
}
.hero__eslogan {
  font-family: var(--font-titulo); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.2;
  color: var(--negro); max-width: 18ch; margin-bottom: 2.4rem;
}
.hero__media--mobile { display: none; }
.hero__media--desktop { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.hero__foto-marco {
  width: min(100%, 480px);
  aspect-ratio: 0.70;
  max-height: 88svh;
  border-radius: 26px;
  background: linear-gradient(165deg, var(--lavanda-sf) 0%, #ffffff 72%);
  border: 1px solid var(--lavanda-bd);
  box-shadow: 0 24px 55px rgba(110, 62, 156, .20);
  overflow: hidden;
  display: flex; align-items: flex-end; justify-content: center;
  padding-top: 8px;
}
.hero__foto-marco img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Botón informativo del precio (NO clickeable) */
.btn-precio {
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--verde); color: #fff;
  font-family: var(--font-titulo); font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.12rem);
  padding: 1rem 2rem; border-radius: var(--radius); border: none;
  box-shadow: 0 12px 26px rgba(79, 187, 132, .38); cursor: default; letter-spacing: .2px;
}
.btn-precio svg { width: 1.15em; height: 1.15em; color: #fff; flex-shrink: 0; }

/* ============================================================
   FRANJA DE DESTACADOS
   ============================================================ */
.destacados { background: var(--dorado); color: var(--negro); overflow: hidden; }
.destacados__marquee { display: flex; overflow: hidden; }
.destacados__track {
  display: flex; align-items: center; flex-wrap: nowrap; white-space: nowrap;
  gap: 1.6rem; padding: .95rem 0; width: max-content;
  animation: destacados-scroll 24s linear infinite;
}
.destacados:hover .destacados__track { animation-play-state: paused; }
.destacados__track span { font-family: var(--font-titulo); font-weight: 800; text-transform: uppercase; letter-spacing: 1.4px; font-size: clamp(.8rem, 1.6vw, .98rem); }
.destacados__track .sep { width: 7px; height: 7px; flex-shrink: 0; transform: rotate(45deg); background: var(--negro); opacity: .5; }
@keyframes destacados-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CARRUSEL DE VIDEOS (rail con scroll-snap + foco central)
   ============================================================ */
.vc { position: relative; max-width: 1180px; margin: 0 auto; }
.vc__rail {
  display: flex; align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 26px 0 14px;                 /* el padding lateral lo pone el JS para centrar 1ª y última */
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab;
}
.vc__rail::-webkit-scrollbar { display: none; }
.vc__rail.is-grabbing { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }

.vc__card {
  flex: 0 0 auto;
  width: clamp(230px, 24vw, 290px);
  scroll-snap-align: center;
  transform: scale(.86); opacity: .5;
  transition: transform .45s cubic-bezier(.22,.61,.36,1), opacity .45s ease;
  will-change: transform, opacity;
}
.vc__card.is-focus { transform: scale(1); opacity: 1; }
.vc__card .ts__video { border-radius: var(--radius-card); box-shadow: var(--shadow-sm); }
.vc__card.is-focus .ts__video { box-shadow: 0 26px 55px rgba(110, 62, 156, .22); }

/* Tarjeta de video (reusada por el rail) */
.ts__video { aspect-ratio: 9 / 16; background: linear-gradient(160deg, var(--lavanda), var(--lavanda-sf)); display: grid; place-items: center; color: var(--verde-osc); position: relative; overflow: hidden; }
.ts__video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.ts__play { position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; display: grid; place-items: center; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform var(--transition), background var(--transition); }
.ts__play:hover { transform: scale(1.08); background: #fff; }
.ts__video.is-playing .ts__play { display: none; }
.ts__play svg { width: 26px; height: 26px; margin-left: 3px; color: var(--verde-osc); }
.ts__pie { padding: .9rem .5rem 0; text-align: center; }
.ts__pie strong { display: block; color: var(--negro); font-family: var(--font-titulo); }
.ts__pie span { color: var(--suave); font-size: .9rem; }

/* Flechas */
.vc__nav { position: absolute; top: calc(50% - .4rem); z-index: 5; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--borde); background: var(--blanco); color: var(--verde-osc); cursor: pointer; box-shadow: var(--shadow); transition: var(--transition); transform: translateY(-50%); }
.vc__nav:hover { background: var(--verde); color: #fff; border-color: var(--verde); transform: translateY(-50%) scale(1.08); }
.vc__nav:disabled { opacity: 0; pointer-events: none; }
.vc__nav svg { width: 22px; height: 22px; }
.vc__nav--prev { left: -8px; }
.vc__nav--next { right: -8px; }

/* Dots */
.vc__dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.4rem; }
.vc__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lavanda-bd); border: none; cursor: pointer; padding: 0; transition: var(--transition); }
.vc__dot--active { background: var(--verde); transform: scale(1.35); }

/* ============================================================
   VIDEO
   ============================================================ */
.video-wrap { max-width: 1000px; margin: 0 auto; }
.video-box {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--lavanda), var(--lavanda-sf));
  display: grid; place-items: center;
}
.video-box video { width: 100%; height: 100%; object-fit: cover; }
.video-box__play { width: 84px; height: 84px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--verde-osc); }
.video-box__play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-box[data-empty]::after { content: "Video próximamente"; position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: var(--lavanda-tx); font-weight: 600; font-size: .9rem; }

/* ============================================================
   CÓMO FUNCIONA (modelo Netflix)
   ============================================================ */
.netflix__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem; margin-top: 1.4rem; }
.paso { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-card); padding: 2.7rem 1.9rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.paso:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.paso__num { width: 60px; height: 60px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--verde); color: #fff; font-family: var(--font-titulo); font-weight: 700; font-size: 1.5rem; }
.paso h3 { font-size: var(--fs-h3); margin-bottom: .6rem; }
.paso p { color: var(--suave); font-size: 1.05rem; }
.netflix__nota { margin-top: 2rem; background: var(--lavanda); border-left: 4px solid var(--verde); border-radius: var(--radius-card); padding: 1.2rem 1.5rem; max-width: 770px; margin-inline: auto; color: var(--negro); }
.netflix__nota strong { color: var(--lavanda-tx); }

/* ============================================================
   CARRUSEL COVERFLOW
   ============================================================ */
.cf { position: relative; user-select: none; padding: 1rem 0 .5rem; overflow: hidden; }
.cf__bg { position: absolute; inset: -10% -5%; background-size: cover; background-position: center; filter: blur(64px) saturate(1.3); opacity: .28; transform: scale(1.1); z-index: 0; pointer-events: none; transition: background-image .6s ease; }
.cf__stage { position: relative; z-index: 1; height: clamp(440px, 64vw, 660px); perspective: 1500px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: pan-y; }
.cf__stage:active { cursor: grabbing; }
.cf__card { position: absolute; inset: 0; margin: auto; width: clamp(280px, 58vw, 520px); aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #ddd; box-shadow: 0 24px 50px rgba(0,0,0,.28); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.22,.61,.36,1), opacity .55s ease, filter .55s ease; will-change: transform, opacity, filter; }
.cf__card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cf__card--active { outline: 3px solid var(--verde); outline-offset: 0; }
.cf__controls { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.cf__btn { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--borde); background: var(--blanco); color: var(--verde-osc); cursor: pointer; box-shadow: var(--shadow-sm); transition: var(--transition); }
.cf__btn:hover { background: var(--verde); color: #fff; transform: scale(1.08); border-color: var(--verde); }
.cf__btn:active { transform: scale(.95); }
.cf__btn svg { width: 22px; height: 22px; }
.cf__counter { font-family: var(--font-titulo); font-weight: 600; color: var(--suave); min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; }
.cf__dots { display: flex; gap: .5rem; justify-content: center; margin-top: 1.1rem; position: relative; z-index: 2; }
.cf__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lavanda-bd); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.cf__dot--active { background: var(--verde); transform: scale(1.35); }

/* ============================================================
   MÓDULOS (acordeón)
   ============================================================ */
.modulos { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; gap: .8rem; }
.modulo { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-card); overflow: hidden; transition: border-color var(--transition), box-shadow var(--transition); }
.modulo.is-open { border-color: var(--verde); box-shadow: var(--shadow-sm); }
.modulo__head { width: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.35rem 1.6rem; background: none; border: none; cursor: pointer; text-align: left; }
.modulo__head:hover { background: var(--lavanda-sf); }
.modulo__nom { flex: 1; font-family: var(--font-titulo); font-weight: 600; font-size: 1.05rem; color: var(--negro); }
.modulo__meta { display: none; }
.modulo__icon { flex-shrink: 0; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--lavanda); color: var(--lavanda-tx); transition: transform var(--transition), background var(--transition); }
.modulo.is-open .modulo__icon { background: var(--verde); color: #fff; transform: rotate(45deg); }
.modulo__icon svg { width: 16px; height: 16px; }
.modulo__body { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.modulo__body-inner { padding: 0 1.3rem 1.25rem; color: var(--suave); }
.modulo__body-inner p { margin-bottom: .6rem; }
.modulo__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.modulo__chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--hueso); border: 1px solid var(--borde); border-radius: 999px; padding: .35rem .8rem; font-size: .85rem; color: var(--texto); }
.modulo__chip b { color: var(--dorado-osc); font-weight: 700; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.testi { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.testi__video { aspect-ratio: 9 / 16; background: linear-gradient(160deg, var(--lavanda), var(--lavanda-sf)); display: grid; place-items: center; color: var(--verde-osc); position: relative; }
.testi__video[data-empty]::before { content: "Video próximamente"; position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--lavanda-tx); font-size: .85rem; }
.testi__play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.testi__play svg { width: 26px; height: 26px; margin-left: 3px; }
.testi__pie { padding: 1rem 1.2rem; }
.testi__pie strong { display: block; color: var(--negro); font-family: var(--font-titulo); }
.testi__pie span { color: var(--suave); font-size: .9rem; }

/* ============================================================
   VICKY
   ============================================================ */
.vicky { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(1.5rem, 4vw, 3.2rem); align-items: center; }
.vicky__marco { border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); border: 5px solid #fff; aspect-ratio: 3 / 2; }
.vicky__marco img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.vicky__texto h2 { text-align: left; margin-bottom: 1rem; }
.vicky__texto h2::after { margin-left: 0; }
.vicky__texto p { margin-bottom: 1rem; color: var(--texto); }
.vicky__firma { font-family: var(--font-titulo); font-weight: 600; color: var(--verde-osc); }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; }
.cta-final h2 { color: #fff; margin-bottom: 1rem; }
.cta-final p { color: #cfcfcf; max-width: 560px; margin: 0 auto 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--negro); color: #b5b5b5; padding: 2.5rem 0; text-align: center; }
.footer__logo { width: 200px; margin: 0 auto 1rem; opacity: .92; }
.footer p { font-size: .9rem; color: #8a8a8a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .hero { min-height: 100svh; }
  .hero__inner { grid-template-columns: 1fr; gap: 0; padding-block: 0 1.4rem; }
  .hero__texto { text-align: center; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
  .hero__logo { width: 100%; max-width: 230px; margin-top: -2.7rem; margin-bottom: 1.7rem; }
  .hero__eslogan { max-width: 26ch; }
  .video-box { aspect-ratio: 4 / 3; }
  /* Cómo funciona: 2 arriba + 1 abajo (menos largo) */
  .netflix__cards { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .netflix__cards .paso:last-child { grid-column: 1 / -1; }
  .paso { padding: 1.4rem 1rem; }
  .paso h3 { font-size: 1.08rem; }
  .paso p { font-size: .92rem; }
  .hero__kicker { white-space: normal; max-width: 100%; font-size: .66rem; letter-spacing: 1.4px; }
  .btn-precio { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; max-width: 100%; font-size: .95rem; padding: .9rem 1.3rem; }
  /* En mobile: imagen horizontal grande ARRIBA, luego el texto */
  .hero__media--desktop { display: none; }
  /* imagen a todo el ancho (full-bleed) + difuminado inferior */
  .hero__media--mobile { display: block; width: 100vw; margin-left: calc(50% - 50vw); margin-bottom: .2rem; }
  .hero__media--mobile img {
    width: 100%; height: clamp(280px, 46svh, 440px);
    object-fit: cover; object-position: center 35%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  }
  .vicky { grid-template-columns: 1fr; text-align: center; }
  .vicky__marco { max-width: 460px; margin: 0 auto; }
  .vicky__texto h2 { text-align: center; }
  .vicky__texto h2::after { margin-left: auto; }

  /* Carrusel de videos: tarjetas más chicas y se desliza con el dedo (sin flechas) */
  .vc__card { width: 64vw; max-width: 300px; }
  .vc__nav { display: none; }
  .vc__rail { padding-top: 18px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cf__card, .modulo__body { transition: none; }
  html { scroll-behavior: auto; }
}
