/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #e50914; /* Rojo tipo Netflix, muy enérgico */
    --dark-color: #141414;
    --light-dark-color: #222;
    --text-color: #f4f4f4;
    --font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-color);
    color: var(--text-color);
    padding-top: 80px; /* Espacio para la cabecera fija */
}

h1, h2 {
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; color: var(--primary-color); }

p {
    line-height: 1.6;
    
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
    padding-left: 0;
}

/* --- Cabecera Fija --- */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #333;
    height: 80px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.contact-info {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info a {
    color: var(--text-color);
    transition: color 0.3s;
}

.contact-info a:hover {
    color: var(--primary-color);
}

.contact-info a.header-social-icon {
    font-size: 1.4rem; /* Hacemos el icono de red social un poco más grande */
    gap: 0; /* No necesita espacio si solo es un icono */
}

.main-nav a {
    color: var(--text-color);
    margin-left: 1.5rem;
    font-weight: bold;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* --- Sección Hero y Carrusel --- */
#hero-carousel {
    position: relative;
    height: 85vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

#hero-carousel::after { /* Capa oscura sobre las imágenes */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s;
}
.carousel-btn:hover { background-color: var(--primary-color); }
.prev-btn { left: 1rem; }
.next-btn { right: 1rem; }

.hero-text {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 950px; /* Aumentado para dar más espacio al subtítulo */
    padding: 0 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    margin-top: 1rem;
    transition: transform 0.3s, background-color 0.3s;
}

.cta-button:hover {
    transform: scale(1.05);
    background-color: #ff0a16;
}

/* --- Sección Galería (Feed de Instagram) --- */
#instagram-feed-widget-container {
    width: 100%;
    max-width: 800px; /* Ancho máximo para el feed */
    margin: 2rem auto; /* Centrar y dar espacio */
    background-color: #333; /* Fondo para el contenedor */
    padding: 1rem;
    border-radius: 8px;
    min-height: 300px; /* Altura mínima para que se vea el placeholder */
    display: flex; /* Para centrar el texto del placeholder */
    align-items: center; justify-content: center; color: #f4f4f4; /* Estilos para el placeholder */
}

/* --- Secciones de Contenido --- */
.content-section {
    padding: 5rem 2rem;
}

.dark-bg {
    background-color: var(--light-dark-color);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.section-container.column {
    flex-direction: column;
    text-align: center;
}

.text-content, .image-content {
    flex: 1;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* --- Sección de Video --- */
#video h2 {
    margin-bottom: 0.25rem; /* Reducimos el espacio con el párrafo inferior */
}

.video-wrapper {
    width: 100%;
    max-width: 960px; /* Ancho máximo para el video */
    border-radius: 8px;
    overflow: hidden; /* Para que el video respete el borde redondeado */
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    /* Añadimos aspect-ratio para mantener una proporción 16:9 y un fondo negro */
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.video-wrapper video {
    display: block; /* Elimina espacio extra debajo del video */
    width: 100%;
    height: 100%;
    /* Con object-fit, el video cubre el área sin estirarse. */
    object-fit: cover;
}
/* Estilos para los enlaces en la sección de contacto */
#contacto .text-content a {
    color: var(--text-color);
    transition: color 0.3s;
}

#contacto .text-content a:hover {
    color: var(--primary-color);
}

/* Estilos para el mapa de contacto */
#contacto .image-content iframe {
    width: 100%; /* Asegura que el mapa sea responsive */
    border: none;
    border-radius: 8px;
}

/* --- Sección de Horarios (Tabla) --- */
.schedule-container {
    width: 100%;
    overflow-x: auto; /* Para responsive en pantallas pequeñas */
    margin-top: 2rem;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 1.2rem;
    min-width: 700px; /* Evita que la tabla se comprima demasiado */
}

.schedule-table th, .schedule-table td {
    border: 1px solid #444;
    padding: 12px 8px;
    vertical-align: middle;
}

.schedule-table thead {
    background-color: var(--primary-color);
    color: white;
}

.schedule-table thead th {
    font-size: 1.1rem;
}

.schedule-table tbody tr:nth-child(odd) {
    background-color: #2f2f2f;
}

.schedule-table tbody td:first-child {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.schedule-table td:empty {
    background-color: rgba(0,0,0,0.2);
}

.open-boxeo {
    display: block;
    margin-top: 5px;
    color: #ccc;
    
}

/* --- Sección de Tarifas (Tabla) --- */
.tarifas-container {
    width: 100%;
    overflow-x: auto;
}

.tarifas-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px; /* Ajustado para 3 columnas */
}

.tarifas-table th, .tarifas-table td {
    border: 1px solid #333;
    padding: 1.5rem;
    vertical-align: middle;
}

