﻿/* =========================================================
   WAIFU WORLD â€” estilos
   Paleta: esmeralda profundo + dorado + turquesa luminoso
   ========================================================= */

:root {
  --bg-0: #04110f;
  --bg-1: #061a16;
  --bg-2: #0b2f2a;
  --emerald: #0fb9a0;
  --turq: #14d2b8;
  --mint: #7ff3e0;
  --gold: #d9b25f;
  --gold-2: #f4e2a1;
  --gold-deep: #a97f3a;
  --ink: #f4fbf8;
  --ink-soft: rgba(230, 247, 242, 0.74);
  --ink-faint: rgba(214, 238, 232, 0.5);
  --line: rgba(217, 178, 95, 0.38);
  --glass: rgba(8, 32, 29, 0.55);

  --font-display: 'Cormorant Garamond', 'Palatino Linotype', Georgia, serif;
  --font-ui: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad-x: clamp(1.4rem, 6vw, 8.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 300;
  background:
    radial-gradient(120vw 80vh at 78% 8%, rgba(244, 226, 161, 0.16), transparent 55%),
    radial-gradient(90vw 90vh at 10% 20%, rgba(15, 185, 160, 0.12), transparent 60%),
    linear-gradient(180deg, #06201b 0%, #04110f 55%, #030c0a 100%);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(20, 210, 184, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: #04110f;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #12685c, #0a3d36);
  border-radius: 8px;
  border: 2px solid #04110f;
}

/* =========================================================
   Capas de fondo
   ========================================================= */

#scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  background: radial-gradient(120vw 90vh at 80% 10%, #145044 0%, #071f1b 45%, #030c0a 100%);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 12% 55%, rgba(3, 12, 10, 0.72), transparent 70%),
    radial-gradient(50% 60% at 50% 108%, rgba(3, 12, 10, 0.85), transparent 70%),
    linear-gradient(90deg, rgba(3, 12, 10, 0.55) 0%, transparent 42%, transparent 100%),
    radial-gradient(120% 120% at 50% 50%, transparent 55%, rgba(2, 8, 7, 0.65) 100%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 34rem;
  height: 34rem;
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 243, 224, 0.13), rgba(20, 210, 184, 0.05) 42%, transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* =========================================================
   Loader
   ========================================================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  gap: 1.2rem;
  align-content: center;
  background: radial-gradient(circle at 50% 45%, #0b2b25 0%, #04110f 70%);
  transition: opacity 0.9s ease, visibility 0.9s;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__sigil {
  width: 74px;
  height: 74px;
  color: var(--gold);
  filter: drop-shadow(0 0 18px rgba(217, 178, 95, 0.45));
  animation: sigilSpin 7s linear infinite;
}

.loader__sigil svg {
  width: 100%;
  height: 100%;
}

.loader__text {
  font-size: 0.78rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-left: 0.42em;
  animation: softPulse 2.4s ease-in-out infinite;
}

@keyframes sigilSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes softPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.95; }
}

/* =========================================================
   Layout general
   ========================================================= */

main,
footer {
  position: relative;
  z-index: 3;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 9vh, 7rem) var(--pad-x) clamp(4rem, 10vh, 8rem);
}

.hero__content {
  position: relative;
  width: min(100%, 650px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.35rem;
}

/* ---------- Eyebrow ---------- */

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: clamp(0.66rem, 0.78vw, 0.8rem);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold-2);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.35s forwards;
}

.spark {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep));
  box-shadow: 0 0 12px rgba(244, 226, 161, 0.7);
}

/* ---------- TÃ­tulo ---------- */

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.7rem, 5.1vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  color: #f8fffd;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.6),
    0 0 26px rgba(127, 243, 224, 0.3),
    0 0 62px rgba(20, 210, 184, 0.18),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.hero__title-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  animation: riseIn 1.15s var(--ease) 0.5s forwards;
}

