@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400&display=swap');

:root {
  --void:           #030308;
  --indigo:         #4a47d4;
  --magenta:        #c026a8;
  --white-core:     #f8f4ff;
  --text-primary:   #e8e4f8;
  --text-secondary: #8882b8;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* ── CURSOR ── */
#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white-core);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(248,244,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

/* ── CANVAS ── */
#webgl-canvas {
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

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

/* ── SECTIONS — all centered ── */
section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  z-index: 10;
}

/* ── SECTION 0: ENTRY ── */
.wordmark-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  user-select: none;
}

.wordmark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(3.5rem, 12vw, 9rem);
  letter-spacing: -0.02em;
  color: var(--white-core);
  display: flex;
  line-height: 1;
}

.wordmark .char {
  display: inline-block;
  opacity: 0;
  filter: blur(40px);
  transform: scale(0.6);
  will-change: filter, opacity, transform;
}

.wordmark-sub {
  font-size: clamp(0.65rem, 1.4vw, 0.85rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  color: var(--text-secondary);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}
.scroll-hint::after {
  content: '';
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--text-secondary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1;   }
}

/* ── SECTION 1: RINGS ── */
.section-1-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  max-width: 56ch;
}

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.section-label span {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
}

.headline {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white-core);
}
.headline .word { display: inline-block; margin-right: 0.22em; }
.headline .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(60px);
  will-change: transform, opacity;
}

.body-text {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 46ch;
  opacity: 0;
}

/* ── SECTION 2: FINAL ── */
.final-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
}

.final-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(20px);
}

.final-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white-core);
  opacity: 0;
  transform: translateY(20px);
}

.final-sub {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--text-secondary);
  max-width: 38ch;
  line-height: 1.7;
  opacity: 0;
  transform: translateY(20px);
}

/* ── WHATSAPP BUTTON ── */
.whatsapp-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.2rem;
  border-radius: 100px;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: #e8fef0;
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: none;
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}
.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: rgba(37, 211, 102, 0.7);
  transform: translateY(-2px) scale(1.02) !important;
}

.whatsapp-btn__glow {
  position: absolute;
  inset: -14px;
  border-radius: 100px;
  background: radial-gradient(ellipse at center, rgba(37,211,102,0.18) 0%, transparent 70%);
  animation: glowPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.4; transform: scale(1);    }
  50%       { opacity: 1;   transform: scale(1.14); }
}

.whatsapp-btn__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(37,211,102,0.6));
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .wordmark       { font-size: clamp(2.2rem, 11vw, 3rem); }
  .headline       { font-size: clamp(1.65rem, 6.5vw, 2.2rem); }
  .final-headline { font-size: clamp(1.9rem, 8.5vw, 2.4rem); }
  .body-text,
  .final-sub      { font-size: 0.82rem; }
  .whatsapp-btn   { font-size: 0.78rem; padding: 0.8rem 1.7rem; }
}

/* ── CURSOR: ocultar en touch (hover: none detecta dispositivos táctiles) ── */
@media (hover: none) {
  body          { cursor: auto; }
  #cursor,
  #cursor-ring  { display: none; }
}

/* ── SECCIÓN 1: altura extra para transición lenta ── */
#section-1 {
  min-height: 180vh;
  justify-content: center;
}

/* ── SECCIÓN 2: fondo transparente, las líneas WebGL son el background ── */
#section-2 {
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
  background: transparent;
  position: relative;
}

#section-2 .final-inner {
  position: relative;
  z-index: 2;
}