/* ============================================================
   INVITACIÓN FIESTA – NEOMORFISMO OSCURO NEÓN
   Paleta: Negro · Fucsia/Magenta · Amarillo Neón · Morado
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Metal+Mania&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- variables de color neón oscuro ---------- */
:root {
  --skin-base: #000000;
  /* negro profundo – base de tarjeta */
  --skin-light: #1a1a1a;
  /* negro con algo de luz */
  --skin-shadow: #3a003a;
  /* morado oscuro – sombras */
  --skin-deep: #260026;
  /* morado muy oscuro */
  --skin-mid: #000000;
  /* negro puro – fondo body */
  --accent: #ff00cc;
  /* fucsia/magenta neón – acento principal */
  --accent-light: #ff66e0;
  /* fucsia claro */
  --accent-dark: #aa0088;
  /* fucsia oscuro */
  --text-primary: #ffffff;
  /* blanco puro */
  --text-secondary: #ff66e0;
  /* fucsia claro para texto secundario */
  --text-muted: #cc55bb;
  /* fucsia apagado */
  --gold: #ffe600;
  /* amarillo neón – acento secundario */
  --gold-light: #fff176;
  /* amarillo neón claro */

  --neu-shadow-dark: rgba(170, 0, 136, 0.6);
  /* sombra magenta oscura */
  --neu-shadow-light: rgba(255, 0, 204, 0.15);
  /* brillo magenta sutil */
  --neu-inset-dark: rgba(60, 0, 60, 0.8);
  --neu-inset-light: rgba(255, 0, 204, 0.08);

  --radius-card: 28px;
  --radius-inner: 18px;
  --radius-sm: 12px;
}

/* ---------- reset y base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #000000;
  background-image:
    radial-gradient(ellipse at 15% 15%, rgba(255, 0, 204, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 85%, rgba(170, 0, 136, 0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(255, 230, 0, 0.06) 0%, transparent 45%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ---------- tarjeta principal ---------- */
.card {
  width: min(720px, 100%);
  background: var(--skin-base);
  border-radius: var(--radius-card);
  padding: 48px 40px;
  box-shadow:
    12px 12px 30px var(--neu-shadow-dark),
    -12px -12px 30px var(--neu-shadow-light),
    0 0 0 1px rgba(255, 0, 204, 0.3) inset,
    0 0 60px rgba(255, 0, 204, 0.08);
  position: relative;
  overflow: hidden;
}

/* micro-textura piel */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.card>* {
  position: relative;
  z-index: 1;
}

/* ---------- separador decorativo ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}

.divider-icon {
  font-size: 18px;
  color: var(--gold);
  opacity: 0.9;
  text-shadow: 0 0 8px var(--gold);
}

/* ---------- imagen de encabezado ---------- */
.header-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.header-image-pic {
  display: block;
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-inner);

  animation: headerImgFadeIn 0.8s ease both;
}

@keyframes headerImgFadeIn {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- header / título ---------- */
.header {
  text-align: center;
  margin-bottom: 8px;
}

.header-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--skin-base);
  padding: 6px 18px;
  border-radius: 50px;
  box-shadow:
    4px 4px 10px var(--neu-shadow-dark),
    -4px -4px 10px var(--neu-shadow-light),
    0 0 0 1px rgba(255, 0, 204, 0.4) inset,
    0 0 14px rgba(255, 0, 204, 0.2);
  margin-bottom: 20px;
}

.event-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;       /* Bebas Neue solo tiene un peso */
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.2),
    2px 2px 0px rgba(170, 0, 136, 0.6);
}

.event-title span {
  font-family: 'Metal Mania', cursive;
  color: var(--accent);
  font-style: normal;
  display: block;
  font-size: clamp(2.8rem, 8vw, 5rem);
  text-shadow:
    0 0 12px var(--accent),
    0 0 30px rgba(255, 0, 204, 0.5),
    2px 2px 0px var(--gold);
  letter-spacing: 3px;
}

.event-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- descripción ---------- */
.description {
  background: var(--skin-base);
  border-radius: var(--radius-inner);
  padding: 24px 28px;
  box-shadow:
    6px 6px 14px var(--neu-shadow-dark),
    -6px -6px 14px var(--neu-shadow-light),
    0 0 0 1px rgba(255, 248, 243, 0.4) inset;
  text-align: center;
}

.description p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
}