.hero__title-line--accent {
  animation-delay: 0.64s;
  background: linear-gradient(96deg, #ffffff 0%, #eafffb 42%, #9ff3e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 26px rgba(127, 243, 224, 0.35));
}

.hero__subtitle {
  margin: -0.15rem 0 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.8s forwards;
}

/* ---------- Pills ---------- */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 0.95s forwards;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(217, 178, 95, 0.5);
  background: linear-gradient(180deg, rgba(11, 47, 42, 0.72), rgba(6, 27, 24, 0.62));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 26px rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #effcf8;
  font-size: clamp(0.78rem, 0.95vw, 0.95rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0.015em;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s ease,
    box-shadow 0.4s ease, color 0.4s ease;
}

.pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.22) 50%, transparent 80%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease);
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(244, 226, 161, 0.9);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(244, 226, 161, 0.18),
    0 16px 36px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(20, 210, 184, 0.22);
}

.pill:hover::before {
  transform: translateX(130%);
}

.pill:active {
  transform: translateY(-1px) scale(0.985);
}

/* ---------- Tarjeta ---------- */

.hero__card {
  position: relative;
  width: min(100%, 540px);
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border-radius: 26px;
  border: 1px solid rgba(217, 178, 95, 0.72);
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(20, 210, 184, 0.16), transparent 60%),
    linear-gradient(160deg, rgba(11, 49, 44, 0.76), rgba(5, 24, 21, 0.6));
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(20, 210, 184, 0.05);
  -webkit-backdrop-filter: blur(16px) saturate(125%);
  backdrop-filter: blur(16px) saturate(125%);
  opacity: 0;
  animation: riseIn 1.15s var(--ease) 1.1s forwards;
  overflow: hidden;
}

.hero__card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(244, 226, 161, 0.55), transparent 38%, transparent 62%, rgba(20, 210, 184, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__card-ornament {
  position: absolute;
  top: -1px;
  left: 50%;
  width: 64px;
  height: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  box-shadow: 0 0 16px rgba(244, 226, 161, 0.6);
}

.hero__card h2 {
  margin: 0 auto 1.35rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.8vw, 1.82rem);
  line-height: 1.18;
  letter-spacing: 0.004em;
  color: #f7fffc;
  text-shadow: 0 0 30px rgba(127, 243, 224, 0.18);
}

/* ---------- BotÃ³n ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.92rem 2rem;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  letter-spacing: 0.01em;
  color: #04231f;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease, filter 0.35s ease;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  transition: transform 0.35s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, #22e6c8 0%, #12c8b0 48%, #0aa38f 100%);
  box-shadow:
    0 14px 34px rgba(20, 210, 184, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 8px rgba(0, 60, 50, 0.25);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    0 20px 46px rgba(20, 210, 184, 0.46),
    0 0 40px rgba(127, 243, 224, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn--primary:hover svg {
  transform: translateX(4px);
}

.btn:active {
  transform: translateY(0) scale(0.99);
}

/* ---------- Iconos flotantes ---------- */

.hero__icons {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-top: 0.9rem;
  padding-left: 0.4rem;
  opacity: 0;
  animation: riseIn 1s var(--ease) 1.35s forwards;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid rgba(200, 240, 230, 0.34);
  background: radial-gradient(circle at 35% 25%, rgba(20, 210, 184, 0.16), rgba(6, 30, 27, 0.42));
  color: rgba(240, 255, 250, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.4s var(--ease), border-color 0.35s ease,
    box-shadow 0.35s ease, color 0.35s ease;
  flex: 0 0 auto;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
}

.icon-btn--sm {
  width: 46px;
  height: 46px;
}

.icon-btn--sm svg {
  width: 20px;
  height: 20px;
}

.hero__icons .icon-btn:nth-child(1) { transform: translateY(14px); }
.hero__icons .icon-btn:nth-child(2) { transform: translateY(-20px); }
.hero__icons .icon-btn:nth-child(3) { transform: translateY(22px); }
.hero__icons .icon-btn:nth-child(4) { transform: translateY(-4px); }

.hero__icons .icon-btn:hover {
  transform: translateY(-6px) scale(1.08);
  border-color: rgba(244, 226, 161, 0.9);
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(244, 226, 161, 0.2),
    0 14px 32px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(20, 210, 184, 0.35);
}

/* ---------- Scroll cue ---------- */

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  opacity: 0;
  animation: fadeIn 1.2s ease 1.8s forwards;
  transition: color 0.3s ease;
}

