/* Paleta propia de Gabi (distinta de la de Emma, que es dorada): ciruela de noche, rosa neon
   y lila, tomados de su marca de conejita. */
:root {
  --choco: #170d1a;
  --caramel: #ff5d9e;
  --caramel-2: #ff86ba;
  --lila: #c9a7ff;
  --cream: #fdeaf4;
  --muted: rgba(253, 234, 244, .68);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--choco); color: var(--cream); }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

.backdrop {
  position: fixed; inset: -40px;
  background: url("/img/hero-720.webp?v=16") center / cover no-repeat;
  filter: blur(40px) brightness(.3) saturate(1.35) hue-rotate(-12deg);
}
.stage { position: relative; height: 100dvh; width: 100%; margin: 0 auto; overflow: hidden; isolation: isolate; }
@media (min-width: 700px) {
  .stage {
    width: 440px; height: min(100dvh - 48px, 900px);
    margin-top: max(24px, calc((100dvh - 900px) / 2));
    border-radius: 30px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(247, 236, 223, .08);
  }
}

.hero, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img {
  object-fit: cover; object-position: 50% 0;
  /* encuadre: deja ver su cara arriba y su figura por encima del nombre y los botones */
  transform: translateY(-1%) scale(1.1);
  animation: settle 3s var(--ease) .1s forwards;
}
@keyframes settle { to { transform: translateY(-1%) scale(1.04); } }

.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(23,13,26,.6) 0%, transparent 16%, transparent 34%,
                    rgba(23,13,26,.55) 52%, rgba(23,13,26,.93) 74%, var(--choco) 100%);
}

