/* =========================================
   ÍNDICE DE ESTILOS
   [ 1 ] FUENTES Y VARIABLES GLOBALES
   [ 2 ] HEADER & NAV
   [ 3 ] INICIO & CARRUSEL
   [ 4 ] BOTONES
   [ 5 ] HORARIOS
   [ 6 ] TIPOS DE ENTRENAMIENTO (Tarjetas con imagen al borde)
   [ 7 ] SECCIÓN PAQUETES (Diseño Premium Dark)
   [ 8 ] TARJETAS GENERALES Y CITAS
   [ 9 ] TIENDA Y GALERÍA
   [ 10 ] FOOTER
   [ 11 ] MODALES
   [ 12 ] MEDIA QUERIES (Responsividad)
   ========================================= */

/* =========================================
   [ 1 ] FUENTES Y VARIABLES GLOBALES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@400;700&display=swap');

:root {
    --header-height: 3.5rem;
    --main-red: #A52024;
    --dark-color: #000000;
    --white-color: #FFFFFF;
    --text-color: #E0E0E0;
    --body-bg: #101010;

    --body-font: 'Lato', sans-serif;
    --title-font: 'Bebas Neue', cursive;

    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    
    --font-bold: 700;
}

/* Reset básico para todos los elementos */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    position: relative; 
}

/* Marca de agua - Fondo global del sitio */
html::before {
    content: '';
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/img/logofondo.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 500px; 
    opacity: 0.8; 
    z-index: -100; 
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-bg);
    color: var(--text-color);
    overflow-x: hidden;
}

/* =========================================
   TITULOS DE SECCIÓN (CAJA NEGRA PULSANTE)
   ========================================= */
.section-title-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.section-title-container .card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    padding: 0.7rem 1.15rem;
    border-radius: 4px;
    z-index: 5;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    margin: 0 auto;
    text-align: center;
    background: #000000;
    border: 1px solid var(--main-white-color);
    animation: pulseBoxTitle 3s infinite ease-in-out;
}

@keyframes pulseBoxTitle {
    0% { box-shadow: 0 4px 15px rgba(0,0,0,0.6); border-color: var(--main-red); }
    50% { box-shadow: 0 0 20px rgba(255, 82, 82, 0.4); border-color: #ff7777; }
    100% { box-shadow: 0 4px 15px rgba(0,0,0,0.6); border-color: var(--main-red); }
}

.notititle {
    color: var(--main-white-color);
    font-weight: 700;
    font-size: clamp(1.2rem, 3.5vw, 2rem);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-shadow: none;
    margin: 0;
    z-index: 2;
}

.card .bg, .card .blob { display: none; } /* Simplified for index */

ul { list-style: none; }
a { text-decoration: none; }
img, video { max-width: 100%; height: auto; }

/* Contenedores y espaciados generales */
.container {
    max-width: 1024px;
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding: 4.5rem 0 2rem;
}

.section__title {
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    text-align: center;
    color: var(--main-red);
}

.main { overflow: hidden; }

/* =========================================
   [ 2 ] HEADER & NAV
   ========================================= */
.header {
    width: 100%;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: .3s; 
}

.scroll-header {
    background-color: #000000 !important;
    box-shadow: 0 4px 8px hsla(0, 0%, 0%, 0.3);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.nav__logo {
    color: var(--white-color);
    font-family: var(--title-font);
    font-size: 1.2rem;
}

.nav__logo span { color: var(--main-red); }

.nav__toggle, .nav__close {
    font-size: 1.5rem;
    color: var(--white-color);
    cursor: pointer;
}

.nav__list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav__link {
    color: var(--white-color);
    font-family: 'Lato', sans-serif; 
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    transition: .3s;
}

.nav__link:hover, .active-link { color: var(--main-red); }

.nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
}

/* =========================================
   [ 3 ] INICIO & CARRUSEL
   ========================================= */
.inicio {
    height: 100vh;
    position: relative;
    display: grid;
    align-items: center;
}

.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #000;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: fadeLoop 20s infinite; 
}

.carousel-slide:nth-child(1) { animation-delay: 0s; }
.carousel-slide:nth-child(2) { animation-delay: 5s; }
.carousel-slide:nth-child(3) { animation-delay: 10s; }
.carousel-slide:nth-child(4) { animation-delay: 15s; }

@keyframes fadeLoop {
    0% { opacity: 0; transform: scale(1.1); }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; }
}

.inicio__container {
    position: relative;
    z-index: 1;
}

