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

:root {
  --carbon: #0E0E10;
  --llama: #FF4D2E;
  --galleta: #F2B544;
  --hueso: #F5F2EC;
  --ceniza: #8A8A93;
  --cyan: #1FE0D0;
}

html, body { height: 100%; }

body {
  background: var(--carbon);
  color: var(--hueso);
  font-family: 'Archivo', system-ui, sans-serif;
  overflow-x: hidden;
  position: relative;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.55) 100%);
  z-index: 3;
}

.embers { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ember { position: absolute; bottom: -12px; border-radius: 50%; opacity: 0; }
@keyframes rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  12%  { opacity: 0.9; }
  100% { transform: translateY(-105vh) scale(0.2); opacity: 0; }
}

/* ===== Layout dos columnas ===== */
.layout {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(36px, 8vw, 110px);
  padding: clamp(40px, 6vw, 90px);
}
.col-brand { text-align: center; flex: 0 1 auto; }
.col-verse {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; flex: 0 1 auto; max-width: 24ch;
}
.verse-bar {
  width: 44px; height: 3px;
  background: var(--llama); border-radius: 2px;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.verse {
  font-family: 'Archivo', sans-serif; font-weight: 400;
  font-size: clamp(17px, 2.4vw, 28px);
  line-height: 1.7; color: var(--hueso); letter-spacing: 0.01em;
}

@media (max-width: 820px) {
  .layout { flex-direction: column; gap: 44px; }
}

/* ===== Glitch ===== */
.glitch {
  position: relative; display: inline-block;
  font-family: 'Anton', sans-serif;
  font-size: clamp(52px, 13vw, 128px);
  letter-spacing: 0.04em; line-height: 1;
  color: var(--llama); text-transform: uppercase;
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.glitch::before { color: var(--cyan); }
.glitch::after { color: var(--galleta); }

.tagline {
  font-weight: 500; font-size: clamp(13px, 2.6vw, 17px);
  color: var(--hueso); letter-spacing: 0.22em;
  margin-top: clamp(16px, 3vw, 26px);
}
.intrigue {
  font-weight: 400; font-size: clamp(12px, 2.2vw, 15px);
  color: var(--ceniza); letter-spacing: 0.08em;
  margin-top: clamp(24px, 4vw, 38px);
}

/* ===== Boton flotante redondo (FAB) ===== */
.cta-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 6;
  height: 60px; min-width: 60px;
  border: none; border-radius: 999px;
  background: var(--llama); color: var(--carbon);
  cursor: pointer;
  display: flex; align-items: center;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(255,77,46,0.32);
  transition: box-shadow .25s, transform .2s;
}
.cta-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255,77,46,0.45); }
.fab-icon { width: 24px; height: 24px; margin: 0 18px; flex-shrink: 0; }
.fab-label {
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 14px;
  white-space: nowrap;
  max-width: 0; opacity: 0; padding-right: 0;
  transition: max-width .35s ease, opacity .25s ease, padding-right .35s ease;
}
.cta-fab:hover .fab-icon, .cta-fab:focus-visible .fab-icon { margin-right: 8px; }
.cta-fab:hover .fab-label, .cta-fab:focus-visible .fab-label { max-width: 280px; opacity: 1; padding-right: 22px; }

/* ===== Sound toggle ===== */
.sound-toggle {
  position: fixed; top: 20px; right: 20px; z-index: 5;
  width: 40px; height: 40px; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0.55; transition: opacity .2s;
}
.sound-toggle:hover { opacity: 1; }
.sound-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.sound-bars i { width: 3px; height: 6px; background: var(--hueso); border-radius: 2px; transition: background .2s; }
.sound-toggle[aria-pressed="true"] .sound-bars i { background: var(--llama); }
@media (prefers-reduced-motion: no-preference) {
  body.sound-on .sound-bars i:nth-child(1) { animation: sb .9s ease-in-out infinite; }
  body.sound-on .sound-bars i:nth-child(2) { animation: sb .9s ease-in-out .15s infinite; }
  body.sound-on .sound-bars i:nth-child(3) { animation: sb .9s ease-in-out .3s infinite; }
}
@keyframes sb { 0%, 100% { height: 6px; } 50% { height: 16px; } }

/* ===== Glitch keyframes ===== */
@media (prefers-reduced-motion: no-preference) {
  .glitch::before { animation: g-before 3.2s infinite steps(60); }
  .glitch::after { animation: g-after 3.7s infinite steps(60); }
}
@keyframes g-before {
  0%, 89%, 97%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  90% { clip-path: inset(14% 0 62% 0); transform: translate(-4px); }
  92% { clip-path: inset(53% 0 18% 0); transform: translate(4px); }
  94% { clip-path: inset(8% 0 76% 0); transform: translate(-2px); }
  96% { clip-path: inset(40% 0 38% 0); transform: translate(3px); }
}
@keyframes g-after {
  0%, 87%, 98%, 100% { clip-path: inset(0 0 100% 0); transform: translate(0); }
  88% { clip-path: inset(68% 0 8% 0); transform: translate(4px); }
  91% { clip-path: inset(24% 0 52% 0); transform: translate(-4px); }
  93% { clip-path: inset(46% 0 30% 0); transform: translate(3px); }
  95% { clip-path: inset(4% 0 84% 0); transform: translate(-3px); }
}
@media (prefers-reduced-motion: reduce) {
  .glitch::before, .glitch::after { display: none; }
}

/* ===== Modal de captura ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(8, 8, 9, 0.84);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  position: relative; width: 100%; max-width: 380px;
  background: #1C1C20;
  border: 1px solid rgba(255, 77, 46, 0.25);
  border-radius: 16px;
  padding: 32px 26px 28px;
}
.modal-close {
  position: absolute; top: 12px; right: 14px;
  background: transparent; border: none;
  color: var(--ceniza); font-size: 26px; line-height: 1;
  cursor: pointer; transition: color .2s;
}
.modal-close:hover { color: var(--hueso); }
.modal-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 21px; color: var(--hueso); line-height: 1.2; }
.modal-sub { font-size: 13px; color: var(--ceniza); margin: 8px 0 22px; line-height: 1.5; }
.field { display: block; margin-bottom: 15px; }
.field span { display: block; font-size: 12px; color: var(--ceniza); margin-bottom: 6px; letter-spacing: 0.03em; }
.field em { font-style: normal; opacity: 0.65; }
.field select, .field input {
  width: 100%; font-family: 'Archivo', sans-serif; font-size: 15px; color: var(--hueso);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(245, 242, 236, 0.14);
  border-radius: 9px; padding: 11px 13px; outline: none; transition: border-color .2s;
}
.field select:focus, .field input:focus { border-color: var(--llama); }
.field select option { background: #1C1C20; color: var(--hueso); }
.modal-submit {
  width: 100%; margin-top: 6px;
  font-family: 'Archivo', sans-serif; font-weight: 600; font-size: 15px;
  color: var(--carbon); background: var(--llama);
  border: none; border-radius: 999px; padding: 13px; cursor: pointer;
  transition: transform .2s, opacity .2s;
}
.modal-submit:hover { transform: translateY(-1px); }
.modal-submit:disabled { opacity: 0.6; cursor: default; }
.modal-success { text-align: center; padding: 20px 0; }
.success-mark {
  width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%; border: 2px solid var(--llama);
  color: var(--llama); font-size: 26px; line-height: 52px; text-align: center;
}
.success-text { font-size: 16px; color: var(--hueso); }