/* ==========================================================================
   ANTAGONIST ECO — ETHEREAL SHOEGAZE / LO-FI FLASH DESIGN SYSTEM
   Clonado de antagonist-eco-worker & antagonist-eco-hub
   Optimizado 100% Mobile-First & WhatsApp In-App WebView (iOS / Android)
   ========================================================================== */

:root {
  --void: #030306;
  --canvas: #05060a;
  --raw-dark: #08090f;
  --card-bg: #0d0f17;
  --panel-border: #1c1f2e;
  --subtle-border: #272b3f;
  --ghost-white: #f4f6fb;
  --silver-mist: #9da3b4;
  --gloomy-slate: #60667a;
  --spectral-cyan: #8ee0ea;
  --hazy-violet: #bca6f0;
  --blood-muted: #b82e3d;
  --tape-warm: #d4ab59;
  --clay-warm: #c8825b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--canvas);
  color: #d6d9e0;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
}

/* Prevención de auto-zoom en WhatsApp iOS WebView (inputs >= 16px en móvil) */
input,
select,
textarea {
  font-size: 16px !important;
  touch-action: manipulation;
}

@media (min-width: 640px) {
  input,
  select,
  textarea {
    font-size: 13px !important;
  }
}

button,
a {
  touch-action: manipulation;
}

/* Capa atmosférica Shoegaze */
.film-grain {
  background-color: #05060a;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(142, 224, 234, 0.055) 0%, transparent 58%),
    radial-gradient(circle at 95% 85%, rgba(188, 166, 240, 0.04) 0%, transparent 52%),
    radial-gradient(circle at 8% 45%, rgba(212, 171, 89, 0.03) 0%, transparent 45%),
    linear-gradient(rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.98));
}

/* Grano analógico SVG superpuesto (no intercepta eventos táctiles) */
.noise-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.036;
  z-index: 99;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Textos Halation Shoegaze */
.halation-glow {
  text-shadow:
    0 0 20px rgba(244, 246, 251, 0.38),
    0 0 42px rgba(142, 224, 234, 0.2);
}

.halation-subtle {
  text-shadow: 0 0 12px rgba(244, 246, 251, 0.24);
}

/* Tarjetas Ethereal Glass */
.ethereal-card {
  background: rgba(13, 15, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.ethereal-card-interactive:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 255, 255, 0.05);
}

/* Cinta de carrocero / Editorial Tape */
.editorial-tape {
  background: rgba(212, 171, 89, 0.14);
  color: #f4f6fb;
  border: 1px solid rgba(212, 171, 89, 0.38);
  letter-spacing: 0.14em;
}

/* Sello de laboratorio / Lab Stamp */
.lab-stamp {
  border: 1px dashed rgba(255, 255, 255, 0.35);
  color: #f4f6fb;
  letter-spacing: 0.15em;
}

/* Botón sobreexpuesto Lo-Fi Flash (Primario) */
.btn-radiant {
  background: #ffffff;
  color: #030306;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  transition: all 0.2s ease;
}

.btn-radiant:hover:not(:disabled) {
  background: #f0f3fa;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.52);
  transform: translateY(-1px);
}

.btn-radiant:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
}

.btn-radiant:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

/* Botón secundario fantasma */
.btn-ghost {
  background: #08090f;
  border: 1px solid #272b3f;
  color: #d6d9e0;
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

/* Tarjetas de decisión RSVP ("Asistiré" / "No podré ir") */
.rsvp-choice {
  background: #08090f;
  border: 1px solid #272b3f;
  color: #9da3b4;
  transition: all 0.2s ease;
}

.rsvp-choice:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f4f6fb;
}

.rsvp-choice.is-yes {
  background: rgba(142, 224, 234, 0.11);
  border-color: #8ee0ea;
  color: #f4f6fb;
  box-shadow: 0 0 22px rgba(142, 224, 234, 0.16), inset 0 0 12px rgba(142, 224, 234, 0.08);
}

.rsvp-choice.is-no {
  background: rgba(184, 46, 61, 0.16);
  border-color: rgba(248, 113, 113, 0.7);
  color: #fecaca;
  box-shadow: 0 0 18px rgba(184, 46, 61, 0.15);
}

/* Selector de acompañantes */
.guest-pill {
  background: #08090f;
  border: 1px solid #272b3f;
  color: #9da3b4;
  transition: all 0.18s ease;
}

.guest-pill.is-selected {
  background: #f4f6fb;
  border-color: #ffffff;
  color: #030306;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.25);
}

/* Ticket / Pase perforado */
.ticket-perforation {
  position: relative;
  border-top: 1px dashed rgba(255, 255, 255, 0.22);
}

.ticket-perforation::before,
.ticket-perforation::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 9999px;
  background: #05060a;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ticket-perforation::before {
  left: -25px;
}

.ticket-perforation::after {
  right: -25px;
}

/* Retrato Lo-Fi Flash */
.lofi-portrait {
  filter: contrast(112%) brightness(97%) saturate(86%);
}

/* Scrollbars sutiles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #05060a;
}
::-webkit-scrollbar-thumb {
  background: #1c1f2e;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #373c54;
}

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

.animate-reveal {
  animation: fadeSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