.hero__scroll:hover {
  color: var(--mint);
}

.hero__scroll-line {
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, transparent, rgba(127, 243, 224, 0.7));
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 1px;
  height: 14px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -16px; opacity: 0; }
  35% { opacity: 1; }
  100% { top: 46px; opacity: 0; }
}

/* =========================================================
   Secciones
   ========================================================= */

.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8.5rem) var(--pad-x);
  background:
    radial-gradient(60vw 40vh at 85% 0%, rgba(20, 210, 184, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(4, 17, 15, 0.62) 0%, rgba(4, 17, 15, 0.94) 30%, #04110f 72%);
}

.section--alt {
  background:
    radial-gradient(50vw 40vh at 12% 10%, rgba(217, 178, 95, 0.07), transparent 62%),
    radial-gradient(60vw 40vh at 90% 40%, rgba(20, 210, 184, 0.06), transparent 60%),
    linear-gradient(180deg, #04110f 0%, rgba(5, 21, 18, 0.95) 35%, #04110f 100%);
}

.section__inner {
  max-width: 1240px;
  margin: 0 auto;
}

.section__head {
  max-width: 720px;
  margin-bottom: clamp(2.2rem, 4vw, 3.4rem);
}

.section__kicker {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.section__kicker span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-right: 0.8rem;
  border-right: 1px solid rgba(217, 178, 95, 0.4);
  line-height: 1;
}

.section__title {
  margin: 0 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 4rem);
  line-height: 1;
  letter-spacing: 0.005em;
  color: #f5fffc;
  text-shadow: 0 0 34px rgba(127, 243, 224, 0.14);
}

.section__lead {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(0.96rem, 1.1vw, 1.06rem);
  line-height: 1.65;
  font-weight: 300;
  color: var(--ink-soft);
}

/* ---------- Reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal].is-visible:nth-child(2) { transition-delay: 0.08s; }
[data-reveal].is-visible:nth-child(3) { transition-delay: 0.16s; }
[data-reveal].is-visible:nth-child(4) { transition-delay: 0.24s; }
[data-reveal].is-visible:nth-child(5) { transition-delay: 0.32s; }
[data-reveal].is-visible:nth-child(6) { transition-delay: 0.4s; }

/* =========================================================
   GalerÃ­a
   ========================================================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 1.4vw, 1.25rem);
}

.g-card {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(217, 178, 95, 0.16);
  background: rgba(6, 27, 24, 0.6);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.g-card__media {
  position: relative;
  aspect-ratio: 3 / 3.9;
  overflow: hidden;
}

.g-card--tall .g-card__media {
  aspect-ratio: 3 / 3.9;
}

.g-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 12, 10, 0.28) 0%,
    transparent 26%,
    rgba(3, 12, 10, 0.5) 72%,
    rgba(3, 12, 10, 0.9) 100%
  );
  pointer-events: none;
}

.g-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s ease;
  filter: saturate(1.04) contrast(1.02);
}

.g-card:hover {
  border-color: rgba(217, 178, 95, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(20, 210, 184, 0.12);
}

.g-card:hover img {
  transform: scale(1.07);
}

.g-card__tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(244, 226, 161, 0.42);
  background: rgba(5, 24, 21, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

.g-card__action {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(127, 243, 224, 0.4);
  background: rgba(5, 24, 21, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--mint);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.g-card__action svg {
  width: 16px;
  height: 16px;
}

.g-card:hover .g-card__action {
  opacity: 1;
  transform: scale(1);
}

.g-card figcaption {
  position: relative;
  z-index: 2;
  margin-top: -3.2rem;
  padding: 1.5rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 17, 15, 0.86) 46%, rgba(4, 17, 15, 0.96) 100%);
}

.g-card figcaption strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: #f6fffc;
}

.g-card figcaption span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.tone-rose { filter: sepia(0.3) hue-rotate(-24deg) saturate(1.15) contrast(1.02) !important; }
.tone-moon { filter: hue-rotate(155deg) saturate(0.82) brightness(0.82) contrast(1.06) !important; }
.tone-cyan { filter: hue-rotate(18deg) saturate(1.2) brightness(1.02) contrast(1.05) !important; }

/* =========================================================
   Videos
   ========================================================= */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.v-card {
  border-radius: 20px;
  border: 1px solid rgba(127, 243, 224, 0.14);
  background: linear-gradient(180deg, rgba(8, 34, 30, 0.6), rgba(5, 22, 19, 0.7));
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.v-card:hover {
  border-color: rgba(127, 243, 224, 0.4);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5), 0 0 46px rgba(20, 210, 184, 0.12);
}

.v-card__poster {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 0;
  background: #061b18;
  overflow: hidden;
  cursor: pointer;
}

.v-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.9s var(--ease), filter 0.5s ease;
  filter: saturate(0.95) brightness(0.86);
}

