/* ============================================================
   TANGO FESTIVAL — Landing nueva (portada de prototipo-conversion)
   Todo va bajo .landing para no pisar navbar/footer de home_moises.css
   ============================================================ */
.landing {
  --gold: #c9a227;
  --gold-dark: #a8861f;
  --gold-soft: rgba(201, 162, 39, 0.14);
  --gold-line: rgba(201, 162, 39, 0.4);
  --serif: 'Playfair Display', serif;
  /* Grises más claros: Roberto no leía los textos chicos en su notebook (02/10) */
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  font-size: 17px;
}

.landing .wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.landing section { padding: 80px 0; }

/* ---------- Botones ---------- */
.landing .tf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 16px;
  font-family: var(--font); cursor: pointer; border: none;
  transition: transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.landing .tf-btn-primary {
  background: var(--gold); color: #1a1200;
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 8px 20px -8px rgba(201,162,39,0.55);
}
.landing .tf-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 14px 26px -8px rgba(201,162,39,0.7); }
.landing .tf-btn-primary:active { transform: translateY(0) scale(0.97); filter: brightness(0.95); }
.landing .tf-btn-ghost {
  background: var(--dark2); color: var(--text-primary); border: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.landing .tf-btn-ghost:hover { background: var(--dark3); border-color: rgba(255,255,255,0.2); transform: translateY(-2px); }
.landing .tf-btn-ghost:active { transform: translateY(0) scale(0.97); }
.landing .tf-btn-block { width: 100%; }
.landing .tf-btn-lg { padding: 16px 30px; font-size: 17px; }

/* ---------- Títulos genéricos ---------- */
.landing .section-eyebrow { text-align: center; color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.landing .section-title { text-align: center; font-size: clamp(26px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 16px; }
.landing .section-subtitle { text-align: center; color: var(--text-secondary); max-width: 680px; margin: 0 auto 56px; }

/* ---------- Hero con video de fondo ---------- */
.landing .tf-hero {
  position: relative; text-align: center; overflow: hidden;
  /* El video sube por detrás de la barra de redes y del menú (como en la landing) */
  margin-top: calc(-1 * var(--tf-hero-tope, 160px));
  padding: calc(var(--tf-hero-tope, 160px) + 70px) 0 150px;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
}
.landing .tf-hero > .wrap { width: 100%; }
body.tf-home .top-bar { position: relative; z-index: 1000; }
body.tf-home .navbar { transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
body.tf-home .navbar:not(.scrolled) {
  background: transparent; border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
/* Menos franja negra entre el video y "Así se usa" */
.landing #instructivo { padding-top: 40px; }
/* "Mira cómo funciona" cae justo en "Así se usa", debajo del menú fijo y no tapado por él
   (pedido de Roberto, 20/10). --tf-nav-alto lo mide landing.js. */
.landing #instructivo { scroll-margin-top: calc(var(--tf-nav-alto, 90px) - 28px); }
.landing .tf-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; z-index: 0; }
.landing .tf-hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,0.7) 0%, rgba(10,10,10,0.35) 22%, rgba(10,10,10,0.4) 70%, rgba(10,10,10,0.85) 92%, var(--black) 100%); }
.landing .tf-hero > .wrap { position: relative; z-index: 2; }
.landing .tf-hero-badge {
  display: inline-block; max-width: 100%; line-height: 1.35;
  background: var(--dark2); border: 1px solid var(--border);
  padding: 10px 22px; border-radius: 999px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 600; color: var(--text-primary); margin-bottom: 24px;
}
.landing .tf-hero-badge b { color: var(--gold); }
@media (max-width: 480px) { .landing .tf-hero-badge { font-size: 15px; padding: 9px 14px; } }
.landing .tf-hero-title { font-size: clamp(32px, 6vw, 62px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.landing .tf-hero-subtitle { max-width: 680px; margin: 20px auto 32px; color: var(--text-secondary); font-size: 19px; }
.landing .tf-hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Así se usa (instructivo + reproductor de muestra) ---------- */
.landing .instructivo-grid { display: flex; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }
.landing .instructivo-copy { flex: 1; }
.landing .instructivo-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 28px 0 32px; }
.landing .instructivo-checklist li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--text-secondary); }
.landing .instructivo-checklist li::before {
  content: '✓'; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.landing .audiencia-box {
  border: 1px solid var(--border); background: var(--dark); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 24px;
}
.landing .audiencia-box h3 { font-size: 18px; color: var(--gold); margin-bottom: 6px; }
.landing .audiencia-box p { font-size: 16px; color: var(--text-secondary); }
.landing .instructivo-link { font-size: 16px; color: var(--text-secondary); }
.landing .instructivo-link a { color: var(--gold); font-weight: 700; }
.landing .instructivo-link a:hover { text-decoration: underline; }
@media (min-width: 901px) {
  .landing .instructivo-copy .section-eyebrow,
  .landing .instructivo-copy .section-title { text-align: left; }
  .landing .instructivo-copy .section-subtitle { text-align: left; margin: 0 0 20px; max-width: none; }
}
@media (max-width: 900px) {
  .landing .instructivo-grid { flex-direction: column; }
  .landing .player-demo { width: 100%; }
}
@media (max-width: 560px) {
  .landing .instructivo-checklist { grid-template-columns: 1fr; }
}

/* Reproductor real de la app (iframe a demo.php?embed=1) */
/* Sin recuadro gris alrededor (pedido de Tomás, 01/10): el reproductor y "Así se usa" quedan sueltos */
.landing .tf-player-embed {
  overflow: hidden; margin: 0 auto 40px;
  width: min(1400px, calc(100vw - 32px)); position: relative; left: 50%; transform: translateX(-50%);
}
.landing .tf-player-embed iframe { display: block; width: 100%; height: 920px; border: 0; }
@media (max-width: 900px) {
  .landing .tf-player-embed iframe { height: 820px; }
}
.landing #instructivo .instructivo-checklist { grid-template-columns: repeat(5, 1fr); margin: 0 0 32px; }
@media (max-width: 900px) { .landing #instructivo .instructivo-checklist { grid-template-columns: 1fr 1fr; } }
.landing .instructivo-pie { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.landing .instructivo-pie .audiencia-box { flex: 1; min-width: 260px; margin: 0; }
.landing .instructivo-acciones { display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* ---------- Cifra del catálogo (número serif dorado) ---------- */
.landing .catalog-stat { position: relative; overflow: hidden; padding: 120px 0; text-align: center; }
.landing .catalog-stat::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(1100px, 150vw); height: 560px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse, rgba(201,162,39,0.20) 0%, rgba(201,162,39,0.06) 45%, transparent 72%);
  animation: tfGlow 6s ease-in-out infinite;
}
@keyframes tfGlow {
  0%, 100% { opacity: 0.75; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.landing .catalog-stat > .wrap { position: relative; z-index: 1; }
.landing .catalog-stat-headline {
  font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 5vw, 56px); line-height: 1.25;
  max-width: 1000px; margin: 0 auto;
  opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease;
}
.landing .catalog-stat-num { color: var(--gold); }
.landing .catalog-stat-divider { display: inline-block; width: 48px; height: 2px; background: var(--gold); margin: 30px 0; opacity: 0; transition: opacity .8s ease .15s; }
.landing .catalog-stat-sub {
  color: var(--text-secondary); font-size: 16px; max-width: 520px; margin: 0 auto;
  opacity: 0; transform: translateY(18px); transition: opacity .8s ease .3s, transform .8s ease .3s;
}
.landing .catalog-stat.cs-revealed .catalog-stat-headline,
.landing .catalog-stat.cs-revealed .catalog-stat-sub { opacity: 1; transform: none; }
.landing .catalog-stat.cs-revealed .catalog-stat-divider { opacity: 1; }

/* ---------- Franja de registro ---------- */
.landing .registro-strip { padding: 40px 0; text-align: center; }
.landing .registro-strip a {
  font-size: clamp(20px, 3vw, 30px); font-weight: 800; letter-spacing: -0.01em;
  border-bottom: 2px solid var(--gold); padding-bottom: 4px; transition: color .15s ease;
}
.landing .registro-strip a:hover { color: var(--gold); }

/* ---------- Beneficios: tarjetas que se apilan al bajar ---------- */
.landing .bn-stack { --stack-top: 90px; --stack-offset: 46px; --card-h: 58vh; --scale-step: .07; position: relative; max-width: 1100px; margin: 0 auto; }
.landing .bn-card {
  position: sticky; min-height: var(--card-h); margin: 0 auto 24px; padding: clamp(28px, 4vw, 48px);
  display: flex; align-items: center; gap: clamp(24px, 4vw, 56px);
  background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset, 0 30px 60px -20px rgba(0,0,0,0.7);
  transform-origin: center top; transition: transform .35s cubic-bezier(.22,.61,.36,1), filter .35s ease; will-change: transform;
}
.landing .bn-card:last-child { margin-bottom: 0; }
.landing .bn-card:nth-child(even) { flex-direction: row-reverse; }
.landing .bn-card:nth-child(1) { top: calc(var(--stack-top) + 0 * var(--stack-offset)); z-index: 1; }
.landing .bn-card:nth-child(2) { top: calc(var(--stack-top) + 1 * var(--stack-offset)); z-index: 2; }
.landing .bn-card:nth-child(3) { top: calc(var(--stack-top) + 2 * var(--stack-offset)); z-index: 3; }
.landing .bn-card:nth-child(4) { top: calc(var(--stack-top) + 3 * var(--stack-offset)); z-index: 4; }
.landing .bn-card:nth-child(5) { top: calc(var(--stack-top) + 4 * var(--stack-offset)); z-index: 5; }
.landing .bn-card.is-stacked { transform: scale(calc(1 - var(--depth, 0) * var(--scale-step))); filter: brightness(calc(1 - var(--depth, 0) * .12)); }
.landing .bn-media { flex: 1; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.landing .bn-media img { width: 100%; height: 100%; object-fit: cover; }
.landing .bn-copy { flex: 1; }
.landing .bn-idx { display: block; font-size: 15px; color: var(--gold); font-weight: 700; letter-spacing: 2px; margin-bottom: 10px; }
.landing .bn-copy h3 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin-bottom: 10px; }
.landing .bn-copy p { color: var(--text-secondary); font-size: 18px; }
#beneficios .section-eyebrow { margin-bottom: 48px; }
@media (max-width: 768px) {
  .landing .bn-stack { --stack-top: 76px; --stack-offset: 9px; --card-h: 56vh; }
  .landing .bn-card, .landing .bn-card:nth-child(even) { flex-direction: column; padding: 20px; gap: 16px; margin-bottom: 16px; overflow: hidden; }
  .landing .bn-media, .landing .bn-copy { flex: none; width: 100%; }
}

/* ---------- Cierre: registro + QR ---------- */
.landing .final-cta { text-align: center; background: linear-gradient(180deg, transparent, rgba(201,162,39,0.06)); }
.landing .final-cta-row { display: flex; align-items: stretch; justify-content: center; gap: 24px; max-width: 620px; margin: 0 auto 40px; flex-wrap: wrap; }
.landing .final-cta-form {
  flex: 1; min-width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 10px; text-align: left;
  background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
}
.landing .final-cta-form input {
  width: 100%; padding: 11px 14px; border-radius: 10px; background: var(--dark2);
  border: 1px solid var(--border); color: var(--text-primary); font-family: var(--font); font-size: 16px;
}
.landing .final-cta-form input:focus { outline: none; border-color: var(--gold); }
.landing .final-cta-form input::placeholder { color: var(--text-muted); }
.landing .final-cta-qr {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px;
}
.landing .final-cta-qr img { border-radius: 8px; }
.landing .final-cta-qr p { font-size: 14px; color: var(--text-muted); }
@media (max-width: 560px) {
  .landing .final-cta-row { flex-direction: column; align-items: stretch; }
}

/* ---------- Franja "Explora el catálogo" ---------- */
.landing .catalogo-band { padding: 56px 0 40px; }
.landing .catalogo-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(201,162,39,0.02));
  border: 1px solid rgba(201,162,39,0.3); border-radius: var(--radius-lg); padding: 28px 32px;
}
.landing .catalogo-band h2 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.landing .catalogo-band p { color: var(--text-secondary); font-size: 17px; max-width: 620px; }

/* ---------- Preguntas frecuentes ---------- */
.landing .faq { max-width: 720px; margin: 0 auto; border-top: 1px solid var(--border); }
.landing .faq-item { border-bottom: 1px solid var(--border); }
.landing .faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  padding: 20px 4px; font-weight: 600; font-size: 18px; color: var(--text-primary); border-radius: 8px;
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.landing .faq-q:hover { background: rgba(255,255,255,0.03); padding-left: 10px; }
.landing .faq-q .chev { transition: transform 0.25s cubic-bezier(.2,.8,.2,1); color: var(--text-muted); }
.landing .faq-item.open .chev { transform: rotate(180deg); color: var(--gold); }
.landing .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(.2,.8,.2,1); color: var(--text-secondary); font-size: 17px; }
.landing .faq-item.open .faq-a { max-height: 240px; padding: 0 4px 20px; }

