:root {
  --bg-dark: #121212;
  --panel: #1a1a1a;
  --accent: #f1c40f;
  --accent-rgb: 241, 196, 15;
  --text: #ffffff;
  --muted: #888888;
  --sidebar-w: 260px;
  --radius: 8px;
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: 'DM Sans', 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 100% 0%, rgba(241, 196, 15, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(241, 196, 15, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.page-wrapper {
  display: flex;
  min-height: 100vh;
}

main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem;
}

/* =========================================
   HEADER Y NAVEGACIÓN
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: #000;
  padding: 2rem 1.5rem;
  z-index: 1000;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.brand {
  margin-bottom: 3rem;
}

.brand-logo {
  width: 100%;
  max-width: 180px;
  height: auto;
}

.main-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  flex: 1;
}

.main-nav .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: 0.2s;
}

.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
}

.main-nav .nav-link.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

/* =========================================
   EA HERO SECTION
   ========================================= */
.hero-ea {
  position: relative;
  height: 85vh;
  background: url('../img/concert_bg.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-ea::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.85));
  z-index: 1;
}

.hero-ea .container {
  position: relative;
  z-index: 2;
}

.hero-ea-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: fadeIn 1.2s ease;
}

.hero-ea-logo {
  max-height: 45vh;
  width: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.5));
}

.hero-ea-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-ea-caption {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3rem;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   ESTRUCTURA GENERAL (Grid y Secciones)
   ========================================= */
.about,
.contacto {
  background: transparent;
  padding: 1.5rem 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1rem;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 2rem;
  margin-top: 0;
}

.section-yellow {
  background: var(--accent);
  color: #121212;
  padding: 4rem 0;
}

.section-yellow .section-title,
.section-yellow h2,
.section-yellow p {
  color: #121212 !important;
}

/* =========================================
   SECCIÓN DE MARCAS REDISEÑADA
   ========================================= */
.section-brands {
  background: transparent;
  padding: 1rem 0 5rem 0;
  border-top: 40px solid var(--accent) !important;
  box-shadow: 0 -5px 15px rgba(var(--accent-rgb), 0.1);
  position: relative;
  display: block;
}

.brand-card-yellow {
  background: rgba(var(--accent-rgb), 0.80) !important;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 15px !important;
  padding: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    background 0.4s ease !important;
  text-decoration: none !important;
  display: block;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}

.brand-card-yellow:hover {
  transform: translateY(-10px) !important;
  background: rgba(var(--accent-rgb), 0.85) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(var(--accent-rgb), 0.4) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

.brand-card-yellow h2 {
  color: #000 !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-logo-container {
  background: rgba(0, 0, 0, 0.97);
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border-radius: 12px;
  padding: 1.5rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   TARJETAS (Cards)
   ========================================= */
.card-neon,
.category-button.card {
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 15px !important;
  padding: 1.5rem;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    background-color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease !important;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  color: var(--text) !important;
}

.card-neon:hover,
.category-button.card:hover {
  transform: translateY(-8px) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 15px rgba(var(--accent-rgb), 0.15) !important;
}

.card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
  border-color: var(--accent);
  cursor: pointer;
}

.card h4 {
  margin: 0.75rem 1rem 0;
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 700;
}

.card p {
  margin: 0.5rem 1rem 1rem;
  color: var(--muted);
  flex: 1;
}

.card img {
  display: block;
  margin: 0;
  width: 100%;
  height: 220px;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   BOTONES
   ========================================= */
.btn-primary {
  background: var(--accent);
  color: #0b0b0b;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent) !important;
  color: #0b0b0b !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.35);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease;
  display: inline-block;
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(37, 211, 102, 0.3);
}

/* =========================================
   NEW FOOTER
   ========================================= */
.new-footer {
  background: var(--panel);
  color: var(--muted);
  padding-top: 3rem;
  border-top: 4px solid var(--accent);
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
}

.footer-logo {
  height: 40px;
  margin-right: 0.8rem;
}

.footer-bottom {
  background: #000;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* =========================================
   ABOUT CONTENT
   ========================================= */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

/* =========================================
   DEFINITIVE MOBILE RESPONSIVENESS (V2)
   ========================================= */
@media (max-width: 950px) {
  :root {
    --sidebar-w: 0px !important;
  }

  html,
  body {
    overflow-x: hidden !important;
    position: relative;
    width: 100% !important;
  }

  .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5) !important;
    background: #000 !important;
    z-index: 3000 !important;
    display: flex !important;
    padding: 2rem 1.5rem !important;
  }

  .site-header.active {
    transform: translateX(0) !important;
  }

  .nav-toggle {
    display: flex !important;
    position: fixed !important;
    top: 15px !important;
    left: 15px !important;
    z-index: 3100 !important;
    background: var(--accent) !important;
    color: #000 !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.25rem !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
  }

  .nav-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 2900 !important;
    display: none !important;
    opacity: 0 !important;
  }

  .nav-overlay.active {
    display: block !important;
    opacity: 1 !important;
  }

  main,
  .container,
  .page-container {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .hero-ea {
    height: auto !important;
    min-height: 50vh !important;
    padding: 4rem 1rem !important;
  }

  .hero-ea-logo {
    max-width: 80% !important;
    height: auto !important;
    max-height: 30vh !important;
  }

  .hero-ea-title {
    font-size: 1.8rem !important;
  }

  .grid,
  .catalog-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }
}

/* =========================================
   GALERIA DE IMÁGENES (producto.php)
   ========================================= */
.gallery-item-container {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease;
  display: block;
  position: relative;
}

.gallery-item-container:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(var(--accent-rgb), 0.15);
}

.gallery-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.gallery-item-container:hover .gallery-item-img {
  transform: scale(1.08);
}