/* ============================================================
   MASTERCLASS DE COSTURA — Landing de captación (Fabi Marquesini · jueves 12/11/2026)

   SECCIONES: las de las landings de captación de la casa (Pamela sept., Rico y Sano, BUT26):
   hero · cinta · video · lo que vas a aprender · historia · testimonios · contador · pie.
   COMPONENTES: propios, no los de Adriana (etiqueta de prenda, cinta métrica, ficha técnica,
   fila de videos). SOBRIA (pedido del 26/10: "muy colorida, exceso de recuadros detrás de
   textos"): fondos lino claros alternados, el color del logo va solo de acento —el paño rosa del
   hero, la cinta naranja, los botones y las palabras destacadas— y nada de cajas detrás del texto.

   Colores DEL LOGO, medidos sobre _originales/LOGO-MASTERCLASS-original.png:
   rosa de "Master" #C33152 · naranja de "class" #CC5420 · chocolate de "Costura" #52200A ·
   lino de la cinta #F2E2D0.
   ============================================================ */

:root {
  --rosa: #C33152;           /* "Master" */
  --naranja: #CC5420;        /* "class" */
  --choco: #52200A;          /* "Costura" */
  --lino: #F2E2D0;           /* la cinta del logo */
  --lino-claro: #FBF5EE;     /* fondo de página */
  --blanco: #FFFFFF;

  --ink: #52200A;
  --ink-soft: rgba(82, 32, 10, 0.75);
  --line: rgba(82, 32, 10, 0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1140px;
  --radius: 22px;
  --sombra: 0 18px 40px -24px rgba(82, 32, 10, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
/* overflow-x: clip en html y body (27/10): en iPhone, "hidden" en el body no frena el arrastre lateral
   cuando algo se sale del ancho (las cartas del abanico) y toda la landing se movía al deslizar. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
body { font-family: var(--font-body); color: var(--ink); background: var(--lino-claro); line-height: 1.6; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Utilidades ---------- */
.container { width: min(92%, var(--maxw)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--blanco); }
.center { text-align: center; }
.eyebrow { display: inline-block; margin-bottom: 0.7rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--naranja); }
.title { font-family: var(--font-display); font-weight: 700; line-height: 1.12; font-size: clamp(1.9rem, 4.2vw, 2.9rem); color: var(--choco); text-wrap: balance; max-width: 22ch; margin-inline: auto; }
.title em { font-style: italic; color: var(--rosa); }
.lead { color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.12rem); max-width: 54ch; margin: 0.9rem auto 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.02rem; padding: 1rem 2.2rem; border-radius: 100px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
/* El CTA es lo único "fuerte" de la página (pedido del 27/10: "un poco más llamativo"): naranja del
   logo en degradé, letra grande, flecha dibujada en CSS, un brillo que lo cruza y un latido suave.
   Con "reducir movimiento" queda quieto (regla global de abajo). */
.btn-cta {
  position: relative; overflow: hidden; gap: 0.7rem;
  background: linear-gradient(135deg, #E2672B 0%, var(--naranja) 55%, #B4441A 100%); color: #fff;
  font-weight: 800; font-size: 1.12rem; letter-spacing: 0.01em;
  box-shadow: 0 16px 30px -12px rgba(204, 84, 32, 0.85), inset 0 -3px 0 rgba(82, 32, 10, 0.25);
  animation: latido 2.8s ease-in-out infinite;
}
.btn-cta::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 240, 225, 0.55), transparent);
  transform: skewX(-20deg); animation: brillo 3.4s ease-in-out infinite;
}
.btn-cta::after {
  content: ""; width: 0.55em; height: 0.55em; border-right: 3px solid currentColor; border-top: 3px solid currentColor;
  transform: rotate(45deg); transition: transform 0.2s var(--ease);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -12px rgba(204, 84, 32, 0.95), inset 0 -3px 0 rgba(82, 32, 10, 0.25); animation: none; }
.btn-cta:hover::after { transform: translateX(4px) rotate(45deg); }
.btn-cta:disabled { cursor: default; transform: none; animation: none; }
.btn-cta:disabled::after { display: none; }
@keyframes latido { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.035); } 90% { transform: scale(0.99); } }
@keyframes brillo { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.btn-lg { padding: 1.1rem 2.6rem; font-size: 1.08rem; }
.btn:focus-visible, .hero-form input:focus-visible, .testi-play:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; }

/* ---------- Placeholder de imagen (lo inserta phFail) ---------- */
.img-placeholder {
  width: 100%; height: 100%; min-height: 220px;
  background: repeating-linear-gradient(45deg, rgba(82,32,10,0.04) 0 14px, rgba(82,32,10,0.08) 14px 28px), var(--lino);
  display: grid; place-content: center; text-align: center; gap: 0.3rem;
  color: var(--choco); font-size: 0.95rem; padding: 1.5rem;
}
.img-placeholder span { font-size: 0.78rem; opacity: 0.7; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--lino); padding: clamp(2rem, 5vw, 4rem) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy { order: 1; }
.hero-visual { order: 2; position: relative; min-height: 540px; display: grid; place-items: center; }

