/* Variables Globales */
:root {
    --accent: #ffffff;
    --dark: #0a0a0a;
    --gray: #1a1a1a;
    --text-muted: #aaa;
    --primary-red: #c41e3a;
    --dark-red: #8B0000;
    --transition-smooth: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navegación */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 25px;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.95), transparent);
}

nav ul { 
    display: flex; 
    list-style: none; 
    gap: 40px; 
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

nav ul li a:hover {
    opacity: 1;
    letter-spacing: 4px;
    color: var(--primary-red);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.3), rgba(0,0,0,0.8)), 
                url('media/img/hero\ banner.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: min(70vw, 600px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: clamp(180px, 32vw, 420px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.1rem;
    letter-spacing: 5px;
    margin-top: 25px;
    font-weight: 300;
    color: #eee;
    text-transform: uppercase;
}

/* Seccion Entrena Con Los Mejores */
.train-best {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 110px 10% 30px;
}

.train-best-content {
    max-width: 460px;
}

.train-best-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.train-text {
    color: var(--text-muted);
    max-width: 460px;
    line-height: 1.8;
}

.train-best-image {
    display: flex;
    justify-content: center;
}

.train-best-image img {
    width: min(100%, 340px);
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.25);
    border: 2px solid rgba(196, 30, 58, 0.3);
}

.train-best-cta {
    padding: 0 10% 80px;
    text-align: center;
}

/* Seccion Menú */
.disciplines {
    padding: 80px 10% 100px;
    text-align: center;
}

.disciplines h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.grid-disciplines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Sección Menú Mensual */
.menu-mensual {
    padding: 80px 10% 100px;
    text-align: center;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), transparent);
}

.menu-mensual h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: -1px;
}

.menu-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.menu-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(196, 30, 58, 0.25);
    border: 2px solid rgba(196, 30, 58, 0.3);
    transition: var(--transition-smooth);
}

.menu-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    cursor: pointer;
    display: block;
    transition: var(--transition-smooth);
}

.menu-item:hover .menu-img {
    transform: scale(1.05);
}

.menu-item p {
    padding: 15px;
    background: rgba(196, 30, 58, 0.1);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-red);
    text-transform: uppercase;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(196, 30, 58, 0.5);
}

.lightbox-caption {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 20px;
    font-weight: 700;
    letter-spacing: 1px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--primary-red);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lightbox-close:hover {
    color: #fff;
    transform: scale(1.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Flip Cards */
.flip-card {
    background-color: transparent;
    height: 450px;
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    cursor: pointer;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.flip-front {
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(196, 30, 58, 0.3);
}

.flip-front::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(196, 30, 58, 0.4));
    border-radius: 20px;
}

.flip-front h3 {
    position: relative;
    z-index: 1;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.flip-back {
    background: #121212;
    transform: rotateY(180deg);
    border: 2px solid rgba(196, 30, 58, 0.5);
}

.flip-back h4 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: var(--primary-red);
}

.discipline-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--primary-red);
}

.flip-back p {
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 80px 10% 40px;
    background: var(--gray);
    border-top: 1px solid rgba(196, 30, 58, 0.2);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-col h3 {
    font-size: 1.3rem;
    font-weight: 900;
    margin-bottom: 30px;
    letter-spacing: 2px;
    color: var(--primary-red);
}

.footer-col p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.footer-col i {
    width: 25px;
    color: var(--primary-red);
    margin-right: 10px;
}

/* Horario */
.schedule-grid { 
    display: grid; 
    gap: 12px; 
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(196, 30, 58, 0.2);
    padding-bottom: 8px;
}

.day { 
    font-weight: 700; 
    color: #fff; 
}

.hours { 
    color: var(--text-muted); 
    font-size: 0.85rem; 
}

.closed { 
    color: var(--primary-red) !important; 
    font-weight: 700; 
}

/* Botones */
.btn-cta {
    padding: 18px 35px;
    background: var(--primary-red);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    display: inline-block;
    margin-top: 25px;
    border-radius: 5px;
    transition: var(--transition-smooth);
    border: 2px solid var(--primary-red);
}

.btn-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.4);
    background: transparent;
    color: var(--primary-red);
}

.btn-ghost {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}

.btn-ghost:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
}

/* Responsive */
@media (max-width: 768px) {
    nav ul { gap: 20px; }
    nav ul li a { font-size: 0.7rem; }
    
    .train-best {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 80px 8% 24px;
    }
    
    .train-best-content { 
        text-align: center; 
    }
    
    .train-text { 
        margin: 0 auto; 
    }
    
    .train-best-image img { 
        margin: 0 auto;
        width: min(100%, 300px);
    }
    
    .train-best-cta { 
        padding: 0 8% 56px; 
    }
    
    footer { 
        text-align: center; 
    }
    
    .schedule-row { 
        justify-content: space-between; 
    }
    
    .disciplines h2 {
        margin-bottom: 40px;
    }

    .grid-disciplines {
        gap: 20px;
    }

    .flip-card {
        height: 350px;
    }

    .menu-mensual {
        padding: 60px 8% 80px;
    }

    .menu-img {
        height: 300px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-img {
        max-width: 95%;
        max-height: 80%;
    }
}
