/* ---------------------------------------------------------------------- */
/* ---- IPRO GAMING CENTER - HOJA DE ESTILOS ORGANIZADA ---- */
/* ---------------------------------------------------------------------- */

/* ---- A. VARIABLES Y ESTILOS GLOBALES ---- */
:root {
    --color-dark-bg: #111111; /* Fondo principal oscuro */
    --color-secondary-bg: #1A1A1A; /* Fondo secundario para secciones (Gris oscuro) */
    --color-card-bg: #222222; /* Para las cards y elementos destacados */
    --color-primary-text: #F0F0F0;
    --color-accent: #E00000; /* Rojo oscuro principal (IPRO) */
    --color-accent-hover: #FF3333; /* Rojo vivo para hover y realce (Rojo Gamer) */
    
    --font-title: 'Orbitron', sans-serif; /* Fuente para títulos (Game/Tech feel) */
    --font-body: 'Montserrat', sans-serif; /* Fuente para cuerpo de texto */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark-bg);
    color: var(--color-primary-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: var(--color-primary-text);
    text-transform: uppercase;
    font-weight: 700;
}

h2.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(224, 0, 0, 0.3);
}

h2.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 15px auto 0;
    animation: pulseBorder 2s infinite alternate;
}

h3.subsection-title {
    font-size: 2rem;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--color-primary-text);
    text-shadow: 0 0 10px rgba(224, 0, 0, 0.2);
    position: relative;
}
h3.subsection-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 10px auto 0;
}


section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ---- B. ANIMACIONES GENERALES ---- */
@keyframes pulseBorder {
    0% { transform: scaleX(0.8); opacity: 0.7; }
    100% { transform: scaleX(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- C. BOTÓN DE ACCIÓN (CTA) ---- */
.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--color-accent), #FF5555);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-family: var(--font-title);
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(224, 0, 0, 0.4);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    border: none;
}

.cta-button:hover {
    background: linear-gradient(45deg, var(--color-accent-hover), #FF7777);
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(224, 0, 0, 0.6);
}

.cta-button.large {
    font-size: 1.4rem;
    padding: 18px 45px;
}
.cta-button.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ---------------------------------------------------------------------- */
/* ---- ESTILOS POR SECCIÓN ---- */
/* ---------------------------------------------------------------------- */

/* ---- 1. CABECERA (HEADER) ---- */
.main-header {
    background-color: rgba(17, 17, 17, 0.95);
    padding: 18px 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(224, 0, 0, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    filter: drop-shadow(0 0 5px rgba(224, 0, 0, 0.3));
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 0; 
    border: 2px solid var(--color-accent);
    border-radius: 8px;
    padding: 0; 
    overflow: hidden; 
}

.main-nav li {
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1); 
}
.main-nav li:last-child {
    border-right: none;
}

.main-nav a {
    background-color: var(--color-accent);
    color: var(--color-primary-text); 
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-title); 
    font-size: 1.05rem;
    padding: 15px 20px; 
    display: block;
    transition: all 0.2s ease-in-out;
    position: relative;
    letter-spacing: 1px;
}

.main-nav a:hover {
    background-color: var(--color-dark-bg); 
    color: var(--color-accent-hover); 
    text-shadow: 0 0 8px rgba(255, 50, 50, 0.519);
    transform: translateY(-2px);
    box-shadow: inset 0 0 10px rgba(255, 50, 50, 0.3);
}

.main-nav a::after {
    display: none;
}


.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-icons {
    display: flex; /* MODIFICADO: Asegura que los iconos estén en línea */
    align-items: center;
}
.social-icons a {
    color: var(--color-primary-text);
    margin-left: 18px;
    font-size: 1.3rem;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-icons a:hover {
    color: var(--color-accent-hover);
    transform: scale(1.2);
}

/* ---- Botón Hamburguesa (NUEVO) ---- */
.hamburger {
    display: none; /* Oculto en escritorio */
    background-color: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-primary-text);
    font-size: 1.8rem;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 5px;
    z-index: 1001;
    transition: color 0.3s, background-color 0.3s;
}
.hamburger:hover {
    background-color: var(--color-accent);
}

/* ---- 2. SECCIÓN HÉROE (HOME) ---- */
.hero-section {
    height: 100vh;
    background-image: url('images/hero-background.jpg'); /* <-- REEMPLAZA ESTA IMAGEN */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.6), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1s ease-out forwards;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(224, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.4rem;
    max-width: 700px;
    margin: 0 auto 40px;
    font-weight: 300;
}

/* ---- 6. ESTADO EN TIEMPO REAL (STATUS) ---- */
.status-section {
  background-color: #1a1a1a;
  text-align: center;
  padding: 80px 0;
  width: 100%;
}

.pc-grid {
  display: grid;
  justify-items: center;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin: 0 auto;
  max-width: 1000px;
  padding: 20px;
  box-sizing: border-box;
}

.pc-slot {
  width: 100%;
  max-width: 160px;
  border-radius: 12px;
  padding: 20px 10px;
  font-family: 'Orbitron', sans-serif;
  color: #fff;
  transition: transform 0.15s, box-shadow 0.25s;
  text-align: center;
  font-size: 1rem;
  border: 2px solid transparent; /* Para el efecto de borde */
  cursor: pointer; /* Indica que es interactivo */
}

/* SLOTS: LIBRE (FREE) -> ROJO VIVO */
.pc-slot.free {
  background: linear-gradient(45deg, var(--color-accent), var(--color-accent-hover));
  box-shadow: 0 8px 24px rgba(255, 51, 51, 0.4);
  border-color: var(--color-primary-text);
}
/* SLOTS: LIBRE HOVER */
.pc-slot.free:hover {
    background: linear-gradient(45deg, #FF5555, #FF7777);
    transform: scale(1.05);
}


/* SLOTS: OCUPADA (BUSY) -> GRIS OSCURO */
.pc-slot.busy {
  background-color: var(--color-secondary-bg); /* Fondo Gris Oscuro */
  color: #888; /* Texto más suave */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  border-color: #555;
  cursor: default; /* No se puede clickear */
}

.pc-slot:hover {
  transform: scale(1.05);
}

.status-note {
  color: #aaa;
  margin-top: 16px;
  font-size: 0.95rem;
}


/* ---- 3. SOBRE NOSOTROS (ABOUT) ---- */
.about-section {
    background-color: var(--color-secondary-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-card {
    background-color: var(--color-card-bg);
    padding: 50px 25px;
    border-radius: 10px;
    border-bottom: 4px solid var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(224, 0, 0, 0.3);
}

.feature-card i {
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(224, 0, 0, 0.5);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.8rem;
    letter-spacing: 1px;
}

/* ---- 4. TARIFAS (TARIFFS) ---- */
.tariffs-section {
    background-color: var(--color-dark-bg);
}
.tariffs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tariff-card {
    background-color: var(--color-secondary-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tariff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(224,0,0,0.05), transparent);
    z-index: 0;
}
.tariff-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(224, 0, 0, 0.4);
}


.tariff-card h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--color-accent);
    letter-spacing: 1.5px;
}

.tariff-card .price {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-title);
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-primary-text);
    text-shadow: 0 0 20px rgba(224, 0, 0, 0.5);
}
.tariff-card .price span {
    font-size: 1.2rem;
    font-weight: normal;
    font-family: var(--font-body);
    color: #bbb;
}

