/* ============================================================
   TU MEJOR INVERSIÓN ERES TÚ — Landing
   css/landing.css · oscuro + dorado · minimalista · premium
   ============================================================ */

:root {
  --bg:        #070706;
  --bg-2:      #0f0e0b;
  --surface:   rgba(255, 255, 255, 0.03);
  --border:    rgba(212, 175, 90, 0.16);
  --border-hi: rgba(212, 175, 90, 0.42);
  --text:      #FAF8F3;
  --muted:     rgba(250, 248, 243, 0.60);
  --muted-2:   rgba(250, 248, 243, 0.34);

  --gold-1:    #F8E6AE;
  --gold-2:    #D4AF52;
  --gold-3:    #A9791F;
  --gold-grad: linear-gradient(120deg, #F8E6AE 0%, #E7C56A 30%, #C99A37 60%, #F2DA94 100%);
  --gold-soft: rgba(212, 175, 82, 0.12);

  --ease:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── Fondo + elementos flotantes ─────────────────────────── */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% -5%, rgba(212,175,82,0.12), transparent 50%),
    radial-gradient(circle at 85% 110%, rgba(169,121,31,0.10), transparent 45%),
    repeating-linear-gradient(118deg, rgba(255,255,255,0.011) 0 2px, transparent 2px 28px);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.orb-1 { width: 460px; height: 460px; top: -140px; left: -80px;  background: rgba(212,175,82,0.16); animation: drift 20s ease-in-out infinite alternate; }
.orb-2 { width: 520px; height: 520px; top: 30%;   right: -160px; background: rgba(169,121,31,0.14); animation: drift 26s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 360px; height: 360px; bottom: -160px; left: 30%; background: rgba(212,175,82,0.10); animation: drift 23s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(60px, 70px) scale(1.12); } }

.spark { position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-1); box-shadow: 0 0 12px 2px rgba(248,230,174,0.6); will-change: transform; opacity: .7; }
.spark-1 { top: 18%; left: 14%; animation: floatY 7s ease-in-out infinite; }
.spark-2 { top: 28%; right: 18%; width: 4px; height: 4px; animation: floatY 9s ease-in-out infinite 1s; }
.spark-3 { top: 64%; left: 22%; width: 5px; height: 5px; animation: floatY 8s ease-in-out infinite .5s; }
.spark-4 { top: 72%; right: 24%; width: 3px; height: 3px; animation: floatY 10s ease-in-out infinite 1.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); opacity:.4; } 50% { transform: translateY(-22px); opacity:.9; } }

/* ── Gold shimmer ────────────────────────────────────────── */
.gold {
  background: var(--gold-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

/* ── Firma / wordmark centrado (scrollea con la página) ──── */
.wordmark {
  position: absolute; top: 46px; left: 0; right: 0; z-index: 5;
  text-align: center; white-space: nowrap;
  font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500;
  font-size: 30px; line-height: 1; letter-spacing: .015em;
  background: var(--gold-grad); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite, wordFloat 5.5s ease-in-out infinite, wordIn 1s var(--ease-soft) both;
}
@keyframes wordFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes wordIn { from { opacity: 0; } to { opacity: 1; } }

/* ── CTA flotante sutil ──────────────────────────────────── */
.float-cta {
  position: fixed; left: 50%; bottom: 26px; z-index: 20;
  transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-1);
  background: rgba(18, 15, 9, 0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border-hi); border-radius: 30px; padding: 12px 22px; cursor: pointer;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  transition: opacity .55s var(--ease-soft), transform .55s var(--ease-soft), color .2s, border-color .2s;
}
.float-cta.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; animation: ctaGlow 3s ease-in-out infinite; }
.float-cta:hover { color: #fff; border-color: var(--gold-2); }
.fc-arrow { display: inline-block; animation: bob2 1.8s ease-in-out infinite; }
@keyframes ctaGlow {
  0%,100% { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(212,175,82,0); }
  50%     { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 7px rgba(212,175,82,0.07); }
}
@keyframes bob2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }

/* ── HERO pantalla completa ──────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 84px 24px 72px;
}
.hero-inner { width: 100%; max-width: 980px; display: flex; flex-direction: column; align-items: center; }

.title {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 900; letter-spacing: -0.035em; line-height: 1.0;
  margin: 0 0 22px; max-width: 16ch;
}
.lead {
  font-size: clamp(15px, 1.7vw, 19px); color: var(--muted);
  max-width: 60ch; margin: 0 0 clamp(28px, 4vh, 46px);
}
.lead strong { color: var(--text); font-weight: 700; }

/* Hero vídeo (hueco) */
.video-frame {
  position: relative; width: 100%; max-width: 760px; aspect-ratio: 16 / 9;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(212,175,82,0.12), transparent 60%),
    linear-gradient(160deg, #15130d 0%, #0a0907 100%);
  border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer; overflow: hidden;
  transition: border-color .35s, transform .5s var(--ease), box-shadow .35s;
}
.video-frame:hover { border-color: var(--border-hi); box-shadow: 0 34px 70px rgba(0,0,0,0.55); }
.play-btn {
  width: 88px; height: 88px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gold-grad); display: grid; place-items: center;
  box-shadow: 0 10px 34px rgba(212,175,82,0.42); animation: pulse 2.6s ease-in-out infinite;
}
.play-tri { width: 0; height: 0; margin-left: 6px; border-style: solid;
  border-width: 16px 0 16px 26px; border-color: transparent transparent transparent #15110a; }
@keyframes pulse {
  0%,100% { box-shadow: 0 10px 34px rgba(212,175,82,0.35); }
  50%     { box-shadow: 0 10px 34px rgba(212,175,82,0.6), 0 0 0 16px rgba(212,175,82,0.05); }
}
.video-tag {
  position: absolute; bottom: 14px; right: 16px; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-2);
  background: rgba(0,0,0,0.45); padding: 5px 11px; border-radius: 20px; border: 1px solid var(--border);
}