.v-card__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 50%, transparent 30%, rgba(3, 12, 10, 0.55) 100%);
  transition: opacity 0.4s ease;
}

.v-card:hover .v-card__poster img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(0.95);
}

.v-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(244, 226, 161, 0.65);
  background: rgba(5, 28, 25, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f4fffc;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(127, 243, 224, 0.08), 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, background 0.4s ease;
}

.v-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.v-card:hover .v-card__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(20, 210, 184, 0.22);
  box-shadow: 0 0 0 12px rgba(127, 243, 224, 0.1), 0 12px 40px rgba(20, 210, 184, 0.35);
}

.v-card__duration {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(3, 12, 10, 0.7);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.v-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.v-card__body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.34rem;
  color: #f6fffc;
}

.v-card__body p {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* =========================================================
   Juegos
   ========================================================= */

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 1.6vw, 1.5rem);
}

.game-card {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  border-radius: 22px;
  border: 1px solid rgba(244, 226, 161, 0.16);
  background: linear-gradient(165deg, rgba(9, 38, 34, 0.82), rgba(5, 22, 19, 0.72));
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.5s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.9;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.game-card--rpg::before {
  background: radial-gradient(120% 90% at 90% 0%, rgba(20, 210, 184, 0.34), transparent 58%);
}
.game-card--sim::before {
  background: radial-gradient(120% 90% at 90% 0%, rgba(232, 154, 196, 0.3), transparent 58%);
}
.game-card--adv::before {
  background: radial-gradient(120% 90% at 90% 0%, rgba(120, 170, 255, 0.3), transparent 58%);
}

.game-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(244, 226, 161, 0.35), transparent 45%, transparent 60%, rgba(20, 210, 184, 0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.game-card:hover {
  border-color: rgba(244, 226, 161, 0.4);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.5), 0 0 44px rgba(20, 210, 184, 0.1);
}

.game-card__icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 1.3rem;
  border-radius: 16px;
  border: 1px solid rgba(244, 226, 161, 0.3);
  background: rgba(4, 18, 16, 0.35);
  color: var(--gold-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-card__icon svg {
  width: 30px;
  height: 30px;
}

.game-card__body {
  position: relative;
  z-index: 2;
}

.game-card__genre {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
}

.game-card__body h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.62rem;
  line-height: 1.05;
  color: #f7fffc;
}

.game-card__body p {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.game-card__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(217, 178, 95, 0.16);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  filter: drop-shadow(0 0 4px rgba(217, 178, 95, 0.4));
}

/* =========================================================
   MÃºsica
   ========================================================= */

.music-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.2rem, 2.4vw, 2.2rem);
  align-items: stretch;
}