.event-logo { line-height: 0; }
.event-logo img { width: 100%; max-width: 520px; height: auto; margin-left: -6px; }
.hero-sub { margin-top: 1.1rem; font-size: 1.22rem; line-height: 1.5; color: var(--ink-soft); max-width: 42ch; }
.hero-sub strong { color: var(--choco); }
.hero-sub em { font-style: normal; color: var(--rosa); font-weight: 600; }
.fecha { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem; color: var(--ink-soft); }
.fecha svg { color: var(--naranja); flex-shrink: 0; }
.fecha strong { color: var(--choco); }

.hero-form { margin-top: 1.4rem; max-width: 450px; display: grid; gap: 0.6rem; }
.hero-form input {
  width: 100%; padding: 1rem 1.3rem; border-radius: 100px; border: 1.5px solid var(--line); background: #fff;
  font: 500 1rem var(--font-body); color: var(--choco); outline: none; transition: border-color 0.2s;
}
.hero-form input::placeholder { color: rgba(82,32,10,0.45); }
.hero-form input:focus { border-color: var(--rosa); }
.hero-form .form-submit { margin-top: 0.2rem; width: 100%; padding: 1.1rem 1.5rem; font-size: 1.06rem; }
.form-msg { font-size: 0.9rem; font-weight: 600; min-height: 1.2em; padding-left: 0.4rem; }
.form-msg.ok { color: #2E7D32; }
.form-msg:empty { display: none; }
.form-msg.err { color: #B3122E; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 0.5rem 1.2rem; margin-top: 0.9rem; }
.hero-trust li { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust svg { color: var(--rosa); }

/* La foto: etiqueta de prenda colgada de un hilo, sobre un paño rosa redondeado */
.pano { position: absolute; inset: 8% -40% 8% 14%; background: var(--rosa); border-radius: 260px 0 0 260px; }
.hangtag {
  position: relative; z-index: 1; width: min(340px, 82%); padding: 48px 14px 14px; background: var(--lino-claro);
  border-radius: 26px; box-shadow: 0 24px 40px -18px rgba(40, 10, 0, 0.45); transform: rotate(3deg); transform-origin: 50% 0;
}
.hangtag-ojal { position: absolute; top: 18px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--lino); box-shadow: inset 0 1px 3px rgba(82,32,10,0.35); }
.hangtag-hilo { position: absolute; bottom: calc(100% - 26px); left: 50%; width: 2px; height: 80px; background: var(--choco); transform: rotate(-3deg); transform-origin: bottom; }
.hangtag img, .hangtag .img-placeholder { width: 100%; aspect-ratio: 4/5; height: auto; object-fit: cover; object-position: center 25%; border-radius: 16px; }

/* ============================================================
   CINTA MÉTRICA
   ============================================================ */
.cinta { background: var(--naranja); }
.cinta-regla {
  height: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.7) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.45) 0 1px, transparent 1px 12px);
  background-size: 100% 12px, 100% 6px; background-repeat: repeat-x;
}
.cinta-datos { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; padding: 0.6rem 0 0.8rem; }
.cinta-datos li { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.02rem, 2vw, 1.3rem); color: #fff; }

/* ============================================================
   VIDEO
   ============================================================ */
.video-frame {
  position: relative; max-width: 800px; margin: 2.4rem auto 2rem; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); background: var(--lino);
}
.video-frame .video-el, .video-frame .video-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; min-height: 0; }
/* El video de la landing es vertical (9:16): marco angosto, centrado. */
.video-frame.video-vertical { aspect-ratio: 9/16; max-width: 340px; background: var(--choco); }

/* ============================================================
   LO QUE VAS A APRENDER — ficha técnica + blusa sorpresa
   ============================================================ */
.ficha {
  margin-top: 2.6rem; display: grid; grid-template-columns: 0.8fr 1.2fr; background: var(--blanco);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra);
}
.ficha-foto { position: relative; min-height: 380px; background: var(--lino); }
.ficha-foto img, .ficha-foto .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ficha-foto img { object-position: center 12%; }   /* la cara de Fabi siempre adentro del recorte */
.ficha-cuerpo { padding: clamp(1.6rem, 3.5vw, 2.6rem); }
.ficha-num { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--naranja); }
.ficha h3, .sorpresa h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.15; margin: 0.3rem 0 0.5rem; color: var(--choco); }
.ficha-intro { color: var(--ink-soft); }
.ficha-tabla { margin-top: 1.3rem; }
.ficha-tabla > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: 0.7rem 0; border-top: 1.5px dashed var(--line); }
.ficha-tabla dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rosa); padding-top: 0.15rem; }
.ficha-tabla dd { color: var(--ink); }

