/* Paleta propia de Mar, medida sobre su portada: azul de mar de noche, con el turquesa y la
   espuma que le pone su nombre. Distinta de las otras tres: Sakura rosa palo, Emma dorada,
   Gabi ciruela con neon rosa.

   El armado tambien es distinto a proposito. Las otras tres apilan todo en el centro; esta va
   alineada a la izquierda, con el nombre en dos lineas y las redes en una columna sobre el borde
   derecho. Mismo nivel de acabado, otra estructura. */
:root {
  --abismo: #070f1a;
  --marea: #14273c;
  --turquesa: #35d3c6;
  --turquesa-2: #7ceade;
  --hondo: #1f7fb0;
  --espuma: #e9f4f5;
  --muted: rgba(233, 244, 245, .66);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --borde: 26px;                 /* margen lateral del contenido */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--abismo); color: var(--espuma); }
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=1") center / cover no-repeat;
  filter: blur(40px) brightness(.32) saturate(1.3);
}
.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, .65), 0 0 0 1px rgba(233, 244, 245, .08);
  }
}

.hero, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img {
  object-fit: cover; object-position: 50% 0;
  transform: translateY(-2%) scale(1.1);
  animation: settle 3s var(--ease) .1s forwards;
}
@keyframes settle { to { transform: translateY(-2%) scale(1.03); } }

/* la sombra cae mas hacia la izquierda, que es donde vive el texto */
.shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(7,15,26,.6) 0%, transparent 14%, transparent 34%,
                    rgba(7,15,26,.52) 54%, rgba(7,15,26,.93) 78%, var(--abismo) 100%),
    linear-gradient(to right, rgba(7,15,26,.55) 0%, rgba(7,15,26,.12) 42%, transparent 70%);
}

/* reflejos de luna sobre el agua */
.agua { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

@keyframes fade { to { opacity: 1; } }

/* Arriba no va nada: el monograma se quito el 22-sep porque no aportaba y le robaba aire a la
   foto. La parte de arriba es la foto y punto. */

/* ---------- las redes: columna sobre el borde derecho ---------- */
.rail {
  position: absolute; z-index: 2;
  right: calc(var(--borde) - 4px); top: 40%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: fade 1.2s ease 1.9s forwards;
}
.rail::before, .rail::after {
  content: ""; width: 1px; height: 34px;
}
.rail::before { background: linear-gradient(to bottom, transparent, rgba(124, 234, 222, .55)); }
.rail::after  { background: linear-gradient(to top, transparent, rgba(124, 234, 222, .55)); }
.rail a {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(233, 244, 245, .2); color: var(--espuma);
  background: rgba(7, 15, 26, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.rail a:hover, .rail a:active { border-color: var(--turquesa-2); color: var(--turquesa-2); transform: translateX(-3px); }
.rail svg { width: 15px; height: 15px; }

/* ---------- abajo: todo alineado a la izquierda ---------- */
.bottom {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom) + 22px);
  padding: 0 var(--borde);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
}

/* la linea de arriba del nombre: raya corta + etiqueta */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase;
  color: var(--turquesa-2);
  opacity: 0; animation: fade 1.2s ease .9s forwards;
}
.eyebrow .rule {
  width: 28px; height: 1px; flex: none;
  background: linear-gradient(to right, var(--turquesa), rgba(53, 211, 198, .2));
}

/* el nombre en dos lineas, pegado a la izquierda */
.name {
  margin-top: 12px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(54px, 17.5vw, 78px); line-height: .84;
  color: var(--espuma); text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}
.name .plain, .name > span { display: block; }
/* :not(.plain) importa: app.js envuelve el nombre suelto en un span, y sin esto el apellido
   se llevaria tambien la cursiva y el turquesa. */
.name > span:not(.plain) { font-style: italic; color: var(--turquesa-2); margin-left: .06em; }
/* cada letra emerge del agua */
.name .ch {
  display: inline-block;
  opacity: 0; transform: translateY(.4em) scale(.94); filter: blur(9px);
  animation: letra .95s var(--ease) forwards;
}
.name > span .ch { animation: letra .95s var(--ease) forwards, marea 5s ease-in-out 2.4s infinite; }
@keyframes letra { to { opacity: 1; transform: none; filter: none; } }
/* el apellido respira como luz bajo el agua */
@keyframes marea {
  0%, 100% { text-shadow: 0 0 24px rgba(53, 211, 198, 0); }
  45% { text-shadow: 0 0 10px rgba(124, 234, 222, .85), 0 0 34px rgba(53, 211, 198, .7), 0 0 72px rgba(31, 127, 176, .5); }
}