.inicio__data { text-align: center; }
.inicio__title { font-size: var(--h1-font-size); margin-bottom: 1rem; }
.inicio__description { margin-bottom: 2.5rem; }

/* =========================================
   [ 4 ] BOTONES
   ========================================= */
.button {
    display: inline-block;
    background-color: var(--main-red);
    color: var(--white-color);
    padding: 1rem 1.75rem;
    font-weight: var(--font-bold);
    transition: .3s;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px hsla(0, 79%, 38%, 0.4);
}

.button-dark { background-color: #222; }
.button-dark:hover { background-color: var(--dark-color); box-shadow: 0 5px 15px hsla(0, 0%, 0%, 0.4); }
.button-small { padding: .75rem 1rem; font-size: var(--small-font-size); }

/* =========================================
   [ 5 ] HORARIOS
   ========================================= */
.horarios__container { overflow-x: auto; }

.horarios__table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 600px;
}

.horarios__table th, .horarios__table td {
    padding: 1rem .5rem;
    border: 1px solid #443e3e;
}

.horarios__table td:first-child {
    background-color: #1a1a1a; 
    border: 1px solid #443e3e; 
    color: var(--text-color); 
    font-family: var(--body-font); 
    font-weight: normal; 
    font-size: 1rem; 
    position: sticky;
    left: 0;
    z-index: 10;
}

.horarios__table th {
    background-color: #1a1a1a;
    font-family: var(--title-font);
    letter-spacing: 1px;
}

