/* ═══════════════════════════════════════════════════════════════════
   main.css — Bocatería Mediterráneo · Infierno Festival 2026
   ═══════════════════════════════════════════════════════════════════ */

/* ─── GOOGLE FONTS ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Rajdhani:wght@400;500;600;700&display=swap');

/* ─── VARIABLES CSS ─────────────────────────────────────────────────────────── */
:root {
  --verde:      #00FF41;
  --naranja:    #FF4500;
  --amarillo:   #FFD700;
  --negro:      #000000;
  --blanco:     #FFFFFF;
  --gris:       #AAAAAA;
  --card-bg:    rgba(0, 0, 0, 0.85);

  --glow-verde: 0 0 10px #00FF41, 0 0 20px #00FF41, 0 0 40px rgba(0,255,65,0.4);
  --glow-naranja: 0 0 10px #FF4500, 0 0 20px #FF4500;
  --border-verde: 0 0 8px #00FF41, inset 0 0 8px rgba(0,255,65,0.1);

  --font-titulo: 'Anton', Impact, sans-serif;
  --font-cuerpo: 'Rajdhani', 'Barlow Condensed', sans-serif;
}

/* ─── RESET Y BASE ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-cuerpo);
  background-color: var(--negro);
  color: var(--blanco);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── SCROLLBAR ─────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--verde); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #00cc33; box-shadow: var(--glow-verde); }

/* ─── FONDO GLOBAL CON IMAGEN + OVERLAY ─────────────────────────────────────── */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('https://infiernofestival.com/_astro/bg.SEF7d3i2_Z20aBWG.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Fallback si no carga la imagen externa */
  background-color: #0a0000;
}

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: linear-gradient(135deg, #1a0000 0%, #000000 25%, #001a00 50%, #000000 75%, #1a0500 100%);
  background-size: 400% 400%;
  animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.78);
}

/* ─── TIPOGRAFÍA GLOBAL ─────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-titulo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p, span, li, label {
  font-family: var(--font-cuerpo);
  font-weight: 500;
  line-height: 1.6;
}

a { color: var(--verde); text-decoration: none; transition: color 0.2s; }
a:hover { color: #fff; }

/* ─── MANTENIMIENTO OVERLAY ─────────────────────────────────────────────────── */
.mantenimiento-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.mantenimiento-overlay h1 {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 8vw, 5rem);
  color: var(--verde);
  text-shadow: var(--glow-verde);
  margin-bottom: 1rem;
}
.mantenimiento-overlay p {
  font-size: 1.2rem;
  color: var(--gris);
  max-width: 500px;
}

/* ─── TICKER / MARQUEE ──────────────────────────────────────────────────────── */
.ticker-wrapper {
  background: rgba(0,0,0,0.9);
  border-top: 1px solid var(--verde);
  border-bottom: 1px solid var(--verde);
  overflow: hidden;
  padding: 6px 0;
  width: 100%;
}

.ticker-content {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 35s linear infinite;
}

.ticker-content span {
  font-family: var(--font-titulo);
  font-size: 0.85rem;
  color: var(--verde);
  text-shadow: 0 0 8px var(--verde);
  letter-spacing: 0.15em;
  padding-right: 60px;
}

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── HEADER ────────────────────────────────────────────────────────────────── */
#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.header-logo .nombre {
  font-family: var(--font-titulo);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--verde);
  text-shadow: var(--glow-verde);
  letter-spacing: 0.05em;
}