.player {
  display: flex;
  gap: 1.35rem;
  padding: 1.35rem;
  border-radius: 24px;
  border: 1px solid rgba(217, 178, 95, 0.32);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(20, 210, 184, 0.14), transparent 55%),
    linear-gradient(160deg, rgba(9, 38, 34, 0.78), rgba(5, 22, 19, 0.7));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.player__art {
  position: relative;
  flex: 0 0 44%;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(244, 226, 161, 0.2);
}

.player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.05) brightness(0.92);
}

.player__sheen {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.16) 0%, transparent 38%),
    linear-gradient(0deg, rgba(3, 12, 10, 0.5), transparent 50%);
  pointer-events: none;
}

.player__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.player__label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.35rem;
}

.player__info h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.72rem;
  line-height: 1;
  color: #f7fffc;
}

.player__info p {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.player__controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.player__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(127, 243, 224, 0.22);
  color: var(--ink-soft);
  background: rgba(4, 18, 16, 0.4);
}

.player__btn svg {
  width: 14px;
  height: 14px;
}

.player__btn--main {
  width: 46px;
  height: 46px;
  border-color: rgba(244, 226, 161, 0.55);
  background: linear-gradient(135deg, #1fddc0, #0aa38f);
  color: #04231f;
  box-shadow: 0 8px 22px rgba(20, 210, 184, 0.35);
}

.player__btn--main svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 30px;
  opacity: 0.85;
}

.equalizer span {
  flex: 1;
  max-width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mint), rgba(20, 210, 184, 0.25));
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite alternate;
}

.equalizer span:nth-child(2n) { animation-duration: 1.5s; animation-delay: 0.12s; }
.equalizer span:nth-child(3n) { animation-duration: 0.85s; animation-delay: 0.24s; }
.equalizer span:nth-child(5n) { animation-duration: 1.8s; animation-delay: 0.06s; }
.equalizer span:nth-child(7n) { animation-duration: 0.7s; animation-delay: 0.3s; }

@keyframes eq {
  0% { transform: scaleY(0.18); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

.playlists {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pl-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(127, 243, 224, 0.14);
  background: linear-gradient(120deg, rgba(8, 34, 30, 0.62), rgba(5, 22, 19, 0.6));
  text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.35s ease,
    background 0.35s ease, box-shadow 0.35s ease;
}

.pl-card:hover {
  transform: translateX(6px);
  border-color: rgba(244, 226, 161, 0.42);
  background: linear-gradient(120deg, rgba(12, 48, 42, 0.72), rgba(6, 27, 24, 0.66));
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35), 0 0 26px rgba(20, 210, 184, 0.1);
}

.pl-card__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(244, 226, 161, 0.5);
  line-height: 1;
  transition: color 0.35s ease;
}

.pl-card:hover .pl-card__num {
  color: var(--gold-2);
}

.pl-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
}

.pl-card__body strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.22rem;
  color: #f5fffc;
}

.pl-card__body span {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.pl-card__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
  opacity: 0.45;
  transition: opacity 0.3s ease;
}

.pl-card__bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--mint), rgba(20, 210, 184, 0.25));
  transform: scaleY(0.35);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
}

.pl-card:hover .pl-card__bars {
  opacity: 1;
}

.pl-card:hover .pl-card__bars i {
  animation: eq 0.9s ease-in-out infinite alternate;
}

.pl-card__bars i:nth-child(2) { animation-delay: 0.15s; }
.pl-card__bars i:nth-child(3) { animation-delay: 0.3s; }
.pl-card__bars i:nth-child(4) { animation-delay: 0.42s; }

/* =========================================================
   Footer
   ========================================================= */

.footer {
  position: relative;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad-x) 2.5rem;
  text-align: center;
  background: linear-gradient(180deg, #04110f 0%, #030b09 100%);
  border-top: 1px solid rgba(217, 178, 95, 0.12);
}

.footer__sigil {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  color: var(--gold);
  opacity: 0.85;
  filter: drop-shadow(0 0 14px rgba(217, 178, 95, 0.35));
}

