/* =========================================
   1. VARIABLES Y RESET GLOBAL
   ========================================= */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Orbitron:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --navy: #0f172a;
  --black: #050505;
  --gold: #d4af37;
  --white: #ffffff;
  --gray: #333333;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: var(--black);
  color: var(--white);
  overflow-x: hidden;
}

h1,
h2,
h3,
.nav-link,
.btn-main,
.btn-register,
.btn-submit-gamer {
  font-family: "Orbitron", sans-serif;
}

/* =========================================
   2. HEADER Y NAVEGACIÓN
   ========================================= */
header {
  background-color: var(--black); /* Cambio a NEGRO solicitado */
  height: 100px; /* Un poco más alto para que entre la imagen cómodamente */

  /* GRILLA MÁGICA: 3 columnas (1fr espacio | auto logo | 1fr espacio) */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  grid-column: 2; /* Asegura que el logo esté en el centro */
}

.logo-container a {
  display: flex; /* Quita espacios fantasma debajo de la imagen */
}

.logo-img {
  height: 65px; /* Ajusta este valor si el logo se ve muy grande o chico */
  width: auto;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1)); /* Brillo sutil */
}

.logo-container:hover .logo-img {
  transform: scale(1.05); /* Zoom suave al pasar el mouse */
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-group {
  display: flex;
  gap: 40px; /* Espacio para respirar entre botones */
}

.nav-group.left {
    grid-column: 1;
  justify-content: flex-end; /* Alineados hacia la derecha (hacia el logo) */
  padding-right: 40px; /* Separación extra del logo */
}

.nav-group.right {
    grid-column: 3;
  justify-content: flex-start; /* Alineados hacia la izquierda (hacia el logo) */
  padding-left: 40px; /* Separación extra del logo */
}

.nav-link {
  text-decoration: none;
  color: var(--white);
  font-size: 0.95rem; /* Letra un pelín más grande para leerse bien */
  padding: 8px 15px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-transform: uppercase; /* Fuerza mayúsculas estilo gamer */
  letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border: 1px solid var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

/* --- HAMBURGER MENU (MOBILE) --- */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: none;
    border: none;
    z-index: 1001;
}

.line {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: 0.3s;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: rgba(15, 23, 42, 0.95); /* Navy con transparencia */
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: 0.4s ease-in-out;
    z-index: 999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    font-size: 1.2rem;
    padding: 15px 30px;
    width: 80%;
    text-align: center;
}

/* Animación Hamburger */
.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}
.hamburger.active .line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* RESPONSIVE HEADER */
@media (max-width: 900px) {
    header {
        display: flex;
        justify-content: space-between; /* Logo izq, Menu der */
        padding: 0 20px;
    }

    .nav-group {
        display: none; /* Ocultar menus de escritorio */
    }

    .hamburger {
        display: flex; /* Mostrar icono hamburguesa */
    }
    
    .logo-container {
        grid-column: auto;
        margin-left: 0;
    }
}

/* =========================================
   3. FOOTER
   ========================================= */
footer {
  background-color: var(--black);
  padding: 50px 10%;
  border-top: 1px solid #333;
  font-size: 0.9rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h3,
.footer-col h4 {
  color: var(--white); /* Unificado h3 y h4 */
  margin-bottom: 20px;
}

.footer-col h4 {
  color: #888;
}

/* Inputs específicos del Footer */
.contact-form input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: none;
}

.btn-send {
  background-color: #333;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-send:hover {
  background-color: var(--gold);
  color: var(--black);
}

/* =========================================
   4. HOME PAGE (Index)
   ========================================= */
/* Hero Section */
.hero {
  position: relative;
  min-height: 120vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.4);
}

.hero-content {
  margin-bottom: 150px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-align: center; /* Centrar titulo de slides */
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-main {
  padding: 10px 40px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.btn-main:hover {
  background: var(--white);
  color: var(--black);
}

/* Tarjetas Flotantes Hero */
.hero-cards {
  position: absolute;
  bottom: 100px;
  display: flex;
  gap: 20px;
  width: 80%;
  justify-content: center;
  z-index: 10;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 40px 20px;
  flex: 1;
  text-align: center;
  transition: 0.3s;
}

.hero-card:hover {
  background: rgba(10, 25, 47, 0.8);
  border-color: var(--gold);
}

@media (max-width: 900px) {
  .hero-cards {
    position: relative;
    bottom: auto;
    flex-direction: column;
    width: 90%;
    margin-top: 30px;
    gap: 15px;
  }
  
  .hero-card {
    padding: 20px;
  }
  
  .hero-content {
      margin-bottom: 20px;
      margin-top: 100px; /* Espacio para el header fijo */
  }

  .hero-content h1 {
      font-size: 2.2rem;
  }
  
  .hero {
      min-height: 100vh; /* Restaura la altura completa para que se vea el carrusel */
      padding-bottom: 50px;
  }
}

/* Sección Espacios */
.espacios-section {
  padding: 80px 10% 80px;
  background-color: var(--white);
  color: var(--black);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--black);
}

.espacios-section p {
  color: #555;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.space-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  transition: transform 0.3s ease;
}

.space-card:hover {
  transform: translateY(-5px);
}

.card-img {
  height: 200px;
  width: 100%;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--navy);
}