.tariff-card ul {
    list-style: none;
    margin-left: 20px;
    padding-bottom: 20px;
}
.tariff-card ul li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    position: relative;
}
.tariff-card ul li::before {
    content: '✓';
    color: var(--color-accent);
    position: absolute;
    left: -25px;
    font-size: 1.3rem;
    font-weight: bold;
}

.tariff-card.vip-zone {
    background-color: var(--color-card-bg);
    border: 3px solid var(--color-accent);
    box-shadow: 0 0 30px rgba(224, 0, 0, 0.7);
    transform: scale(1.08);
}
.tariff-card.vip-zone:hover {
     transform: scale(1.1);
     box-shadow: 0 0 40px rgba(255, 50, 50, 0.8);
}

.vip-highlight {
    background: linear-gradient(90deg, var(--color-accent), #FF5555);
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 25px;
    top: -20px;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.promo-amanecida {
    text-align: center;
    margin-top: 60px;
    padding: 30px;
    background-color: var(--color-card-bg);
    border-left: 6px solid var(--color-accent);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    font-family: var(--font-title);
    letter-spacing: 1px;
}

/* ---- 5. PROMOCIONES (PROMOS) ---- */
.promos-section {
    background-color: var(--color-secondary-bg);
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.promo-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.promo-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 10px 25px rgba(224, 0, 0, 0.3);
}
.promo-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    filter: brightness(0.9);
    transition: filter 0.3s ease;
}
.promo-card:hover img {
    filter: brightness(1.1);
}

.promo-card h4 {
    padding: 25px 25px 12px;
    font-size: 1.5rem;
    color: var(--color-accent);
    letter-spacing: 0.8px;
}
.promo-card p {
    padding: 0 25px 25px;
    color: #bbb;
}



/* ---- 7. TORNEOS (TOURNAMENTS) ---- */
.tournaments-section {
    background-color: var(--color-dark-bg);
}
.tournament-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tournament-card {
    background-color: var(--color-secondary-bg);
    border-radius: 10px;
    padding: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 6px solid var(--color-accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tournament-card:hover {
    transform: translateX(10px);
    box-shadow: 0 8px 20px rgba(224, 0, 0, 0.4);
}

.tournament-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-primary-text);
}
.tournament-card p {
    margin-bottom: 8px;
    color: #ccc;
    font-size: 1.1rem;
}
.tournament-card p i {
    color: var(--color-accent);
    margin-right: 10px;
}

.countdown {
    font-family: var(--font-title);
    font-size: 1.5rem;
    color: var(--color-accent-hover); /* Usar el rojo más vivo para el countdown */
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(224, 0, 0, 0.5);
}
.countdown span {
    font-size: 2rem;
    font-weight: 900;
}

/* ---- 8. GALERÍA (GALLERY) ---- */
.gallery-section {
     background-color: var(--color-secondary-bg);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.gallery-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.gallery-grid img:hover {
    transform: scale(1.07);
    filter: brightness(1.2);
    box-shadow: 0 8px 20px rgba(224, 0, 0, 0.4);
}

/* Videos (Sub-sección de Galería) */
.video-section-title {
    margin-top: 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.video-item {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.video-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(224, 0, 0, 0.4);
}

.video-item iframe {
    width: 100%;
    height: 250px;
    display: block;
    border: none;
}
.video-item p {
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-primary-text);
    text-align: center;
}

/* ---- 9. CONTACTO ---- */
.contact-section {
    background-color: var(--color-dark-bg);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
}
.contact-info {
    padding: 20px;
    background-color: var(--color-secondary-bg);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}
.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-accent);
}
.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #ccc;
}
.contact-info i {
    color: var(--color-accent);
    margin-right: 12px;
    width: 25px;
    text-align: center;
}
.contact-info .cta-button {
    margin-top: 20px;
}