.footer__sigil svg {
  width: 100%;
  height: 100%;
}

.footer__brand {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.16em;
  color: #f4fffb;
}

.footer__brand span {
  color: var(--gold-2);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.6rem;
  margin-bottom: 1.6rem;
}

.footer__nav a {
  text-decoration: none;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.3s ease;
}

.footer__nav a:hover {
  color: var(--mint);
}

.footer__copy {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(214, 238, 232, 0.38);
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(2, 9, 8, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__figure {
  margin: 0;
  max-width: min(92vw, 900px);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid rgba(244, 226, 161, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.7), 0 0 60px rgba(20, 210, 184, 0.12);
}

.lightbox__figure figcaption {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}

.lightbox__close {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(127, 243, 224, 0.32);
  background: rgba(6, 27, 24, 0.6);
  color: var(--ink);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__close:hover {
  transform: rotate(90deg);
  border-color: var(--gold-2);
  background: rgba(20, 210, 184, 0.16);
}

/* =========================================================
   Fallbacks / utilidades
   ========================================================= */

.noscript,
.noscript p {
  position: relative;
  z-index: 80;
  padding: 1rem;
  text-align: center;
  background: #04110f;
  color: var(--ink);
}

.no-webgl {
  background: #04110f url('assets/img/elfa-bosque.jpg') no-repeat right center / auto 100% fixed;
}

.no-webgl #scene {
  display: none;
}

.no-webgl .veil {
  background: linear-gradient(90deg, rgba(3, 12, 10, 0.92) 0%, rgba(3, 12, 10, 0.72) 42%, rgba(3, 12, 10, 0.2) 100%);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1080px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .video-grid,
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card:last-child { grid-column: span 2; }
  .music-layout { grid-template-columns: 1fr; }
  .player { max-width: 620px; }
}

@media (max-width: 820px) {
  .hero {
    align-items: flex-end;
    padding-top: 14vh;
    padding-bottom: 6rem;
  }

  .hero__content {
    width: 100%;
    gap: 1.05rem;
  }

  .veil {
    background:
      radial-gradient(80% 60% at 50% 0%, rgba(3, 12, 10, 0.15), transparent 60%),
      linear-gradient(180deg, rgba(3, 12, 10, 0.15) 0%, rgba(3, 12, 10, 0.55) 45%, rgba(3, 12, 10, 0.9) 100%);
  }

  .hero__card {
    width: 100%;
  }

  .hero__icons {
    justify-content: flex-start;
  }

  .video-grid,
  .game-grid { grid-template-columns: 1fr; }
  .game-card:last-child { grid-column: auto; }

  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; }

  .hero__scroll { display: none; }

  .footer__nav { gap: 0.5rem 1.1rem; }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 18vh;
  }

  .hero__title {
    font-size: clamp(2.9rem, 15vw, 4.4rem);
  }

  .pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
  }
  .pill { width: 100%; padding: 0.7rem 0.8rem; font-size: 0.74rem; }

  .hero__card { padding: 1.35rem 1.15rem; border-radius: 22px; }
  .hero__card h2 { font-size: 1.25rem; }

  .hero__icons { gap: 0.1rem; }
  .icon-btn { width: 50px; height: 50px; }
  .icon-btn--sm { width: 40px; height: 40px; }

  .gallery { grid-template-columns: 1fr; }
  .player { flex-direction: column; }
  .player__art { aspect-ratio: 16 / 10; }
  .section__title { font-size: clamp(2rem, 9vw, 2.8rem); }
}

@media (hover: none) {
  .cursor-glow { display: none; }
  .g-card__action { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero__eyebrow,
  .hero__title-line,
  .hero__subtitle,
  .pills,
  .hero__card,
  .hero__icons,
  .hero__scroll {
    opacity: 1;
    transform: none;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .equalizer span,
  .hero__scroll-line::after {
    animation: none;
    transform: scaleY(0.6);
  }
}