.header-logo .subtitulo {
  font-family: var(--font-cuerpo);
  font-size: 0.75rem;
  color: var(--naranja);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navegación principal */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.header-nav a {
  font-family: var(--font-titulo);
  font-size: 1rem;
  color: var(--blanco);
  letter-spacing: 0.1em;
  transition: color 0.2s, text-shadow 0.2s;
}

.header-nav a:hover {
  color: var(--verde);
  text-shadow: 0 0 8px var(--verde);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--verde);
  transition: all 0.3s;
  box-shadow: 0 0 6px var(--verde);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav */
.mobile-nav {
  display: none;
  background: rgba(0,0,0,0.97);
  border-top: 1px solid rgba(0,255,65,0.3);
  padding: 1.5rem 2rem;
}

.mobile-nav.open { display: block; }

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav a {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  color: var(--verde);
  letter-spacing: 0.1em;
}

/* ─── AVISOS BANNER ─────────────────────────────────────────────────────────── */
.aviso-banner {
  padding: 0.8rem 2rem;
  text-align: center;
  font-family: var(--font-cuerpo);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 100;
}

.aviso-banner.normal {
  background: rgba(0, 255, 65, 0.15);
  border-bottom: 2px solid var(--verde);
  color: var(--verde);
}

.aviso-banner.alerta {
  background: rgba(255, 69, 0, 0.2);
  border-bottom: 2px solid var(--naranja);
  color: var(--naranja);
}

.aviso-banner .cerrar-aviso {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

.aviso-banner .cerrar-aviso:hover { opacity: 1; }

/* ─── HERO / CUENTA ATRÁS ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(2.5rem, 8vw, 7rem);
  color: var(--verde);
  text-shadow: var(--glow-verde);
  line-height: 1;
  margin-bottom: 1rem;
  animation: neonFlicker 4s infinite;
}

@keyframes neonFlicker {
  0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
    text-shadow: var(--glow-verde);
    opacity: 1;
  }
  20%, 24%, 55% {
    text-shadow: none;
    opacity: 0.85;
  }
}

.hero-subtitulo {
  font-family: var(--font-titulo);
  font-size: clamp(1rem, 3vw, 1.8rem);
  color: var(--naranja);
  letter-spacing: 0.15em;
  margin-bottom: 3rem;
  text-shadow: var(--glow-naranja);
}

/* Countdown cards */
.countdown-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.countdown-card {
  background: var(--card-bg);
  border: 1px solid var(--verde);
  box-shadow: var(--border-verde);
  border-radius: 8px;
  padding: 1.2rem 1.5rem;
  min-width: 90px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.countdown-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px var(--verde), inset 0 0 20px rgba(0,255,65,0.15);
}

.countdown-number {
  font-family: var(--font-titulo);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--verde);
  text-shadow: var(--glow-verde);
  line-height: 1;
  display: block;
  transition: transform 0.2s;
}

.countdown-label {
  font-family: var(--font-cuerpo);
  font-size: 0.7rem;
  color: var(--gris);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.4rem;
  display: block;
}

/* Mensaje cuando llega a cero */
.countdown-finished {
  display: none;
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 6vw, 4rem);
  color: var(--amarillo);
  text-shadow: 0 0 20px var(--amarillo), 0 0 40px var(--naranja);
  animation: celebrate 1s ease infinite alternate;
}

@keyframes celebrate {
  from { transform: scale(1); }
  to   { transform: scale(1.05); }
}

/* Botón CTA */
.btn-cta {
  font-family: var(--font-titulo);
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--verde);
  border: 2px solid var(--verde);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  box-shadow: var(--border-verde);
  text-decoration: none;
  display: inline-block;
}

.btn-cta:hover {
  background: var(--verde);
  color: var(--negro);
  text-shadow: none;
  box-shadow: 0 0 20px var(--verde);
}

/* ─── SECCIÓN SOBRE NOSOTROS ────────────────────────────────────────────────── */
#sobre-nosotros {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.seccion-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--verde);
  text-shadow: var(--glow-verde);
  margin-bottom: 0.5rem;
}

.seccion-subtitulo {
  font-size: 1rem;
  color: var(--gris);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.sobre-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,255,65,0.4);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--border-verde);
}

.sobre-card p {
  font-size: 1.15rem;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.sobre-card p:last-child { margin-bottom: 0; }

.iconos-concepto {
  font-size: 2.5rem;
  margin-top: 1.5rem;
  letter-spacing: 0.5rem;
}

/* ─── SECCIÓN MENÚ ──────────────────────────────────────────────────────────── */
#menu {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.menu-header {
  text-align: center;
  margin-bottom: 3rem;
}

.menu-estado-badge {
  display: inline-block;
  font-family: var(--font-titulo);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.menu-estado-badge.bloqueado {
  background: rgba(255,0,0,0.2);
  border: 1px solid #ff0000;
  color: #ff6666;
}

.menu-estado-badge.desbloqueado {
  background: rgba(0,255,65,0.2);
  border: 1px solid var(--verde);
  color: var(--verde);
}

/* Separador de categoría */
.categoria-seccion {
  margin-bottom: 4rem;
}

.categoria-titulo {
  font-family: var(--font-titulo);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--blanco);
  border-left: 4px solid var(--verde);
  padding-left: 1rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(0,255,65,0.3);
}

.categoria-titulo .emoji { margin-right: 0.5rem; }

/* Grid de items */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Card de producto */
.item-card {
  background: var(--card-bg);
  border: 1px solid rgba(0,255,65,0.3);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.item-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,255,65,0.2);
}

/* Imagen del producto */
.item-foto-wrapper {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #111;
}

.item-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s;
}

.item-foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, #111, #0a1a00);
  color: rgba(0,255,65,0.3);
}

/* Estado CENSURADO */
.item-card.censurado .item-foto {
  filter: blur(8px) brightness(0.3);
}

.item-card.censurado .item-foto-placeholder {
  filter: blur(4px) brightness(0.4);
}

.censura-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(200, 0, 0, 0.15);
  z-index: 2;
}