/* luces rosadas y lilas que flotan hacia arriba */
.bokeh { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* ---------- arriba ---------- */
.top {
  position: absolute; z-index: 2; left: 0; right: 0;
  top: calc(env(safe-area-inset-top) + 20px);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  opacity: 0; animation: fade 1.4s ease .4s forwards;
}
.mono {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  color: var(--caramel-2);
  box-shadow: 0 0 22px rgba(255, 93, 158, .45);
  border: 1px solid rgba(255, 134, 186, .6);
  background: rgba(23, 13, 26, .2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.kicker { font-size: 10px; font-weight: 700; letter-spacing: .48em; text-indent: .48em; text-transform: uppercase; color: var(--lila); }
@keyframes fade { to { opacity: 1; } }

/* ---------- abajo ---------- */
.bottom {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 18px);
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(44px, 13.5vw, 62px); line-height: .95;
  color: var(--cream); text-shadow: 0 6px 40px rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.name span { font-style: italic; color: var(--caramel-2); }
/* cada letra entra desde abajo, girada y desenfocada, una tras otra */
.name .ch {
  display: inline-block;
  opacity: 0; transform: translateY(.5em) rotate(6deg) scale(.9); filter: blur(10px);
  animation: letra .9s var(--ease) forwards;
}
.name span .ch { text-shadow: 0 0 26px rgba(255, 93, 158, .0); animation: letra .9s var(--ease) forwards, neon 4.5s ease-in-out 2.2s infinite; }
@keyframes letra { to { opacity: 1; transform: none; filter: none; } }
/* el apellido late como un neon rosa */
@keyframes neon {
  0%, 100% { text-shadow: 0 0 26px rgba(255, 93, 158, .0); }
  45% { text-shadow: 0 0 10px rgba(255, 134, 186, .9), 0 0 34px rgba(255, 93, 158, .75), 0 0 70px rgba(179, 75, 255, .45); }
}
.line {
  margin-top: 10px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .34em; text-indent: .34em; text-transform: uppercase; color: var(--muted);
  opacity: 0; animation: fade 1.2s ease 1s forwards;
}

/* boton principal: el VIP manda */
.cta {
  position: relative; overflow: hidden;
  margin-top: 20px; width: 100%; max-width: 360px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 19px 24px; border-radius: 999px;
  background: linear-gradient(120deg, #ff8ec0 0%, var(--caramel) 46%, #b34bff 100%);
  color: #220f1c; text-decoration: none;
  box-shadow: 0 18px 46px rgba(255, 93, 158, .42), inset 0 1px 0 rgba(255, 255, 255, .55);
  opacity: 0; transform: translateY(24px);
  animation: up 1.1s var(--ease) 1.2s forwards, breathe 3.4s ease-in-out 2.6s infinite;
  transition: transform .35s var(--ease);
}
.cta:active { transform: scale(.975); }
.cta-text { font-size: 15px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 18px 46px rgba(255, 93, 158, .36), inset 0 1px 0 rgba(255,255,255,.55); }
  50% { box-shadow: 0 20px 72px rgba(201, 167, 255, .7), 0 0 0 6px rgba(255, 93, 158, .12), inset 0 1px 0 rgba(255,255,255,.55); }
}
.cta::after { /* brillo que cruza */
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .75), transparent);
  animation: sheen 4.2s ease-in-out 2.4s infinite;
}
@keyframes sheen { 0% { left: -60%; } 26%, 100% { left: 130%; } }
.cta-ring {
  position: absolute; inset: 0; border-radius: inherit; z-index: 1; overflow: hidden; pointer-events: none;
  padding: 2px; filter: drop-shadow(0 0 5px rgba(255, 134, 186, .95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.cta-ring::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 170%; aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 46%, #ffd5e9 60%, #ff5d9e 72%, #c9a7ff 80%, transparent 94%);
  animation: spin 3.6s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }
.cta svg { position: relative; z-index: 2; animation: nudge 1.9s ease-in-out 2.6s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(5px); } }

/* puerta gratis: claramente secundaria */
.cta2 {
  margin-top: 10px; width: 100%; max-width: 360px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 999px;
  border: 1px solid rgba(247, 236, 223, .26);
  background: rgba(23, 13, 26, .32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--cream); text-decoration: none;
  font-size: 12.5px; font-weight: 600; letter-spacing: .06em;
  opacity: 0; animation: fade 1.1s ease 1.5s forwards;
  transition: border-color .3s, color .3s;
}
.cta2:active, .cta2:hover { border-color: var(--caramel-2); color: var(--caramel-2); }

.socials {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 16px;
  opacity: 0; animation: fade 1.2s ease 1.9s forwards;
}
.socials a {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(247, 236, 223, .2); color: var(--cream);
  transition: border-color .3s, color .3s;
}
.socials a:hover, .socials a:active { border-color: var(--caramel-2); color: var(--caramel-2); }
.socials svg { width: 16px; height: 16px; }

/* ---------- aviso de edad ---------- */
.gate {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 20px;
  background: radial-gradient(ellipse at 50% 40%, rgba(80, 20, 70, .45), rgba(12, 6, 14, .82) 70%);
  backdrop-filter: blur(26px) saturate(1.15); -webkit-backdrop-filter: blur(26px) saturate(1.15);
  animation: fade .45s ease forwards; opacity: 0;
}
.gate[hidden] { display: none; }
.gate-card {
  position: relative;
  width: min(340px, 100%); padding: 30px 26px 18px; text-align: center;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(48, 22, 46, .78), rgba(20, 10, 22, .88));
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 60px rgba(255, 93, 158, .10);
  animation: gateIn .7s var(--ease) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.gate-card::before { /* borde de luz degradado */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 134, 186, .85), rgba(201, 167, 255, .35) 45%, rgba(255, 255, 255, .06) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* foto en un aro degradado, con el conejito colgado */
.gate-pic { position: relative; display: inline-grid; place-items: center; }
.gate-ring {
  display: grid; place-items: center;
  width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(from 210deg, var(--caramel), var(--lila), #ffd7ea, var(--caramel));
  box-shadow: 0 0 26px rgba(255, 93, 158, .45);
  animation: spin 9s linear infinite;
}
.gate-avatar {
  width: 82px; height: 82px; border-radius: 50%; object-fit: cover;
  border: 3px solid #1a0f1d; animation: spin 9s linear infinite reverse;
}
.gate-badge {
  position: absolute; right: -2px; bottom: -2px; z-index: 2;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #1a0f1d; border: 1px solid rgba(255, 134, 186, .55); color: var(--caramel-2);
}
.gate-title {
  margin-top: 18px; font-family: var(--serif); font-size: 25px; line-height: 1.15; letter-spacing: -.01em;
  color: var(--cream);
}
.gate-text { margin: 9px auto 0; max-width: 260px; font-size: 13px; line-height: 1.6; color: rgba(253, 234, 244, .58); }
.gate-yes {
  margin-top: 22px; width: 100%; padding: 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: linear-gradient(120deg, #ff8ec0, var(--caramel) 50%, #b34bff);
  color: #220f1c; font: 800 12px var(--sans); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(255, 93, 158, .34), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease);
}
.gate-yes:active { transform: scale(.975); }
.gate-no {
  margin-top: 6px; padding: 12px; border: 0; background: none; cursor: pointer;
  font: 500 12px var(--sans); color: rgba(253, 234, 244, .38);
  transition: color .3s;
}
.gate-no:hover, .gate-no:active { color: rgba(253, 234, 244, .7); }
body.gated .top, body.gated .bottom { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}