.map iframe {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

/* ---- 10. FOOTER ---- */
.main-footer {
    background-color: #000000;
    padding: 50px 0 25px;
    text-align: center;
    border-top: 1px solid rgba(224, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.footer-logo {
    height: 35px;
    filter: drop-shadow(0 0 5px rgba(224, 0, 0, 0.3));
}
.footer-links a, .footer-social a {
    color: var(--color-primary-text);
    text-decoration: none;
    margin: 0 18px;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.2s ease;
}
.footer-links a:hover {
    color: var(--color-accent-hover);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.footer-social a {
    font-size: 1.4rem;
}
.footer-social a:hover {
    color: var(--color-accent-hover);
    transform: scale(1.3);
}
.copyright {
    font-size: 0.95rem;
    color: #aaa;
    border-top: 1px solid var(--color-secondary-bg);
    padding-top: 25px;
}


/* ---------------------------------------------------------------------- */
/* ---- D. MEDIA QUERIES (RESPONSIVE DESIGN) ---- */
/* ---------------------------------------------------------------------- */

@media (max-width: 992px) {
    .header-right .social-icons {
        display: none; /* Ocultar iconos sociales para dar espacio al botón */
    }

    .hamburger {
        display: block; /* MODIFICADO: Mostrar botón hamburguesa */
    }

    .main-nav {
        /* NUEVO: Estilos para el menú como un panel lateral */
        position: fixed;
        top: 0;
        right: -100%; /* Inicia fuera de la pantalla */
        width: 280px;
        height: 100vh;
        background-color: var(--color-dark-bg);
        padding-top: 80px;
        transition: right 0.4s ease-in-out;
        z-index: 1000;
        border-left: 1px solid rgba(224, 0, 0, 0.2);
    }

    .main-nav.is-open {
        right: 0; /* Mover a la pantalla cuando esté abierto */
    }

    .main-nav ul {
        /* MODIFICADO: Estilos para la lista vertical */
        flex-direction: column;
        align-items: center;
        width: 100%;
        border: none;
        overflow: visible;
    }

    .main-nav li {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(224, 0, 0, 0.1);
    }
    .main-nav li:last-child {
        border-bottom: none;
    }

    .main-nav a {
        /* MODIFICADO: Estilo de los enlaces del menú móvil */
        background: transparent;
        color: var(--color-primary-text);
        text-align: center;
        padding: 20px 30px;
        font-size: 1.2rem;
        border-radius: 0;
        border-right: none;
    }

    .main-nav a:hover {
        background: var(--color-accent);
        color: white;
        transform: none;
        box-shadow: none;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    h2.section-title {
        font-size: 2.2rem;
    }

    /* Columnas a 1 en tablet/móvil */
    .features-grid, .tariffs-grid, .promos-grid, .gallery-grid, .contact-grid, .video-grid {
        grid-template-columns: 1fr;
    }
    .tariff-card.vip-zone {
        transform: scale(1);
        margin-top: 30px;
    }
    .tariff-card.vip-zone:hover {
         transform: scale(1.05);
    }
    .contact-grid {
        text-align: center;
    }
    .contact-info {
        padding: 30px;
    }
    .contact-info .cta-button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        max-width: 250px;
    }
    .footer-content {
        flex-direction: column;
        gap: 25px;
    }
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .footer-links a {
        margin: 5px 10px;
    }
    
    .pc-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 12px;
    }
}


@media (max-width: 576px) {
    .main-header {
        padding: 10px 0;
    }
   
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .cta-button.large {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
    h2.section-title {
        font-size: 1.8rem;
    }
    .feature-card h3 {
        font-size: 1.3rem;
    }
    .tariff-card h3 {
        font-size: 1.8rem;
    }
    .tariff-card .price {
        font-size: 3rem;
    }
    .promo-card h4 {
        font-size: 1.2rem;
    }
    .tournament-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .tournament-card .cta-button {
        width: 100%;
        max-width: 200px;
    }
    .countdown {
        font-size: 1.2rem;
    }
    .countdown span {
        font-size: 1.6rem;
    }
    .contact-info h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
    
    .pc-slot {
      max-width: 120px;
      padding: 15px 5px;
      font-size: 0.9rem;
    }
}