/* =============================================================
   practeegolf.com — página de «muy pronto»
   Verde muy oscuro y dorado, como el logo. El lima es el de la app.
   ============================================================= */
:root {
  --fondo: #06100b;
  --texto: #f4f1e8;
  --suave: #c9cfc6;
  --oro: #d9b36a;
  --oro-claro: #f3d796;
  --oro-oscuro: #a9803d;
  --lima: #c8f25c;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--fondo);
  color: var(--texto);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600; letter-spacing: 0; }

/* ---------- 1. Portada con el montaje ---------- */
.portada {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.montaje { position: absolute; inset: 0; z-index: -3; background: #000 url('img/fondo.jpg') center / cover no-repeat; }
.montaje img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  filter: blur(1.5px) saturate(1.15) brightness(0.62);
  transform: scale(1.08);
}
.montaje img.fondo { object-position: center 45%; filter: saturate(1.1) brightness(0.7); }
.montaje img.activa { opacity: 1; animation: corte 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.montaje img.activa.lenta { animation: acercar 2.2s ease-out forwards; }
@keyframes corte { from { transform: scale(1.16) translate(var(--dx, 0), var(--dy, 0)); } to { transform: scale(1.04); } }
@keyframes acercar { from { transform: scale(1.02); } to { transform: scale(1.12); } }

.velo {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(6, 16, 11, 0.25) 0%, rgba(6, 16, 11, 0.7) 60%, rgba(6, 16, 11, 0.95) 100%),
    linear-gradient(180deg, rgba(6, 16, 11, 0.55) 0%, rgba(6, 16, 11, 0) 30%, rgba(6, 16, 11, 0) 65%, var(--fondo) 100%);
}
/* Grano de película y líneas finas: le da aire de tráiler */
.grano {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grano 0.6s steps(4) infinite;
}
.grano::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 3px);
  opacity: 0.5;
}
@keyframes grano { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); } }
.destello { position: absolute; inset: 0; z-index: -1; background: #fff; opacity: 0; pointer-events: none; }
.destello.si { animation: destello 0.35s ease-out; }
@keyframes destello { 0% { opacity: 0.55; } 100% { opacity: 0; } }

.portada-contenido {
  position: relative;
  max-width: 920px;
  padding: 96px 24px 120px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.logo { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; animation: entrar 1s 0.1s both; }
.logo img { display: block; height: auto; filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.6)); }
.logo-p { width: 112px; }
.logo-texto { width: 230px; }
.pronto {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px;
  border: 1px solid rgba(217, 179, 106, 0.55);
  border-radius: 999px;
  background: rgba(6, 16, 11, 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--oro-claro);
  font-size: 13px; font-weight: 800; letter-spacing: 0.32em; text-transform: uppercase;
  animation: entrar 1s 0.3s both;
}
.punto { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 0 rgba(200, 242, 92, 0.7); animation: latido 1.6s infinite; }
@keyframes latido { 0% { box-shadow: 0 0 0 0 rgba(200, 242, 92, 0.65); } 70% { box-shadow: 0 0 0 12px rgba(200, 242, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 242, 92, 0); } }
h1 {
  margin-top: 26px;
  font-size: clamp(46px, 8.6vw, 120px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.55);
  animation: entrar 1.1s 0.45s both;
}
h1 em, h2 em {
  font-size: 1.12em;
  background: linear-gradient(100deg, var(--oro-oscuro) 0%, var(--oro-claro) 35%, var(--oro) 55%, var(--oro-claro) 75%, var(--oro-oscuro) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: 0.06em;
  animation: brillo 5s linear infinite;
}
@keyframes brillo { from { background-position: 100% 0; } to { background-position: -120% 0; } }
.sub { margin-top: 22px; max-width: 560px; font-size: clamp(17px, 2vw, 21px); line-height: 1.5; color: var(--suave); animation: entrar 1.1s 0.6s both; }
.boton {
  margin-top: 36px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--oro-claro), var(--oro) 50%, var(--oro-oscuro));
  color: #1a1408;
  font-weight: 800; font-size: 16.5px; text-decoration: none; letter-spacing: -0.01em;
  box-shadow: 0 14px 40px rgba(217, 179, 106, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  animation: entrar 1.1s 0.75s both;
}
.boton:hover { transform: translateY(-2px); box-shadow: 0 20px 50px rgba(217, 179, 106, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.boton:focus-visible { outline: 3px solid var(--lima); outline-offset: 4px; }
.nota { margin-top: 14px; font-size: 13px; color: rgba(201, 207, 198, 0.75); animation: entrar 1.1s 0.85s both; }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.bajar {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25); color: var(--suave);
  animation: flotar 2.2s ease-in-out infinite;
}
@keyframes flotar { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ---------- 2. Cinta dorada ---------- */
.cinta {
  overflow: hidden;
  background: linear-gradient(90deg, var(--oro-oscuro), var(--oro) 50%, var(--oro-oscuro));
  color: #17110a;
  padding: 16px 0;
  transform: rotate(-1.5deg) scale(1.03);
  margin: -14px 0 0;
  position: relative; z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.cinta-pista { display: flex; width: max-content; gap: 28px; animation: cinta 26s linear infinite; }
.cinta span { font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.cinta i { font-style: normal; font-size: clamp(22px, 3vw, 34px); opacity: 0.55; }
@keyframes cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 3. La bola ---------- */
.bola {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: 120px 7vw;
  overflow: hidden;
  isolation: isolate;
}
.bola-fondo {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 16, 11, 0.94) 0%, rgba(6, 16, 11, 0.72) 32%, rgba(6, 16, 11, 0) 62%),
    linear-gradient(180deg, var(--fondo) 0%, rgba(6, 16, 11, 0) 20%, rgba(6, 16, 11, 0) 80%, var(--fondo) 100%),
    url('img/fondo.jpg') 70% 45% / cover no-repeat;
}
.bola-texto { max-width: 560px; }
h2 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
.bola-texto p { margin-top: 20px; font-size: clamp(17px, 2vw, 22px); color: var(--suave); }
.boton-claro { margin-top: 30px; animation: none; }

/* ---------- Pie ---------- */
.pie { padding: 46px 24px 54px; display: flex; flex-direction: column; align-items: center; gap: 14px; color: rgba(201, 207, 198, 0.7); font-size: 13.5px; text-align: center; }
.pie-logo { width: 64px; height: auto; opacity: 0.9; }
.pie a { color: var(--oro-claro); text-decoration: none; }
.pie a:hover { text-decoration: underline; }

/* ---------- Botón «Ver el tráiler» ---------- */
.ver-trailer {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(6, 16, 11, 0.45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--texto); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  animation: entrar 1.1s 0.95s both;
}
.ver-trailer:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.45); }
.ver-trailer:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }
.ver-trailer small { font-size: 13px; color: var(--suave); font-weight: 400; }
.ver-trailer-icono {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lima); color: #10180a;
  box-shadow: 0 0 0 0 rgba(200, 242, 92, 0.6); animation: latido 1.8s infinite;
}
.ver-trailer-icono svg { margin-left: 2px; }