.description strong {
  color: var(--accent);
  font-weight: 600;
}

/* ---------- sección spotify ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-label .icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--skin-base);
  box-shadow:
    4px 4px 10px var(--neu-shadow-dark),
    -4px -4px 10px var(--neu-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.section-label h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.section-label p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.spotify-widget {
  border-radius: var(--radius-inner);
  overflow: hidden;
  box-shadow:
    8px 8px 20px var(--neu-shadow-dark),
    -8px -8px 20px var(--neu-shadow-light);
}

.spotify-widget iframe {
  display: block;
  border: none;
}

/* ---------- roster de personajes ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.roster-slot {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  background: var(--skin-base);
  box-shadow:
    5px 5px 14px var(--neu-shadow-dark),
    -5px -5px 14px var(--neu-shadow-light),
    inset 2px 2px 5px var(--neu-inset-light),
    inset -2px -2px 5px var(--neu-inset-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.roster-slot:hover {
  box-shadow:
    2px 2px 6px var(--neu-shadow-dark),
    -2px -2px 6px var(--neu-shadow-light),
    inset 5px 5px 14px var(--neu-inset-dark),
    inset -5px -5px 14px var(--neu-inset-light);
  transform: scale(0.97);
}

.roster-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.roster-slot:hover img {
  transform: scale(1.05);
}

.roster-slot.empty {
  flex-direction: column;
  gap: 6px;
}

.roster-slot.empty::after {
  content: '?';
  font-size: 2rem;
  font-weight: 700;
  color: var(--skin-shadow);
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.roster-slot.empty .slot-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

/* anillo decorativo del slot activo */
.roster-slot.has-image::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(255, 0, 204, 0.5),
    0 0 10px rgba(255, 0, 204, 0.2);
  z-index: 2;
  pointer-events: none;
}

/* ---------- mapa ---------- */
.map-container {
  border-radius: var(--radius-inner);
  overflow: hidden;
  box-shadow:
    8px 8px 22px var(--neu-shadow-dark),
    -8px -8px 22px var(--neu-shadow-light);
}

.map-container iframe {
  display: block;
  border: none;
  width: 100%;
  height: 280px;
}

/* ---------- cuenta regresiva ---------- */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.countdown-date {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.countdown-units {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}

.countdown-num {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: var(--skin-base);
  box-shadow:
    6px 6px 16px var(--neu-shadow-dark),
    -6px -6px 16px var(--neu-shadow-light),
    inset 2px 2px 4px var(--neu-inset-light),
    inset -2px -2px 4px rgba(165, 140, 128, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  transition: box-shadow 0.3s ease;
}

.countdown-num::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--skin-shadow);
  opacity: 0.5;
}

.countdown-lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  font-weight: 500;
}

/* pulso en los números */
@keyframes numPulse {

  0%,
  100% {
    color: var(--text-primary);
  }

  50% {
    color: var(--accent);
  }
}

.countdown-num.tick {
  animation: numPulse 0.4s ease;
}

/* ---------- footer ---------- */
.card-footer {
  text-align: center;
  margin-top: 8px;
}

.card-footer p {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.card-footer .hearts {
  font-size: 18px;
  color: var(--accent-light);
  margin-bottom: 8px;
}

/* ---------- accesorio: estrella decorativa ---------- */
.deco-star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 0, 204, 0.25), transparent);
  box-shadow:
    0 0 20px rgba(255, 0, 204, 0.3),
    0 0 40px rgba(255, 0, 204, 0.1);
  pointer-events: none;
}

.deco-star.s1 {
  width: 60px;
  height: 60px;
  top: -20px;
  right: -20px;
  opacity: 0.6;
}

.deco-star.s2 {
  width: 40px;
  height: 40px;
  bottom: 40px;
  left: -15px;
  opacity: 0.5;
}

.deco-star.s3 {
  width: 25px;
  height: 25px;
  top: 120px;
  right: -10px;
  opacity: 0.4;
}

/* ---------- responsivo ---------- */
@media (max-width: 480px) {
  .card {
    padding: 32px 20px;
  }

  .countdown-units {
    gap: 10px;
  }

  .countdown-num {
    width: 64px;
    height: 64px;
    font-size: 1.6rem;
  }

  .countdown-unit {
    min-width: 64px;
  }

  .roster-grid {
    gap: 10px;
  }
}