.censura-overlay .candado { font-size: 2.5rem; }

.sello-clasificado {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.sello-clasificado span {
  font-family: var(--font-titulo);
  font-size: 1.8rem;
  color: rgba(255, 0, 0, 0.7);
  border: 3px solid rgba(255, 0, 0, 0.5);
  padding: 0.3rem 1rem;
  transform: rotate(-25deg);
  letter-spacing: 0.2em;
  text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* Contenido de la card */
.item-info {
  padding: 1.2rem;
}

.item-nombre {
  font-family: var(--font-titulo);
  font-size: 1.3rem;
  color: var(--blanco);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.item-card.censurado .item-nombre {
  color: var(--gris);
  font-style: italic;
}

.item-descripcion {
  font-size: 0.9rem;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.item-precio {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  color: var(--verde);
  text-shadow: 0 0 8px rgba(0,255,65,0.5);
}

.item-card.censurado .item-precio {
  color: #555;
  text-shadow: none;
}

/* Hover en card censurada: ligero desenfoque que tienta */
.item-card.censurado:hover .item-foto {
  filter: blur(4px) brightness(0.5);
}

/* Animación reveal al desbloquear */
@keyframes reveal {
  0%   { filter: blur(8px); opacity: 0; transform: scale(0.95); }
  100% { filter: blur(0);   opacity: 1; transform: scale(1); }
}

.item-card.revealed {
  animation: reveal 0.8s ease forwards;
}

/* ─── GALERÍA ────────────────────────────────────────────────────────────────── */
#galeria {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.galeria-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(0,255,65,0.2);
  cursor: pointer;
  transition: transform 0.3s;
}

.galeria-item:hover { transform: scale(1.02); }

.galeria-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: filter 0.3s;
}

.galeria-item:hover img { filter: brightness(1.2); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border: 1px solid var(--verde);
  box-shadow: var(--glow-verde);
}

.lightbox-cerrar {
  position: fixed;
  top: 1rem; right: 1.5rem;
  font-size: 2rem;
  color: var(--verde);
  cursor: pointer;
  background: none; border: none;
  text-shadow: var(--glow-verde);
  z-index: 9001;
}

/* ─── MODAL EASTER EGG ──────────────────────────────────────────────────────── */
.easter-egg-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.easter-egg-modal.active { display: flex; }

.easter-egg-content {
  max-width: 600px;
  background: rgba(0,0,0,0.9);
  border: 2px solid #a000ff;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-shadow: 0 0 30px #a000ff, 0 0 60px rgba(160,0,255,0.3);
  animation: eggPulse 2s ease infinite;
}

@keyframes eggPulse {
  0%, 100% { box-shadow: 0 0 30px #a000ff, 0 0 60px rgba(160,0,255,0.3); }
  50%       { box-shadow: 0 0 50px #a000ff, 0 0 100px rgba(160,0,255,0.5); }
}

.easter-egg-content h2 {
  font-family: var(--font-titulo);
  font-size: 2rem;
  color: #cc44ff;
  text-shadow: 0 0 20px #a000ff;
  margin-bottom: 1rem;
}

.easter-egg-content p {
  color: #ddd;
  font-size: 1.1rem;
}

.easter-egg-cerrar {
  margin-top: 2rem;
  padding: 0.8rem 2rem;
  background: #a000ff;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-titulo);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.easter-egg-cerrar:hover { background: #cc44ff; }

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
#footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(0,255,65,0.2);
  margin-top: 4rem;
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
}

.footer-logo {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  color: var(--verde);
  text-shadow: 0 0 10px var(--verde);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--gris);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--verde); }

.footer-copy {
  font-size: 0.8rem;
  color: #555;
  margin-top: 1rem;
}

/* ─── SEPARADORES ────────────────────────────────────────────────────────────── */
.seccion-sep {
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--verde), transparent);
  margin: 1.5rem auto 2.5rem;
  box-shadow: 0 0 8px var(--verde);
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hamburger  { display: flex; }

  .header-inner { padding: 1rem; }

  .countdown-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }

  .countdown-card { padding: 1rem; min-width: unset; }
  .countdown-number { font-size: 2.2rem; }

  .items-grid {
    grid-template-columns: 1fr;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-links { flex-direction: column; gap: 0.5rem; }

  /* Sin resplandores en móvil */
  .hero-titulo             { text-shadow: none; animation: none; }
  .hero-subtitulo          { text-shadow: none; }
  .seccion-titulo          { text-shadow: none; }
  .categoria-titulo        { text-shadow: none; }
  .header-logo .nombre     { text-shadow: none; }
  .countdown-number        { text-shadow: none; }
  .mantenimiento-overlay h1 { text-shadow: none; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1400px) {
  .items-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
