/* ==========================================================================
   MAINESTILO.CSS - Hoja de estilos completa para index.php (La Caja del Rock)
   ========================================================================== */

:root {
  --bg-dark: #0d0e11;
  --bg-surface: #16181d;
  --bg-card: #1e2128;
  --bg-glass: rgba(22, 24, 29, 0.94);

  --brand-primary: #ff8800;     /* Naranja Rock */
  --brand-primary-hover: #ffa233;
  --brand-crimson: #990033;     /* Granate oscuro */
  --brand-cyan: #0088bb;        /* Azul eléctrico */

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-accent: rgba(255, 136, 0, 0.45);

  --font-display: 'Audiowide', sans-serif;
  --font-heading: 'Montserrat', 'Monserrat', sans-serif;
  --font-body: 'Oswald', system-ui, -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.75);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  background-image: linear-gradient(to bottom, rgba(13, 14, 17, 0.86), rgba(13, 14, 17, 0.96)), url(../img/fondo-1.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   HEADER (inc/header.php)
   ========================================================================== */
.header {
  width: 100%;
  background: linear-gradient(135deg, rgba(153, 0, 51, 0.88) 0%, rgba(13, 14, 17, 0.95) 50%, rgba(0, 136, 187, 0.65) 100%);
  border-bottom: 2px solid var(--brand-primary);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.65);
  padding: 1rem;
}

.header header {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header header h1 {
  display: none;
}

.header header .logo img {
  width: clamp(60px, 8vw, 110px);
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.header header .logo-letras img {
  max-height: 110px;
  width: auto;
  max-width: min(85vw, 650px);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* ==========================================================================
   MENÚ PRINCIPAL DE PORTADA (.menu-nav) - Una sola línea en >= 768px
   ========================================================================== */
.menu-nav {
  max-width: 1200px;
  width: 100%;
  margin: 1.5rem auto;
  padding: 0 1rem;
  position: relative;
  z-index: 900;
}

/* Móvil (< 768px): botones principales apilados */
.menu-nav nav > ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.menu-nav nav > ul > li {
  position: relative;
}

.menu-nav nav > ul > li > a > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.9rem 1.25rem;
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(153, 0, 51, 0.45) 100%);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid var(--brand-primary);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.menu-nav nav > ul > li > a > div span {
  font-family: 'FontAwesome', sans-serif;
  color: var(--brand-primary);
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}

.menu-nav nav > ul > li:hover > a > div,
.menu-nav nav > ul > li > a:hover > div {
  background: var(--brand-primary);
  color: #000;
  border-color: var(--brand-primary);
}

.menu-nav nav > ul > li:hover > a > div span,
.menu-nav nav > ul > li > a:hover > div span {
  color: #000;
  transform: rotate(90deg);
}

/* Submenús en móvil (adaptado al bucle PHP que genera 5 <ul class="subMenu">) */
.menu-nav .subMenu {
  margin-top: 0.35rem;
  padding-left: 0.75rem;
}

.menu-nav .subMenu li a .divSubMenu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.menu-nav .subMenu li a .divSubMenu img {
  width: 96px;
  height: 58px;
  object-fit: cover;
  flex-shrink: 0;
}

.menu-nav .subMenu li a .divSubMenu img.coverNov {
  width: 58px;
  height: 58px;
}

.menu-nav .subMenu li a .divSubMenu p {
  padding: 0.35rem 0.75rem 0.35rem 0;
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--brand-primary);
  line-height: 1.3;
}

.menu-nav .subMenu li a:hover .divSubMenu {
  background: var(--bg-card);
  border-color: var(--brand-cyan);
}

/* Tablets y Escritorio (>= 768px): en UNA SOLA LÍNEA */
@media (min-width: 768px) {
  .menu-nav nav > ul {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.85rem;
  }

  .menu-nav nav > ul > li {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .menu-nav nav > ul > li > a {
    display: block;
    height: 100%;
  }

  .menu-nav nav > ul > li > a > div {
    height: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.9rem 0.75rem;
    white-space: nowrap;
  }

  /* Desplegable elegante bajo cada pestaña sin romper la fila */
  .menu-nav .subMenu {
    margin-top: 0.35rem;
    padding-left: 0;
  }

  .menu-nav .subMenu li a .divSubMenu {
    background: var(--bg-glass);
    backdrop-filter: blur(8px);
  }

  .menu-nav .subMenu li a:hover .divSubMenu {
    transform: translateX(4px);
    border-color: var(--brand-primary);
  }
}

/* ==========================================================================
   SECCIONES DESTACADAS (.destacado y .coverDest)
   ========================================================================== */
.destacado {
  max-width: 1200px;
  width: 100%;
  margin: 2.25rem auto;
  padding: 0 1rem;
}

.destacado h2 {
  padding: 0.85rem 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--bg-card);
  border-left: 5px solid var(--brand-cyan);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.5vw, 1.6rem);
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-card);
}