.line {
  margin-top: 14px; font-size: 14px; font-weight: 400; line-height: 1.4;
  color: var(--muted); letter-spacing: .01em;
  opacity: 0; animation: fade 1.2s ease 1.15s forwards;
}

/* boton principal: barra ancha, texto a la izquierda y la flecha en su propio circulo */
.cta {
  position: relative; overflow: hidden;
  margin-top: 22px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 24px; border-radius: 999px;
  background: linear-gradient(115deg, #a6f4e9 0%, var(--turquesa) 42%, var(--hondo) 100%);
  color: #04222b; text-decoration: none;
  box-shadow: 0 18px 46px rgba(53, 211, 198, .34), inset 0 1px 0 rgba(255, 255, 255, .55);
  opacity: 0; transform: translateY(24px);
  animation: up 1.1s var(--ease) 1.35s forwards, breathe 3.6s ease-in-out 2.8s infinite;
  transition: transform .35s var(--ease);
}
.cta:active { transform: scale(.98); }
.cta-text { position: relative; z-index: 2; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.cta-arrow {
  position: relative; z-index: 2; flex: none;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(4, 34, 43, .16); color: #04222b;
  animation: nudge 2s ease-in-out 2.8s infinite;
}
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 62%, 100% { transform: none; } 30% { transform: translateX(4px); } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 18px 46px rgba(53, 211, 198, .3), inset 0 1px 0 rgba(255,255,255,.55); }
  50% { box-shadow: 0 20px 72px rgba(124, 234, 222, .6), 0 0 0 6px rgba(53, 211, 198, .12), inset 0 1px 0 rgba(255,255,255,.55); }
}
.cta::after { /* brillo que cruza, como luz sobre el agua */
  content: ""; position: absolute; top: 0; bottom: 0; width: 38%; left: -60%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  animation: sheen 4.4s ease-in-out 2.6s 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(124, 234, 222, .9));
  -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%, #d6fff8 60%, var(--turquesa) 72%, var(--hondo) 80%, transparent 94%);
  animation: spin 3.8s linear infinite;
}
@keyframes spin { to { rotate: 360deg; } }

/* puerta gratis: un enlace discreto, no un segundo boton */
.cta2 {
  margin-top: 14px; margin-left: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); text-decoration: none;
  font-size: 12.5px; font-weight: 500; letter-spacing: .02em;
  padding-bottom: 3px; border-bottom: 1px solid rgba(233, 244, 245, .22);
  opacity: 0; animation: fade 1.1s ease 1.65s forwards;
  transition: color .3s, border-color .3s;
}
.cta2:active, .cta2:hover { color: var(--turquesa-2); border-color: var(--turquesa-2); }

/* ---------- aviso de edad ----------
   Sin foto suya: la contiene el tipo de letra. Mismo lenguaje que la pagina (alineado a la
   izquierda, raya corta arriba, boton en barra con la flecha en su circulo) y un "18" enorme
   en cursiva de fondo, casi invisible, como marca de agua de revista. */
.gate {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 22px;
  background: radial-gradient(ellipse at 50% 38%, rgba(20, 74, 96, .42), rgba(3, 7, 13, .9) 68%);
  backdrop-filter: blur(30px) saturate(1.2); -webkit-backdrop-filter: blur(30px) saturate(1.2);
  animation: fade .5s ease forwards; opacity: 0;
}
.gate[hidden] { display: none; }