.sorpresa { margin: 1.4rem auto 0; max-width: 760px; text-align: center; padding: clamp(1.8rem, 4vw, 2.6rem) 1.2rem; border: 2px dashed rgba(195, 49, 82, 0.4); border-radius: var(--radius); }
.sorpresa p:last-child { color: var(--ink-soft); max-width: 52ch; margin-inline: auto; }
.sorpresa strong { color: var(--rosa); }

/* ============================================================
   HISTORIA
   ============================================================ */
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.6rem; }
.story-photo { max-width: 400px; margin: 0 auto; }
.story-photo img, .story-photo .img-placeholder { width: 100%; height: auto; border-radius: 50%; box-shadow: var(--sombra); }
.story-text p { color: var(--ink-soft); font-size: 1.08rem; max-width: 54ch; }
.story-text p + p { margin-top: 1rem; }
.story-text strong { color: var(--choco); }
.story-text .story-firma { margin-top: 1.2rem; font-family: var(--font-display); font-style: italic; font-weight: 700; font-size: 1.5rem; color: var(--rosa); }
.cifras { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.4rem; margin-top: 2rem; padding-top: 1.6rem; border-top: 1.5px dashed var(--line); }
.cifras strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.05; color: var(--rosa); font-variant-numeric: lining-nums; }
.cifras span { font-size: 0.9rem; color: var(--ink-soft); }

/* ============================================================
   TESTIMONIOS — fila de videos
   ============================================================ */
/* Abanico: la carta del frente al centro; las de atrás corridas, giradas, más chicas y apagadas.
   Las posiciones las pone script.js con --x, --rot, --s, --o y z-index según la distancia al frente. */
/* El carrusel recorta lo que sobresale y se queda con los gestos horizontales (pan-y = el dedo
   hacia arriba/abajo sigue moviendo la página; hacia los costados lo maneja el carrusel). */