/* ---------- Trayectoria: 40 años de oficio ---------- */
.landing .authority-section { position: relative; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 100px 0; }
.landing .authority-bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.7); transform: scale(1.4); z-index: 0; }
.landing .authority-bg-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,10,0.5) 0%, rgba(10,10,10,0.72) 55%, rgba(10,10,10,0.88) 100%); }
.landing .authority-section > .wrap { position: relative; z-index: 2; width: 100%; }
.landing .authority-body { max-width: 680px; margin: 0 auto; text-align: center; color: var(--text-secondary); }
.landing .authority-body p + p { margin-top: 14px; }
.landing .authority-sign { margin-top: 18px; color: var(--text-primary); font-weight: 700; }
.landing .authority-quote {
  max-width: 560px; margin: 36px auto 0; padding-left: 20px; border-left: 2px solid var(--gold);
  font-family: var(--serif); font-style: italic; color: var(--text-primary); font-size: 17px; line-height: 1.7;
}
.landing .authority-quote cite { display: block; margin-top: 12px; font-family: var(--font); font-style: normal; font-size: 15px; color: var(--text-muted); }
@media (max-width: 640px) {
  .landing .authority-section { min-height: 480px; padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .landing .catalog-stat::before { animation: none; }
  .landing .catalog-stat-headline, .landing .catalog-stat-divider, .landing .catalog-stat-sub { opacity: 1; transform: none; transition: none; }
  .landing .bn-card { position: static; min-height: auto; transform: none !important; filter: none !important; transition: none !important; }
}

@media (min-width: 901px) {
  .landing .instructivo-movil { display: none; }
  /* En computadora "Así se usa" va dentro del recuadro izquierdo del reproductor */
  .landing #instructivo > .wrap > .section-eyebrow,
  .landing #instructivo > .wrap > .section-title,
  .landing #instructivo > .wrap > .section-subtitle { display: none; }
}

/* Celular: el QR no sirve si ya estás en el teléfono */
@media (max-width: 760px) {
  .landing .final-cta-qr,
  .landing .solo-pc { display: none; }
  .landing .catalogo-band-inner { padding: 24px 22px; }
}