.clase-general { background-color: #000000; }
.clase-ninos { background-color: #440000; }
.clase-seleccionados { background-color: #000275; color: #ffffff; font-weight: bold; }

.horarios__leyenda {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.color-box {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 5px;
    vertical-align: middle;
}

.horarios__grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
}

.horarios__table--semana {
    flex-grow: 1;
    width: auto;
}

.horarios__sabado-columna {
    width: 200px;
    background-color: #a01f1f;
    color: white;
    border-radius: 8px;
    padding-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.horarios__sabado-titulo {
    background-color: #831a1a;
    padding: 10px 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
}
.horarios__sabado-clase { padding: 0 10px; }
.horarios__sabado-hora { font-weight: bold; margin-bottom: 5px; }

/* =========================================
   [ 6 ] TIPOS DE ENTRENAMIENTO
   Tarjetas con imágenes sin borde (edge-to-edge)
   ========================================= */
.paquetes-tipos__container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
}

/* La tarjeta base no tiene padding para que la imagen ocupe todo el ancho */
.paquetes-tipos__card {
    background-color: #1c1c1c;
    padding: 0; 
    text-align: center;
    border: 1px solid transparent;
    transition: .3s;
    border-radius: 8px;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
}

.paquetes-tipos__card:hover {
    border-color: var(--main-red);
    transform: translateY(-5px);
}

.paquetes-tipos__img {
    width: 100%;
    height: 180px; 
    object-fit: cover;
    margin-bottom: 0; 
}

/* El padding se aplica solo al contenedor del texto inferior */
.paquetes-tipos__content {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.paquetes-tipos__title {
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

.paquetes-tipos__description {
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Asegura que todos los botones queden alineados abajo, aunque el texto varíe */
.paquetes-tipos__content .button {
    margin-top: auto; 
}

/* =========================================
   [ 7 ] SECCIÓN PAQUETES (DISEÑO PREMIUM)
   Fondo con resplandor y botones centrados
   ========================================= */
/* =========================================
   [ 7 ] SECCIÓN PAQUETES (DISEÑO PREMIUM DARK)
   ========================================= */
.hero { 
    position: relative; 
    overflow: hidden; 
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 40px 5%;
    background-color: #080808; 
}

/* --- Elementos de fondo (Parallax) --- */
.glow-wrap {
    position: absolute;
    will-change: transform;
    transition: transform 0.1s ease-out;
    right: 15%; 
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.glow-bg {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(165, 32, 36, 0.15) 0%, rgba(10, 10, 10, 0) 70%);
}

.warrior-wrap { 
    position: absolute; 
    will-change: transform; 
    transition: transform 0.1s ease-out; 
    right: 10%; 
    top: 50%; 
    transform: translateY(-50%) translateX(0px); 
    z-index: 2;
    opacity: 0.15;
    width: 400px;
}

.warrior-wrap img {
    width: 100%;
    height: auto;
}

/* --- Contenedor de Texto --- */
.contenido-paquetes {
    z-index: 3;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    max-width: 600px;
    margin-left: 5%;
}

.etiqueta-membresias {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e64a41;
    font-family: var(--body-font);
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.etiqueta-membresias .linea {
    display: inline-block;
    width: 30px;
    height: 2px;
    background-color: #e64a41;
}

.titulo-principal {
    font-family: var(--body-font);
    font-weight: 900;
    font-size: 7.5rem;
    letter-spacing: 0px;
    margin-bottom: 0;
    color: #ffffff;
    line-height: 1;
}

.texto-rojo {
    color: #e64a41;
}

.subtitulo {
    font-family: var(--body-font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 4px;
    margin-top: 10px;
    margin-bottom: 25px;
    color: #888;
}

.descripcion {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    color: #aaa;
    max-width: 400px;
}

/* --- Botón estilo Outline --- */
.button-outline {
    background-color: transparent;
    border: 1px solid #444;
    color: var(--white-color);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.button-outline:hover {
    border-color: #e64a41;
    background-color: rgba(230, 74, 65, 0.05);
}

/* --- Scroll Indicator --- */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 3;
}

.scroll-texto {
    color: #444;
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
}

.circle-arrow {
    width: 45px;
    height: 45px;
    border: 1px solid #333;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    background-color: #111;
}

/* --- Compatibilidad con nombre anterior --- */

/* =========================================
   [ 8 ] TARJETAS GENERALES Y CITAS
   Usadas para las secciones estándar
   ========================================= */
.pagos__container,
.personalizados__container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.citas__container {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.pago__card,
.personalizados__card,
.cita__card { 
    background-color: #1c1c1c;
    padding: 1.5rem 1rem; 
    text-align: center;
    border: 1px solid transparent;
    transition: .3s;
    border-radius: 8px;
    position: relative; 
    z-index: 1; 
}

.pago__card:hover,
.personalizados__card:hover {
    border-color: var(--main-red);
    transform: translateY(-5px);
}

.cita__card { padding: 2rem; }

.cita__description { margin-bottom: 1.5rem; }

/* Icono principal en cada tarjeta de cita (aumentar tamaño) */
.cita__card > i.fa-solid,
.cita__card > img.cita__icon {
    display: block;
    margin: 0.75rem auto;
}

/* Tamaños por defecto (ajustables) */
.cita__card > i.fa-solid { font-size: 3.5rem; }
.cita__card > img.cita__icon { width: 56px; height: 56px; object-fit: contain; }

.cita__contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.button-contact {
    color: var(--white-color);
    background-color: #333;
    padding: .5rem 1rem;
    border-radius: 5px;
    transition: .3s;
}

.button-contact:hover { background-color: var(--main-red); }

/* =========================================
   [ 9 ] TIENDA Y GALERÍA
   ========================================= */
.tienda__container {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.producto__card {
    background-color: var(--dark-color);
    text-align: center;
    padding: 1rem;
    border-radius: 5px;
    overflow: hidden;
    transition: .3s;
    border: 1px solid #333;
}

.producto__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px hsla(0, 0%, 0%, 0.4);
    border-color: var(--main-red);
}

.producto__img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 5px;
    background-color: #000;
}

.producto__card video.producto__img {
    height: 250px; 
    object-fit: cover; 
    background-color: #000;
}

.producto__title {
    font-size: 1.25rem;
    margin-bottom: .25rem;
}

.producto__price {
    display: block;
    color: var(--main-red);
    font-weight: var(--font-bold);
    margin-bottom: 1rem;
}

/* Carrusel de la tienda (Mini Galería) */
.mini-galeria__contenedor {
    position: relative; 
    height: 250px;      
    width: 100%;
    overflow: hidden;   
    border-radius: 5px;
    margin-bottom: 1rem;
    background-color: #000; 
}

.mini-galeria__track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    width: 100%;
    transition: transform 0.3s ease-in-out;
}

.mini-galeria__slide {
    position: absolute; 
    top: 0;
    left: 0;            
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mini-galeria__slide.activo {
    opacity: 1;
    visibility: visible;
}

.mini-galeria__slide img,
.mini-galeria__slide video {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    display: block;
}

.mini-galeria__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(165, 32, 36, 0.7); 
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mini-galeria__btn:hover { background: rgba(165, 32, 36, 1); }
.mini-galeria__btn--izq { left: 10px; }
.mini-galeria__btn--der { right: 10px; }
.oculto { display: none; }

/* =========================================
   [ 10 ] FOOTER
   ========================================= */
.footer {
    background-color: var(--dark-color);
    padding-top: 4rem;
}

.footer__container {
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer__content { display: grid; gap: 2rem; }

.footer__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--main-red);
}

.footer__description i { color: var(--main-red); margin-right: .5rem; }

.footer__social { display: flex; gap: 1.5rem; }

.footer__social-link { font-size: 1.5rem; color: var(--text-color); transition: .3s; }
.footer__social-link:hover { color: var(--main-red); }

.footer__copy { padding: 2rem 0; text-align: center; font-size: var(--small-font-size); }
.footer__map iframe { width: 100%; border-radius: 5px; }

.footer__dev { font-size: 0.75rem; color: #888; margin-top: 5px; display: inline-block; }
.footer__dev a { color: var(--white-color); font-weight: bold; text-decoration: none; transition: 0.3s; }
.footer__dev a:hover { color: var(--main-red); text-shadow: 0 0 8px rgba(165, 32, 36, 0.6); }

/* =========================================
   [ 11 ] MODALES
   ========================================= */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    padding-top: 50px;
}

.modal-contenido {
    background-color: #101010;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid var(--main-red);
    width: 90%; 
    max-width: 450px; 
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 20px rgba(165, 32, 36, 0.2);
}

.modal-contenido label { 
    display: block; 
    margin-top: 15px; 
    margin-bottom: 5px; 
    font-weight: bold; 
    color: var(--white-color); 
}

.modal-contenido select, 
.modal-contenido input[type="text"] {
    width: 100%; 
    padding: 12px; 
    margin-bottom: 10px; 
    border: 1px solid #333; 
    background-color: #222; 
    color: white; 
    border-radius: 6px;
}

.cerrar { 
    color: #aaa; 
    float: right; 
    font-size: 28px; 
    font-weight: bold; 
    cursor: pointer; 
}

.cerrar:hover { color: var(--main-red); }

.modal-contenido .button {
    width: 100%; 
    margin-top: 20px; 
    background-color: var(--dark-color); 
    color: var(--white-color); 
    border: none; 
    padding: 12px; 
    font-size: 1rem; 
    cursor: pointer; 
    border-radius: 6px; 
    transition: 0.3s;
}

.modal-contenido .button:hover { background-color: #800c0c79; }

#opcion-onzas, #opcion-modelo { display: none; }

/* =========================================
   [ 12 ] MEDIA QUERIES (Responsividad)
   ========================================= */
@media screen and (max-width: 1023px) {
    .nav__menu {
        position: fixed; 
        background-color: var(--dark-color); 
        top: -100%; 
        left: 0; 
        width: 100%; 
        padding: 4rem 0; 
        text-align: center; 
        transition: 0.4s; 
        box-shadow: 0 4px 4px rgba(0,0,0,0.1);
    }
    .show-menu { top: 0; }
}

@media screen and (max-width: 768px) {
    .horarios__grid { flex-direction: column; }
    .horarios__sabado-columna { width: 100%; }
    
    .titulo-principal { font-size: 3.5rem; }
    .subtitulo { font-size: 1.8rem; }
    .contenido-paquetes {
        align-items: center;
        text-align: center;
        margin-left: 0;
        margin-top: 80px;
    }
    .descripcion { text-align: center; }
    
    .titulo-principal { font-size: 4.5rem; }
    
    .warrior-wrap {
        right: auto;
        left: 50%;
        top: 35%; 
        transform: translateX(-50%) translateY(-50%);
        width: 300px;
    }
    .glow-wrap {
        right: auto;
        left: 50%;
        top: 35%;
        transform: translateX(-50%) translateY(-50%);
    }
}

@media screen and (min-width: 768px) {
    .nav__menu { 
        width: auto; 
        background-color: transparent; 
        padding: 0; 
        position: initial; 
        box-shadow: none; 
    }
    .nav__list { flex-direction: row; gap: 2rem; }
    .nav__toggle, .nav__close { display: none; }
    .nav__link { background: transparent; margin: 0; }
    .nav__link:hover, .active-link { background: transparent; transform: none; }
    .inicio__title { font-size: 4.5rem; }
    .footer__content { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (min-width: 1024px) {
    .container { margin-left: auto; margin-right: auto; }
    .section { padding: 6rem 0 2rem; }
    .nav__list { gap: 2.5rem; }
    .nav { 
        max-width: 100% !important; 
        margin-left: 0 !important; 
        margin-right: 0 !important; 
        padding-left: 3rem; 
        padding-right: 3rem; 
    }
}