.abanico { position: relative; margin-top: 2.6rem; padding: 1.2rem 0 0.5rem; overflow-x: hidden; overflow-x: clip; touch-action: pan-y; }
.abanico-escena { position: relative; height: clamp(440px, 62vw, 600px); max-width: 760px; margin: 0 auto; }
.abanico-carta {
  position: absolute; left: 50%; top: 0; width: clamp(230px, 30vw, 320px); aspect-ratio: 9/16;
  transform: translateX(calc(-50% + var(--x, 0px))) rotate(var(--rot, 0deg)) scale(var(--s, 1));
  transform-origin: 50% 110%; opacity: var(--o, 1);
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
.abanico-carta:not(.frente) { cursor: pointer; filter: saturate(0.7) brightness(0.82); }
.abanico-carta:not(.frente) .testi-play { pointer-events: none; }
.abanico-carta:not(.frente) .testi-play::after { opacity: 0; }
.testi-play, .abanico-carta video {
  position: relative; display: block; width: 100%; height: 100%; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 40px -18px rgba(40, 10, 0, 0.5); background: var(--choco);
}
.abanico-carta.frente .testi-play, .abanico-carta.frente video { box-shadow: 0 30px 50px -20px rgba(40, 10, 0, 0.6), 0 0 0 3px var(--naranja); }
.testi-play img { width: 100%; height: 100%; object-fit: cover; }
.testi-play::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border-radius: 50%;
  background: var(--naranja) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") 56% 50% / 30px no-repeat;
  box-shadow: 0 0 0 8px rgba(204, 84, 32, 0.25), 0 10px 22px -6px rgba(0,0,0,0.5); transition: transform 0.2s, opacity 0.3s;
  animation: llamar 2.6s ease-in-out infinite;
}
.testi-play:hover::after { transform: scale(1.08); }
@keyframes llamar { 0%, 100% { box-shadow: 0 0 0 8px rgba(204, 84, 32, 0.25), 0 10px 22px -6px rgba(0,0,0,0.5); } 50% { box-shadow: 0 0 0 16px rgba(204, 84, 32, 0.08), 0 10px 22px -6px rgba(0,0,0,0.5); } }
.abanico-flecha {
  position: absolute; top: 42%; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; z-index: 20;
  background: #fff; color: var(--choco); box-shadow: var(--sombra); transition: background 0.2s, color 0.2s, transform 0.2s;
}
.abanico-flecha:hover { background: var(--naranja); color: #fff; transform: scale(1.06); }
.abanico-flecha.prev { left: max(0px, calc(50% - 380px)); }
.abanico-flecha.next { right: max(0px, calc(50% - 380px)); }
.abanico-puntos { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.4rem; }
.abanico-puntos button { width: 10px; height: 10px; border-radius: 100px; background: rgba(82, 32, 10, 0.2); transition: width 0.3s, background 0.3s; }
.abanico-puntos button.on { width: 30px; background: var(--naranja); }
.abanico-contador { text-align: center; margin-top: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }

/* ============================================================
   CONTADOR / CIERRE
   ============================================================ */
.cierre { background: var(--lino); }
.cierre .title { max-width: 24ch; }
.countdown { display: flex; justify-content: center; gap: clamp(0.8rem, 3vw, 2rem); margin: 1.2rem 0 2.2rem; }
.count-box { display: grid; justify-items: center; min-width: 70px; }
.count-box .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; color: var(--choco); font-variant-numeric: lining-nums tabular-nums; }
.count-box .label { margin-top: 0.35rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--naranja); }
.count-box + .count-box { padding-left: clamp(0.8rem, 3vw, 2rem); border-left: 1.5px dashed var(--line); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 2.6rem 0 2rem; text-align: center; background: var(--choco); color: rgba(242,226,208,0.75); }
.footer-logo { max-width: 180px; margin: 0 auto 1rem; padding: 12px 18px; border-radius: 22px; background: var(--lino-claro); }
.footer .copyright { font-size: 0.8rem; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSIVE — en el celular la imagen va SIEMPRE primero, arriba de todo
   ============================================================ */
@media (max-width: 940px) {
  .hero { padding: 0 0 2.6rem; }
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  /* La imagen a todo el ancho, sin recuadro ni texto encima (como Pamela, Rico y Sano y BUT26),
     con el borde de abajo disuelto en el fondo. La etiqueta de prenda es solo de escritorio. */
  .hero-visual { order: -1; min-height: 0; display: block; width: 108.7%; margin: 0 -4.35%; }
  .pano, .hangtag-hilo, .hangtag-ojal { display: none; }
  .hangtag { width: 100%; padding: 0; background: none; border-radius: 0; box-shadow: none; transform: none; }
  .hangtag img, .hangtag .img-placeholder {
    aspect-ratio: auto; max-height: 52dvh; object-position: center top; border-radius: 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 66%, transparent);
    mask-image: linear-gradient(to bottom, #000 66%, transparent);
  }
  /* El logo se monta sobre el degradé de la foto, y todo lo de abajo sube con él (pedido del 26/10). */
  .hero-copy { margin-top: -6.5rem; position: relative; z-index: 2; text-align: center; }
  /* Sobre la foto del vestido terracota el logo necesita borde: contorno oscuro fino + sombra suave
     (pedido del 27/10). Solo acá: en escritorio el logo va sobre lino liso. */
  .event-logo img {
    max-width: min(86%, 360px); margin: 0 auto;
    filter: drop-shadow(0 0 0.6px rgba(35, 10, 0, 0.9)) drop-shadow(0 0 0.6px rgba(35, 10, 0, 0.9)) drop-shadow(0 2px 6px rgba(35, 10, 0, 0.35));
  }
  .hero-sub { margin: 0.35rem auto 0; font-size: 1.02rem; line-height: 1.4; }
  .fecha { justify-content: center; font-size: 0.92rem; margin-top: 0.8rem; }
  .hero-form { margin: 0.7rem auto 0; gap: 0.5rem; }
  .hero-form input { padding: 0.85rem 1.2rem; }
  .hero-form .form-submit { padding: 1rem 1.5rem; }
  .form-msg:empty { display: none; }
  .hero-trust { margin-top: 0.7rem; gap: 0.3rem 0.9rem; }
  .hero-trust li { font-size: 0.8rem; }
  .hero-trust { justify-content: center; }

  .cinta-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem 1rem; text-align: center; }
  .ficha { grid-template-columns: 1fr; }
  .ficha-foto { min-height: 0; aspect-ratio: 4/4.4; }
  .ficha-tabla > div { grid-template-columns: 1fr; gap: 0.1rem; }
  .story-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 260px; }
  .story-text { text-align: center; }
  .story-text p { margin-inline: auto; }
  .cifras { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; justify-content: stretch; }
  .cifras strong { font-size: 1.55rem; }
  .cifras span { font-size: 0.78rem; }
  .abanico { margin-left: calc(-4vw - 1px); margin-right: calc(-4vw - 1px); }   /* a todo el ancho: las cartas se cortan en el borde de la pantalla */
  .abanico-escena { height: 470px; }
  .abanico-carta { width: 236px; }
  .abanico-flecha { width: 42px; height: 42px; top: 40%; background: rgba(255,255,255,0.92); }
  .abanico-flecha.prev { left: 8px; }
  .abanico-flecha.next { right: 8px; }
  .count-box { min-width: 0; }
  .count-box + .count-box { padding-left: 0.8rem; }
}