/* Flotantes suaves */
.float      { animation: floaty 6s ease-in-out infinite; }
.float-soft { animation: floaty 8s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.video-frame.float:hover { animation-play-state: paused; transform: translateY(-6px); }

/* ── Contenido posterior ─────────────────────────────────── */
.wrap { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 0 22px; }

/* ¿Qué descubrirás? — minimalista, sin cajas */
.discover { margin: clamp(60px, 12vh, 120px) auto 0; }
.discover-title { text-align: center; font-size: clamp(21px, 3.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 30px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 22px; }
.checks li { display: flex; align-items: flex-start; gap: 15px; font-size: clamp(15px, 2vw, 17.5px); color: var(--text); }
.check { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: #15110a; background: var(--gold-grad); box-shadow: 0 4px 14px rgba(212,175,82,0.3); }

/* Puente */
.bridge { text-align: center; margin: clamp(60px, 11vh, 110px) auto 0; max-width: 54ch; }
.bridge-strong { font-size: clamp(18px, 2.5vw, 23px); font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.bridge-soft { font-size: clamp(14px, 2vw, 16px); color: var(--muted); margin: 0; }

/* Formulario */
.form-section { margin: clamp(32px, 5vh, 48px) auto 0; max-width: 460px; }
.form-head { text-align: center; margin-bottom: 22px; }
.form-title { font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.form-sub { color: var(--gold-2); font-size: 14px; font-weight: 600; margin: 0; }

.form-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px; box-shadow: 0 26px 64px rgba(0,0,0,0.5); }
.float-soft:hover { animation-play-state: paused; }
.form-group { margin-bottom: 16px; text-align: left; }
.form-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-field { width: 100%; padding: 14px 16px; background: rgba(0,0,0,0.4); color: var(--text); border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.form-field::placeholder { color: var(--muted-2); }
.form-field:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px var(--gold-soft); }

/* Desplegable "¿Qué te trajo aquí?" — combina con el tema oscuro */
select.form-field {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23c9a24a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.form-field:required:invalid { color: var(--muted-2); }
select.form-field option { color: #fff; background: #1a1712; }

.submit-btn { width: 100%; margin-top: 8px; padding: 16px 22px; font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: .04em; color: #15110a; background: var(--gold-grad); background-size: 200% auto; border: none; border-radius: 12px; cursor: pointer; box-shadow: 0 10px 30px rgba(212,175,82,0.34); transition: transform .3s var(--ease), box-shadow .3s, background-position .5s; }
.submit-btn:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 42px rgba(212,175,82,0.5); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: .7; cursor: default; transform: none; }

.form-note { font-size: 12px; line-height: 1.6; color: var(--muted-2); margin: 16px 0 0; text-align: center; }
.form-error { font-size: 13.5px; color: #ff8a8a; margin: 0 0 14px; text-align: center; }
.authority { text-align: center; font-size: 13.5px; color: var(--muted); max-width: 46ch; margin: 24px auto 0; line-height: 1.65; }

.success-state { text-align: center; padding: 18px 6px; }
.success-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; font-size: 30px; color: #15110a; background: var(--gold-grad); box-shadow: 0 10px 30px rgba(212,175,82,0.4); }
.success-title { font-size: 20px; font-weight: 800; margin: 0 0 8px; }
.success-text { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.6; }

/* Cierre */
.closing { text-align: center; margin: clamp(70px, 13vh, 130px) auto clamp(20px,5vh,40px); }
.closing-1 { font-size: clamp(19px, 2.8vw, 26px); font-weight: 700; margin: 0 0 4px; }
.closing-2 { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 500; font-size: clamp(26px, 5vw, 42px); margin: 0; }

/* Footer */
.footer { position: relative; z-index: 1; display: flex; justify-content: center; padding: 40px 22px 44px; }
.ig { color: var(--gold-2); text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .02em; transition: color .2s; }
.ig:hover { color: var(--gold-1); }

/* ── Animaciones de entrada ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease-soft), transform .85s var(--ease-soft); transition-delay: calc(var(--d, 0) * 100ms); }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .spark, .play-btn, .float, .float-soft, .chev, .gold { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── Responsive / móvil ──────────────────────────────────── */
@media (max-width: 600px) {
  .wordmark { top: 32px; font-size: 23px; }
  .float-cta { bottom: 18px; font-size: 13px; padding: 11px 18px; }
  .hero { padding: 76px 20px 64px; }
  .title { font-size: clamp(34px, 11vw, 50px); letter-spacing: -0.03em; }
  .lead { font-size: 15.5px; }
  .video-frame { border-radius: 18px; }
  .play-btn { width: 72px; height: 72px; }
  .play-tri { border-width: 13px 0 13px 21px; }
  .wrap { padding: 0 20px; }
  .form-card { padding: 26px 20px; }
  .orb-1, .orb-3 { filter: blur(70px); }
  /* Botón de sonido: solo el icono en móvil para no tapar el vídeo/subtítulos */
  .sound-btn { gap: 0; padding: 11px; border-radius: 50%; bottom: 12px; right: 12px; }
  .sound-btn .sound-txt { display: none; }
  .sound-btn .sound-ic { font-size: 17px; line-height: 1; }
}

/* Pantallas grandes: respira más */
@media (min-width: 1100px) {
  .title { letter-spacing: -0.04em; }
  .video-frame { max-width: 820px; }
}

/* ── Hero vídeo (YouTube embebido) ───────────────────────── */
.hero-yt {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; /* el vídeo no es clicable → nunca lleva a YouTube */
}
.hero-yt iframe { width: 100%; height: 100%; display: block; border: 0; }

.sound-btn {
  position: absolute; bottom: 14px; right: 14px; z-index: 3; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; font-size: 13px; font-weight: 800; cursor: pointer;
  color: #15110a; background: var(--gold-grad); border: none; border-radius: 30px;
  padding: 10px 16px; box-shadow: 0 8px 22px rgba(212,175,82,0.42);
  animation: pulse 2.6s ease-in-out infinite;
  transition: transform .25s var(--ease), filter .2s;
}
.sound-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sound-btn.is-on {
  color: var(--gold-1); background: rgba(0,0,0,0.55); border: 1px solid var(--border-hi);
  box-shadow: none; animation: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