/* =========================================
   5. ESCUELITA (Estilo Periódico)
   ========================================= */
.newspaper-section {
  background-color: #fdfdfd;
  color: #1a1a1a;
  padding: 120px 15% 80px;
  font-family: "Playfair Display", serif;
  min-height: 100vh;
}

.paper-header {
  text-align: center;
  margin-bottom: 40px;
}

.headline {
  font-size: 4rem;
  text-transform: uppercase;
  color: var(--black);
  letter-spacing: 2px;
  margin-bottom: 10px;
  line-height: 1;
}

.subhead {
  font-size: 1.5rem;
  color: #666;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 20px;
}

.paper-divider {
  border: 0;
  height: 2px;
  background: var(--black);
  width: 100%;
  margin: 0 auto;
}

.paper-content {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.paper-article {
  flex: 2;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: justify;
}

.drop-cap::first-letter {
  float: left;
  font-size: 5.5rem;
  line-height: 0.8;
  font-weight: bold;
  margin-right: 15px;
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
}

.paper-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border-left: 1px solid #ddd;
  padding-left: 30px;
}

.school-box {
  border: 2px solid var(--black);
  padding: 20px;
  text-align: center;
  background-color: #fff;
  box-shadow: 5px 5px 0px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.school-box:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}

.school-box h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.info-text {
  font-size: 0.9rem;
  margin-bottom: 10px;
  font-family: "Montserrat", sans-serif;
}

.includes {
  font-size: 0.8rem;
  color: #555;
  margin-bottom: 15px;
  font-style: italic;
}

.btn-paper {
  background: var(--black);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  font-family: "Montserrat", sans-serif;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn-paper:hover {
  background: var(--gold);
  color: var(--black);
}

/* =========================================
   6. TORNEOS (Estilo Gamer Aggro)
   ========================================= */
.war-banner {
  height: 400px;
  background:
    linear-gradient(to bottom, rgba(15, 23, 42, 0.8), var(--black)),
    url("images/tournament-bg.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
}

.war-title {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  line-height: 1.1;
  margin-bottom: 10px;
}

.war-subtitle {
  font-family: "Montserrat", sans-serif;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.tournaments-section {
  padding: 60px 10% 80px;
  background: linear-gradient(
    to bottom,
    var(--black) 0%,
    var(--black) 70%,
    #0f172a 100%
  );
  position: relative; /* Needed for the overlay */
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Semi-transparent dark */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.coming-soon-overlay span {
    color: var(--gold);
    font-family: "Orbitron", sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    letter-spacing: 5px;
    text-transform: uppercase;
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 20px var(--gold);
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        text-shadow: none;
        transform: scale(0.98);
    }
}

.tournament-card {
  background-color: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(5px);
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  /* FIX DE ESPACIO: Flexbox vertical para que el contenido se estire */
  display: flex;
  flex-direction: column;
  min-height: 410px; /* Altura mínima para que no queden "aplastadas" */
}

.tournament-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.game-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--navy);
  color: var(--white);
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: bold;
  border-radius: 4px;
  border: 1px solid var(--gold);
}

.card-img {
  height: 180px;
  width: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0; /* Que la imagen no se achique */
}

.card-content.gamer-style {
  padding: 20px;
  color: var(--white);
  text-align: left;
  /* Ocupa el resto del espacio disponible */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-content.gamer-style h3 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--gold);
}

.tourney-details p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ccc;
  font-family: "Montserrat", sans-serif;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Estilo nuevo para las plazas */
.tourney-slots {
  color: var(--gold) !important;
  font-weight: bold;
  margin-top: 5px;
}

.game-name {
  font-weight: bold;
  color: var(--white) !important;
  text-transform: uppercase;
  font-size: 0.8rem !important;
  letter-spacing: 1px;
}