.destacado ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .destacado ul {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

.destacado ul li a {
  display: block;
  height: 100%;
}

.destacado ul li a div {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.destacado ul li a div img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Carátulas cuadradas en Reseñas Destacadas */
.coverDest ul li a div img {
  aspect-ratio: 1 / 1;
}

.destacado ul li a div p {
  padding: 0.85rem 0.75rem;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  font-weight: 700;
  color: var(--text-main);
}

.destacado ul li a:hover div {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
  box-shadow: 0 12px 25px rgba(255, 136, 0, 0.25);
}

.destacado ul li a:hover div p {
  color: var(--brand-primary);
}

/* ==========================================================================
   FOOTER (inc/footer.php)
   ========================================================================== */
footer {
  margin-top: auto;
  width: 100%;
  background: linear-gradient(180deg, var(--bg-surface) 0%, #07080a 100%);
  border-top: 2px solid var(--brand-crimson);
  color: var(--text-muted);
}

footer .divFoot {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  footer .divFoot {
    grid-template-columns: 1fr auto;
  }
  footer .divFoot .logoLetrasFoot,
  footer .divFoot .redesFoot {
    grid-column: 1 / -1;
  }
}

footer .divFoot .logoLetrasFoot a div {
  max-width: 420px;
  margin: 0 auto;
}

footer .divFoot .secFoot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

footer .divFoot .secFoot ul li a div {
  width: 105px;
  padding: 1rem 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

footer .divFoot .secFoot ul li a div span {
  font-family: 'FontAwesome', sans-serif;
  font-size: 1.8rem;
  color: var(--brand-primary);
}

footer .divFoot .secFoot ul li a:hover div {
  background: var(--brand-crimson);
  border-color: var(--brand-primary);
  transform: translateY(-3px);
}

footer .divFoot .redesFoot ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

footer .divFoot .redesFoot ul li a div {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
}

footer .divFoot .redesFoot ul li a div span {
  font-family: 'FontAwesome', sans-serif;
  font-size: 1.25rem;
}

footer .divFoot .redesFoot ul li a:hover div {
  background: var(--brand-primary);
  color: #000;
  transform: scale(1.1);
}

footer .divFoot .cajalcdr {
  display: none;
}

@media (min-width: 900px) {
  footer .divFoot .cajalcdr {
    display: flex;
    justify-content: center;
  }
  footer .divFoot .cajalcdr a img {
    width: 170px;
    transition: var(--transition);
  }
  footer .divFoot .cajalcdr a:hover img {
    transform: rotate(-4deg) scale(1.05);
  }
}

footer .copyright {
  width: 100%;
  padding: 1rem;
  background: #050608;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

footer .copyright h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ==========================================================================
   BARRA DE COOKIES Y BOTÓN IR ARRIBA
   ========================================================================== */
#barracookies {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(22, 24, 29, 0.96);
  backdrop-filter: blur(10px);
  border-top: 2px solid var(--brand-primary);
  padding: 1rem;
  z-index: 10000;
}

#barracookies .inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-main);
}

@media (min-width: 768px) {
  #barracookies .inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

#barracookies .okcookie ul {
  display: flex;
  gap: 0.75rem;
}

#barracookies .okcookie ul li a div {
  padding: 0.5rem 1.25rem;
  background: var(--brand-primary);
  color: #000;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

#barracookies .okcookie ul li a:hover div {
  background: var(--brand-crimson);
  color: #fff;
}

.ir-arriba {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #000;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9000;
  transition: var(--transition);
}

.ir-arriba span {
  font-family: 'FontAwesome', sans-serif;
  font-size: 1.2rem;
}

.ir-arriba:hover {
  background: var(--brand-crimson);
  color: #fff;
  transform: translateY(-3px);
}