.tarifas-table thead {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.tarifas-table thead th {
    font-size: 1.2rem;
}


.tarifas-table .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.tarifas-table .price span {
    font-size: 1.2rem; /* Aumentado para mayor visibilidad */
    color: var(--text-color);
    font-weight: normal; /* Aseguramos que no herede el bold del precio */
    text-transform: uppercase;
}

.tarifas-table ul {
    list-style: disc;
    padding-left: 20px;
}

.tarifas-table ul li {
    margin-bottom: 0.5rem;
}

.tarifas-table .plan-description {
    white-space: nowrap;
    text-align: center;
    font-size: 1.3rem; /* Aumentado para mejor legibilidad */
}

.tarifas-table .cta-button {
    margin-top: 0;
    white-space: nowrap;
}

.tarifas-table td:nth-last-child(2) {
    text-align: center;
}

.tarifas-table td:last-child {
    text-align: center;
}

/* Se aumenta la especificidad para que el fondo de la fila destacada prevalezca sobre el de las filas pares */
.tarifas-table tbody tr.featured-row {
    border: 2px solid var(--primary-color);
    background-color: rgba(229, 9, 20, 0.1);
}

/* Títulos para las tablas de tarifas separadas */
.tarifa-title {
    font-size: 2rem;
    color: var(--text-color);
    margin-top: 2rem; /* Espacio ajustado por el separador */
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}
.tarifas-container > .tarifa-title:first-of-type {
    margin-top: 0;
}

/* Separador para las tablas de tarifas */
.table-separator {
    border: 0;
    height: 2px; /* Más grueso para mayor visibilidad */
    background-color: white;
    margin:5rem 0; /* Aumentado para dar más distancia */
}

/* --- Estilos del Modal --- */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 2000; /* Asegura que esté por encima de todo */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex; /* Se muestra con flex para centrar contenido */
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #bbb;
}

/* --- Iconos Sociales del Footer --- */
.footer-social-icons {
    margin-bottom: 1rem;
}

.footer-social-icons a {
    color: var(--text-color);
    font-size: 1.8rem; /* Iconos más grandes para el pie de página */
    margin: 0 0.75rem;
    transition: color 0.3s;
}

.footer-social-icons a:hover {
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--light-dark-color);
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-info {
        display: none; /* Ocultamos datos de contacto en pantallas medianas */
    }
}

@media (max-width: 768px) {
    body { padding-top: 60px; }
    .fixed-header { height: 60px; }
    .header-content {
        justify-content: flex-start; /* Alineamos el logo a la izquierda */
        padding: 0 3.4rem; /* Ajustamos el padding para dar espacio en los lados */
    }
    .logo a {
        font-size: 1.2rem; /* Reducimos el tamaño del logo para que quepa mejor */
        text-align: center; /* Asegura que el texto se centre si se divide en dos líneas */
    }
    .main-nav { display: none; } /* Ocultamos nav para simplificar, se podría añadir un menú hamburguesa */

    h1 { font-size: 2.5rem; }
    h2 { 
        font-size: 1.5rem;
        text-align: center;
        margin-bottom: 25px; 
    }

    .section-container {
        flex-direction: column;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    /* --- Ajustes para tablas en móvil --- */
    .schedule-table, .tarifas-table {
        min-width: 0; /* Eliminamos el min-width para que se ajuste mejor */
        font-size: 0.85rem; /* Reducimos un poco más el tamaño de fuente base */
    }

    .schedule-table th, .schedule-table td,
    .tarifas-table th, .tarifas-table td {
        padding: 8px 2px; /* Hacemos el espaciado horizontal mínimo para ganar espacio */
    }

    .schedule-table thead th, .tarifas-table thead th {
        font-size: 0.85rem; /* Reducimos un poco más la cabecera para compactar */
    }

    .schedule-table tbody td:first-child {
        font-size: 0.9rem; /* Reducimos el tamaño de la hora para dar más espacio */
    }

    .tarifas-table .plan-description {
        white-space: normal; /* Permitimos que el texto se divida en varias líneas */
        font-size: 0.95rem;
    }

    .tarifas-table .price {
        font-size: 1.5rem; /* Hacemos el precio un poco más pequeño */
        display: flex;
        flex-direction: column;
        align-items: center;
        line-height: 1.2;
    }

    .tarifas-table .price span {
        font-size: 0.9rem; /* Y su descripción */
    }
    .tarifas-table .cta-button {
        padding: 8px 12px;
        font-size: 0.9rem;
        white-space: normal; /* Permitimos que el texto del botón se divida */
    }

    /* --- Ajuste para el mapa en móvil --- */
    #contacto .image-content iframe {
        height: 500px; /* Reducimos la altura del mapa para que no sea tan grande */
        width: 330px;
    }

    /* --- Ajuste para separadores en móvil --- */
    .table-separator {
        margin: 2.5rem 0; /* Reducimos el margen vertical del separador */
    }
}