/* ---------- El tráiler ---------- */
.trailer {
  position: fixed; inset: 0; z-index: 50;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate;
}
.trailer[hidden] { display: none; }
.trailer-montaje { position: absolute; inset: 0; z-index: -3; }
.trailer-montaje img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0; filter: saturate(1.15) brightness(0.55); transform: scale(1.06);
}
.trailer-montaje img.fondo { object-position: center 45%; filter: saturate(1.1) brightness(0.75); }
.trailer-montaje img.activa { opacity: 1; animation: corte 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.trailer-montaje img.activa.lenta { animation: acercar 4s ease-out forwards; }
.trailer-montaje.negro img { opacity: 0 !important; }
.trailer-velo { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 75%, rgba(0, 0, 0, 0.92) 100%); }
.trailer .destello { z-index: -1; }
.trailer-frase {
  max-width: min(1100px, 92vw);
  padding: 0 16px;
  text-align: center;
  font-size: clamp(36px, 7vw, 104px);
  line-height: 1.02; font-weight: 800; letter-spacing: -0.045em;
  text-shadow: 0 8px 50px rgba(0, 0, 0, 0.7);
}
.trailer-frase.entra { animation: frase 0.55s cubic-bezier(0.15, 0.8, 0.2, 1) both; }
.trailer-frase.golpe { animation: golpe 0.35s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.trailer-frase em { font-size: 1.1em; background: linear-gradient(100deg, var(--oro-oscuro), var(--oro-claro) 45%, var(--oro)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.06em; }
@keyframes frase { from { opacity: 0; transform: translateY(26px) scale(0.98); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes golpe { from { opacity: 0; transform: scale(1.5); } to { opacity: 1; transform: none; } }
.trailer-logo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 16px; opacity: 0; pointer-events: none; }
.trailer-logo img { display: block; height: auto; filter: drop-shadow(0 6px 30px rgba(217, 179, 106, 0.35)); }
.trailer-logo .logo-p { width: clamp(110px, 16vw, 200px); }
.trailer-logo .logo-texto { width: clamp(220px, 32vw, 420px); }
.trailer-logo.si { animation: logo 2.2s cubic-bezier(0.15, 0.8, 0.2, 1) both; }
@keyframes logo { 0% { opacity: 0; transform: scale(1.25); filter: blur(14px); } 30% { opacity: 1; transform: scale(1); filter: none; } 85% { opacity: 1; } 100% { opacity: 0; transform: scale(0.98); } }
.trailer-final { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; animation: entrar 0.8s both; }
.trailer-final[hidden] { display: none; }
.trailer-web { margin-top: 18px; font-size: clamp(30px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.trailer-final .boton, .trailer-final .ver-trailer { animation: none; }
.trailer-final .ver-trailer { padding: 10px 18px; }
.trailer-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.12); }
.trailer-barra span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--oro-oscuro), var(--oro-claro)); }
.trailer-cerrar {
  position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer;
}
.trailer-cerrar:hover { background: rgba(255, 255, 255, 0.15); }
.trailer-cerrar:focus-visible { outline: 3px solid var(--lima); outline-offset: 3px; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .portada-contenido { padding: 72px 16px 110px; }
  .logo { gap: 10px; margin-bottom: 26px; }
  .logo-p { width: 76px; }
  .logo-texto { width: 158px; }
  .pronto { font-size: 11.5px; letter-spacing: 0.26em; padding: 7px 14px; }
  .boton { padding: 16px 24px; font-size: 15.5px; }
  .trailer-logo { gap: 10px; }
  .bola { padding: 90px 16px; align-items: flex-end; min-height: 88vh; }
  .bola-fondo {
    background:
      linear-gradient(0deg, rgba(6, 16, 11, 0.96) 0%, rgba(6, 16, 11, 0.6) 38%, rgba(6, 16, 11, 0) 65%),
      linear-gradient(180deg, var(--fondo) 0%, rgba(6, 16, 11, 0) 18%),
      url('img/fondo.jpg') 50% 40% / cover no-repeat;
  }
}

/* Sin movimiento si la persona lo ha pedido en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .montaje img { transition: opacity 1.2s ease !important; transform: scale(1.04); }
  .cinta-pista { transform: none; }
}