.gate-card {
  position: relative; overflow: hidden;
  width: min(360px, 100%); padding: 34px 30px 22px; text-align: left;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(21, 47, 65, .82), rgba(6, 13, 22, .95));
  box-shadow: 0 40px 110px rgba(0, 0, 0, .62), 0 0 80px rgba(53, 211, 198, .09);
  animation: gateIn .8s var(--ease) both;
}
@keyframes gateIn { from { opacity: 0; transform: translateY(18px) scale(.975); } to { opacity: 1; transform: none; } }
.gate-card::before { /* borde de luz de un solo pelo */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(150deg, rgba(124, 234, 222, .75), rgba(31, 127, 176, .28) 48%, rgba(255, 255, 255, .05) 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.gate-card::after { /* resplandor que entra por arriba.
     El alto sobrado importa: si el degradado no termina de apagarse dentro del elemento,
     al recortarse deja una raya horizontal a media tarjeta. */
  content: ""; position: absolute; left: -40%; top: -110%; width: 180%; height: 220%;
  background: radial-gradient(ellipse at 50% 62%, rgba(53, 211, 198, .2), transparent 48%);
  pointer-events: none; z-index: 0;
}
/* el "18" de fondo, casi invisible */
.gate-mark {
  position: absolute; right: -14px; top: -58px; z-index: 0; pointer-events: none;
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 190px; line-height: 1; color: rgba(124, 234, 222, .05);
}
.gate-card > p, .gate-card > button { position: relative; z-index: 1; }

.gate-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: .4em; text-transform: uppercase;
  color: var(--turquesa-2);
}
.gate-eyebrow .rule {
  width: 24px; height: 1px; flex: none;
  background: linear-gradient(to right, var(--turquesa), rgba(53, 211, 198, .2));
}
.gate-title {
  margin-top: 14px; font-family: var(--serif); font-weight: 600;
  font-size: 34px; line-height: 1.04; letter-spacing: -.01em; color: var(--espuma);
}
.gate-text {
  margin-top: 12px; max-width: 280px;
  font-size: 13px; line-height: 1.65; color: rgba(233, 244, 245, .52);
}

/* boton en barra, igual que el de la pagina */
.gate-yes {
  margin-top: 26px; width: 100%; cursor: pointer; border: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: linear-gradient(115deg, #a6f4e9 0%, var(--turquesa) 42%, var(--hondo) 100%);
  color: #04222b; font: 800 12px var(--sans); letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 16px 40px rgba(53, 211, 198, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .3s var(--ease);
}
.gate-yes:active { transform: scale(.98); }
.gate-arrow {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(4, 34, 43, .16); color: #04222b;
}
.gate-no {
  margin-top: 4px; width: 100%; padding: 14px; border: 0; background: none; cursor: pointer;
  font: 500 12px var(--sans); color: rgba(233, 244, 245, .34);
  transition: color .3s;
}
.gate-no:hover, .gate-no:active { color: rgba(233, 244, 245, .68); }
body.gated .bottom, body.gated .rail { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
}

/* ---------- pantalla premium "Continuar al sitio" (solo webviews de redes) ---------- */
.leap {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center; padding: 22px;
  background: radial-gradient(130% 90% at 50% 0%, rgba(53,211,198,.2), transparent 60%), rgba(4, 9, 16, .85);
  backdrop-filter: blur(26px) saturate(1.15); -webkit-backdrop-filter: blur(26px) saturate(1.15);
  animation: fade .4s ease forwards; opacity: 0;
}
.leap[hidden] { display: none; }
.leap-card {
  position: relative; overflow: hidden;
  width: min(360px, 100%); padding: 32px 26px 22px; text-align: center;
  border-radius: 28px;
  background: linear-gradient(170deg, rgba(20, 45, 62, .92), rgba(7, 15, 26, .97));
  border: 1px solid rgba(124, 234, 222, .22);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .62), 0 0 60px rgba(53, 211, 198, .10);
  animation: gateIn .7s var(--ease) both;
}
.leap-mark { font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--turquesa-2); }
.leap-title { margin-top: 10px; font-family: var(--serif); font-weight: 600; font-size: 27px; color: var(--espuma); }
.leap-go {
  margin-top: 22px; width: 100%; cursor: pointer; border: 0; padding: 17px; border-radius: 999px;
  background: linear-gradient(120deg, #9df2e6, var(--turquesa) 50%, var(--hondo)); color: #04222b;
  font: 800 12px var(--sans); letter-spacing: .16em; text-transform: uppercase;
  box-shadow: 0 14px 38px rgba(53, 211, 198, .32);
  transition: transform .25s var(--ease);
}
.leap-go:active { transform: scale(.97); }
.leap-hint {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(233, 244, 245, .12);
  display: flex; gap: 10px; align-items: flex-start; text-align: left;
}
.leap-dots { flex: none; font-weight: 700; letter-spacing: 2px; color: var(--turquesa-2); }
.leap-hint-t { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.leap-copy {
  margin-top: 16px; width: 100%; cursor: pointer; padding: 12px;
  border: 1px solid rgba(233, 244, 245, .2); border-radius: 999px; background: none; color: var(--muted);
  font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.leap-note { margin-top: 10px; font-size: 11px; color: rgba(233, 244, 245, .4); min-height: 14px; }