/* Botón "Más Información" en la tarjeta */
.btn-register {
  /* Empujamos el botón al fondo de la tarjeta */
  margin-top: auto;

  display: block; /* Para que se comporte como bloque */
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  text-align: center; /* Texto centrado */
}

.btn-register:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

/* =========================================
   7. CONTACTO (Gamer Box)
   ========================================= */
.contact-section {
  padding: 120px 5% 80px;
  background-color: var(--black);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-title {
  font-family: "Orbitron", sans-serif;
  color: var(--white);
  margin-bottom: 40px;
  font-size: 2.5rem;
  text-transform: uppercase;
  text-align: center;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.contact-container.gamer-box {
  display: flex;
  width: 100%;
  max-width: 1000px;
  background-color: #111;
  border: 1px solid #333;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.map-container {
  flex: 1;
  position: relative;
  min-height: 400px;
}

.map-container iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(0.9);
}

.contact-form-container {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-form-container h2 {
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  margin-bottom: 10px;
}

.contact-socials {
  margin-bottom: 25px;
  display: flex;
  gap: 15px;
}

.contact-socials a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  border: 1px solid #333;
  padding: 5px 10px;
  border-radius: 4px;
  transition: 0.3s;
}

.contact-socials a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.form-row {
  display: flex;
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
  width: 100%;
}

.form-group label {
  display: block;
  color: #888;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-family: "Montserrat", sans-serif;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background-color: #0a0a0a;
  border: 1px solid #333;
  color: var(--white);
  padding: 12px;
  border-radius: 5px;
  font-family: "Montserrat", sans-serif;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.btn-submit-gamer {
  width: 100%;
  padding: 15px;
  background: var(--navy);
  color: var(--white);
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit-gamer:hover {
  background: var(--gold);
  color: var(--black);
}

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  /* Escuelita en celular */
  .paper-content {
    flex-direction: column;
  }
  .paper-sidebar {
    border-left: none;
    padding-left: 0;
    width: 100%;
  }
  .headline {
    font-size: 2.5rem;
  }

  /* Contacto en celular */
  .contact-container.gamer-box {
    flex-direction: column;
  }
  .map-container {
    height: 250px;
    min-height: auto;
  }
}

/* =========================================
   9. MODAL DE TORNEOS (CSS PURO)
   ========================================= */

.modal-toggle {
  display: none;
}

.modal-toggle:checked + .modal-overlay {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-content {
  background-color: #0f0f0f;
  border: 1px solid var(--gold);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto; /* Scroll interno */
  position: relative;
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
}

/* HEADER STICKY PARA LA X */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50; /* Por encima de la imagen */
  display: flex;
  justify-content: flex-end; /* A la derecha */
  padding: 10px;
  /* Fondo degradado suave para que la X se vea siempre */
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.close-modal {
  color: var(--white);
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 0 12px;
  border-radius: 5px;
  line-height: 1.5;
  transition: 0.3s;
}

.close-modal:hover {
  color: var(--gold);
  background: rgba(0, 0, 0, 1);
}

/* Imagen del modal grande */
.modal-header-img {
  width: 100%;
  height: 350px; /* Más alta */
  object-fit: cover;
  object-position: top center; /* Anclada arriba (cabezas) */
  display: block;
  border-bottom: 2px solid var(--navy);
  margin-top: -60px; /* Truco para que suba detrás de la X sticky */
}

.modal-body {
  padding: 30px;
  color: var(--white);
}

.modal-body h2 {
  font-family: "Orbitron", sans-serif;
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.modal-description {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 30px;
  line-height: 1.5;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.modal-details-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.modal-details-list li {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  color: #ddd;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.modal-details-list li strong {
  color: var(--gold);
  font-size: 0.9rem;
  text-transform: uppercase;
  min-width: 120px;
}

/* Botón "INSCRIBIRSE AHORA" dentro del modal */
.btn-submit-gamer {
  width: 100%;
  padding: 15px;
  margin-top: 30px;

  /* CAMBIO: Negro con letras blancas */
  background-color: var(--black);
  color: var(--white);
  border: 1px solid #333;

  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-submit-gamer:hover {
  /* Al hover: Dorado con letras negras */
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  .modal-header-img {
    height: 200px;
  }
}

/* =========================================
   10. PÁGINA GASTRONOMÍA (ESTILO LIBRO DE COCINA)
   ========================================= */

/* --- BARRA DORADA PROMOCIONAL --- */
.promo-bar {
  background-color: var(--gold);
  height: 175px; /* Altura solicitada */
  width: 100%;
  margin-top: 90px; /* Para que baje después del header fijo */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 10%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.promo-text {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: var(--white);
  font-weight: bold;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-menu-consult {
  background-color: var(--black);
  color: var(--white);
  padding: 15px 30px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.9rem;
  border: 2px solid var(--black);
  cursor: pointer;
  text-transform: uppercase;
  transition: 0.3s;
  letter-spacing: 1px;
}

.btn-menu-consult:hover {
  background-color: var(--white);
  color: var(--black);
}

/* --- SECCIÓN PRINCIPAL (REVISTA) --- */
.cookbook-section {
  background-color: #f9f9f9; /* Un tono crema muy suave, mejor que blanco puro para leer */
  color: #222;
  padding: 80px 10%;
  font-family: "Playfair Display", serif; /* Fuente Editorial */
}

/* Reutilizamos .paper-header y .headline de Escuelita, pero ajustamos color */
.cookbook-section .headline {
  color: var(--black);
}

.cookbook-article {
  display: flex;
  gap: 60px;
  margin-bottom: 80px;
  align-items: center;
}

/* Alternar orden: Texto - Imagen, luego Imagen - Texto */
.cookbook-article.night-focus {
  flex-direction: row-reverse; /* Invierte el orden para dinamismo */
}

.article-text {
  flex: 1;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: justify;
  font-family: "Montserrat", sans-serif; /* Cuerpo de texto legible */
  color: #333;
}

.article-text h3 {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--navy);
  border-bottom: 1px solid var(--gold);
  display: inline-block;
  padding-bottom: 5px;
}

.article-image {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-placeholder {
  width: 100%;
  height: 400px;
  background-color: #ddd;
  background-size: cover;
  background-position: center;
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.1); /* Sombra dura estilo editorial */
  border: 1px solid #999;
}

.img-caption {
  margin-top: 15px;
  font-style: italic;
  color: #666;
  font-size: 0.9rem;
}

/* Divisor fino entre secciones */
.paper-divider-thin {
  border: 0;
  height: 1px;
  background: #ccc;
  width: 60%;
  margin: 60px auto;
}

/* Destacados de comida (Pizzas, Papas) */
.food-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.highlight-item h4 {
  font-family: "Orbitron", sans-serif;
  color: var(--black);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.highlight-item p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

/* Responsive para Gastronomía */
@media (max-width: 900px) {
  .promo-bar {
    height: auto;
    padding: 30px 5%;
  }
  .promo-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .cookbook-article,
  .cookbook-article.night-focus {
    flex-direction: column;
    gap: 30px;
  }

  .article-text {
    order: 2; /* Texto abajo en celular */
  }
  .article-image {
    order: 1; /* Imagen arriba en celular */
    width: 100%;
  }

  .img-placeholder {
    height: 250px;
  }
}

/* =========================================
   11. SCROLLBAR PERSONALIZADO (GLOBAL)
   ========================================= */

/* Ancho de la barra */
::-webkit-scrollbar {
  width: 8px; /* Fina y elegante */
  height: 8px; /* Para scroll horizontal si hubiera */
}

/* El fondo de la barra (El carril) */
::-webkit-scrollbar-track {
  background: var(--black); /* Se funde con el fondo de la página */
}

/* La barra que se mueve (El pulgar) */
::-webkit-scrollbar-thumb {
  background: var(--gold); /* Dorado */
  border-radius: 4px; /* Bordes redondeados */
  border: 1px solid var(--black); /* Un pequeño borde para separarla */
}

/* Al pasar el mouse por la barra */
::-webkit-scrollbar-thumb:hover {
  background: #b59530; /* Un tono un poco más oscuro al interactuar */
}

/* =========================================
   CAROUSEL ESTILOS
   ========================================= */

/* Hero ahora actúa como contenedor relativo para los slides */
.hero {
  /* Mantiene min-height original pero no controla el layout interno con flex */
  /* Dejamos display flex si afecta algo más, pero los slides son absolutos */
  position: relative;
  overflow: hidden; /* Asegura que nada se salga */
}

/* Cada Slide ocupa todo el hero */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 1s ease-in-out,
    visibility 1s ease-in-out;
  z-index: 1;

  /* Centrado de contenido igual que el hero original */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Fondo de imagen para slides que no son video */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: brightness(0.4); /* Misma oscuridad que el video */
}

/* Ajuste específico para el video dentro del slide */
.hero-slide .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Puntos de navegación */
.carousel-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 20;
}

.dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active,
.dot:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* =========================================
   10. JS MODAL (Registration)
   ========================================= */
/* Styles removed as we switched to embedded forms */

@media (max-width: 768px) {
  .war-title {
    font-size: 2rem; /* Reduce el tamaño del título en móviles */
  }
}
