:root {
  --ink: #0d0a0c;
  --cream: #f7efe9;
  --blush: #f4c3cf;
  --petal: #e98aa3;
  --muted: rgba(247, 239, 233, .62);
  --serif: "Cormorant", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --kana: "Zen Old Mincho", serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--ink); color: var(--cream); }
body {
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}

/* En escritorio la foto se ve como una tarjeta de telefono sobre su propia version desenfocada */
.backdrop {
  position: fixed; inset: -40px;
  background: url("/img/hero-720.webp") center / cover no-repeat;
  filter: blur(38px) brightness(.38) saturate(1.2);
}

.stage {
  position: relative;
  height: 100dvh; width: 100%;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 700px) {
  .stage {
    width: 480px; height: min(100dvh - 48px, 900px);
    margin-top: max(24px, calc((100dvh - 900px) / 2));
    border-radius: 28px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
  }
}

.hero, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero { top: 6%; height: 94%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%); mask-image: linear-gradient(to bottom, transparent 0, #000 14%); }
.hero img {
  object-fit: cover;
  object-position: 50% 38%;
  transform: scale(1.08);
  animation: settle 2.6s var(--ease) .1s forwards;
}
@keyframes settle { to { transform: scale(1); } }

.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,10,12,1) 0%, rgba(13,10,12,.85) 6%, rgba(13,10,12,.25) 22%, transparent 42%,
                    transparent 55%, rgba(13,10,12,.55) 74%, rgba(13,10,12,.94) 100%),
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(13,10,12,.45) 100%);
}

.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- marca ---------- */
.brand {
  position: absolute; z-index: 2;
  top: calc(env(safe-area-inset-top) + 3.5vh); left: 0; right: 0;
  text-align: center;
}
@media (min-width: 700px) { .brand { top: 34px; } }

.wordmark {
  font-family: var(--serif);
  font-style: italic; font-weight: 500;
  font-size: clamp(62px, 19vw, 100px);
  line-height: .9;
  letter-spacing: -.01em;
  color: var(--cream);
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.wordmark span {
  display: inline-block;
  opacity: 0; transform: translateY(.35em); filter: blur(8px);
  animation: rise 1.4s var(--ease) forwards;
}
.wordmark span:nth-child(1) { animation-delay: .35s; }
.wordmark span:nth-child(2) { animation-delay: .43s; }
.wordmark span:nth-child(3) { animation-delay: .51s; }
.wordmark span:nth-child(4) { animation-delay: .59s; }
.wordmark span:nth-child(5) { animation-delay: .67s; }
.wordmark span:nth-child(6) { animation-delay: .75s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

.tagline {
  margin-bottom: 16px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--muted);
  opacity: 0; animation: fade 1.2s ease 1.3s forwards;
}
@keyframes fade { to { opacity: 1; } }

.kana {
  position: absolute; z-index: 2;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-family: var(--kana);
  font-size: 13px; letter-spacing: .6em;
  color: var(--blush);
  opacity: 0; animation: fade 1.6s ease 1.6s forwards;
}
.kana::before, .kana::after {
  content: ""; display: block; margin: 14px auto;
  width: 1px; height: 38px; background: currentColor; opacity: .5;
}

/* ---------- acciones ---------- */
.actions {
  position: absolute; z-index: 2;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(40px);
  animation: up 1.1s var(--ease) 1.1s forwards;
}
@keyframes up { to { opacity: 1; transform: none; } }

.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; max-width: 330px;
  padding: 20px 28px;
  border-radius: 999px;
  background: var(--blush);
  color: var(--ink);
  text-decoration: none;
  font-size: 13px; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  box-shadow: 0 14px 44px rgba(233, 138, 163, .35), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.cta::after { /* brillo que cruza el boton cada pocos segundos */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  animation: sheen 4.5s ease-in-out 2.4s infinite;
}
@keyframes sheen { 0% { left: -60%; } 28%, 100% { left: 130%; } }
.cta:active { transform: scale(.97); background: var(--cream); }
.cta-arrow { display: grid; place-items: center; transition: transform .35s var(--ease); }
@media (hover: hover) { .cta:hover .cta-arrow { transform: translateX(4px); } }

.socials { display: flex; gap: 14px; margin-top: 30px; }
.socials a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 239, 233, .22);
  background: rgba(13, 10, 12, .25);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--cream);
  transition: border-color .3s, color .3s;
}
.socials a:active, .socials a:hover { border-color: var(--blush); color: var(--blush); }
.socials svg { width: 18px; height: 18px; }

.fine {
  margin-top: 22px;
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(247, 239, 233, .38);
}

/* ---------- guia de navegador ---------- */
.sheet {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: flex-start; justify-content: flex-end;
  padding: calc(env(safe-area-inset-top) + 14px) 14px 14px;
  background: rgba(13, 10, 12, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: fade .3s ease forwards;
}
.sheet[hidden] { display: none; }
.sheet-card {
  width: min(340px, 100%);
  padding: 22px 22px 18px;
  border-radius: 22px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.sheet-pointer { color: var(--petal); display: flex; justify-content: flex-end; margin: -8px -6px 4px 0; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translate(3px, -3px); } }
.sheet-title { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 28px; line-height: 1.05; }
.sheet-text { margin-top: 10px; font-size: 14px; line-height: 1.5; color: #4a3f44; }
.sheet-copy {
  margin-top: 18px; width: 100%;
  padding: 14px; border: 0; border-radius: 999px;
  background: var(--ink); color: var(--cream);
  font: 700 12px var(--sans); letter-spacing: .2em; text-transform: uppercase;
}
.sheet-skip { display: block; margin-top: 12px; text-align: center; font-size: 12px; color: #7a6d73; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .hero img { transform: none; }
}

.surname {
  margin-top: 6px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .9em; text-indent: .9em; text-transform: uppercase;
  color: var(--blush);
  opacity: 0; animation: fade 1.2s ease 1.05s forwards;
}

/* ---------- aviso de edad ---------- */
.gate {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center;
  padding: 16px;
  background: rgba(13, 10, 12, .6);
  backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1);
  animation: fade .4s ease forwards;
}
.gate[hidden] { display: none; }
.gate-card {
  width: min(360px, 100%);
  padding: 34px 26px 22px;
  border-radius: 26px;
  text-align: center;
  background: rgba(20, 15, 18, .78);
  border: 1px solid rgba(244, 195, 207, .18);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55);
}
.gate-mark { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 44px; line-height: 1; color: var(--cream); }
.gate-title { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--blush); }
.gate-text { margin-top: 12px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.gate-yes {
  margin-top: 24px; width: 100%;
  padding: 17px; border: 0; border-radius: 999px;
  background: var(--blush); color: var(--ink);
  font: 700 12.5px var(--sans); letter-spacing: .22em; text-transform: uppercase;
  box-shadow: 0 12px 36px rgba(233, 138, 163, .3);
  cursor: pointer;
}
.gate-yes:active { transform: scale(.97); background: var(--cream); }
.gate-no {
  margin-top: 12px; padding: 8px;
  border: 0; background: none; cursor: pointer;
  font: 500 12px var(--sans); color: rgba(247, 239, 233, .45);
}
/* mientras el aviso esta abierto la escena queda quieta detras */
body.gated .actions, body.gated .brand { visibility: hidden; }
