/* 
    Demo_Gimnasio_MMA — Combat Dark Design System
    Estética: Oscura, Intensa, Profesional
*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;600;700&family=Rajdhani:wght@500;700&display=swap');

:root {
    /* Colors */
    --bg: #0A0A0A;
    --bg2: #121212;
    --bg3: #1A1A1A;
    --red: #C8102E;
    --red-l: #E8374F;
    --red-d: #8B0000;
    --gold: #D4AF37;
    --gold-l: #F4CF57;
    --cream: #F0EDE8;
    --muted: #888888;
    --white: #FFFFFF;
    --border: rgba(200, 16, 46, 0.2);
    
    /* Fonts */
    --font-display: 'Bebas Neue', cursive;
    --font-body: 'Inter', sans-serif;
    --font-sub: 'Rajdhani', sans-serif;
    
    /* Transitions */
    --trans: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, .heading-display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 0.9;
}

p {
    color: var(--muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--trans);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

/* Helper Classes */
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.bg-red { background-color: var(--red); }
.section-tag {
    display: inline-block;
    font-family: var(--font-sub);
    font-weight: 700;
    color: var(--red);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

/* Scroll Fade In Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Components: Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: var(--trans);
    position: relative;
    overflow: hidden;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
}

.btn-primary {
    background-color: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--red-l);
    transform: skew(-2deg);
}

.btn-ghost {
    background-color: transparent;
    border: 1px solid var(--red);
    color: var(--white);
}

.btn-ghost:hover {
    background-color: rgba(200, 16, 46, 0.1);
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--red);
    color: var(--white);
    padding: 6px 0;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--trans);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    padding: 12px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--white);
}

.logo-name span {
    color: var(--red);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-sub);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--cream);
}

.nav-link:hover {
    color: var(--red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--white);
    transition: var(--trans);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0;
    background: linear-gradient(rgba(10,10,10,0.6), rgba(10,10,10,0.8)), url('https://images.unsplash.com/photo-1595078475328-1ab05d0a6a0e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    color: var(--cream);
}

/* ===== MARQUEE ===== */
.tagline-marquee {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: flex;
    gap: 40px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-item {
    font-family: var(--font-display);
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-item span {
    color: var(--red);
    -webkit-text-stroke: 0;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== STATS SECTION ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    background: var(--bg2);
    padding: 40px;
    border-top: 4px solid var(--red);
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--white);
}

.stat-label {
    font-family: var(--font-sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===== DISCIPLINES SECTION ===== */
.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.discipline-card {
    height: 500px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: var(--trans);
}

.discipline-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 10%, transparent 60%);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--trans);
}

.discipline-card:hover .discipline-overlay {
    background: linear-gradient(to top, rgba(200, 16, 46, 0.8) 10%, transparent 80%);
}

.discipline-card h3 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.discipline-card p {
    color: var(--cream);
    max-width: 280px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--trans);
}

.discipline-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* ===== HORARIO GRID ===== */
.schedule-container {
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.schedule-table th {
    background: var(--bg2);
    padding: 20px;
    font-family: var(--font-sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid var(--border);
}

.schedule-table td {
    padding: 15px;
    border: 1px solid var(--border);
    vertical-align: top;
    height: 120px;
    width: 14.28%;
}

.class-item {
    background: rgba(200, 16, 46, 0.1);
    border-left: 3px solid var(--red);
    padding: 10px;
    margin-bottom: 8px;
}

.class-time {
    display: block;
    font-family: var(--font-sub);
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--red);
}

.class-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.price-card {
    background: var(--bg2);
    padding: 50px 40px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--trans);
}

.price-card.featured {
    border: 2px solid var(--red);
    transform: scale(1.05);
    background: var(--bg3);
}

.price-header h4 {
    font-family: var(--font-sub);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--red);
}

.price-value {
    font-family: var(--font-display);
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 30px;
}

.price-value span {
    font-size: 1.5rem;
}

.price-features {
    margin-bottom: 40px;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
}

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--trans);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
}

/* Responsive Overhaul - High Density Grid Mode */
@media (max-width: 900px) {
    .container { padding: 0 15px; }

    .navbar { padding: 10px 0; }
    
    .nav-links { 
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.98);
        padding: 25px 0;
        gap: 15px;
    }
    
    .nav-links.active { display: flex; }

    .hero {
        padding: 80px 0 40px;
        height: auto;
        min-height: auto;
    }

    .hero h1 { 
        font-size: 2.8rem; 
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding: 0;
    }

    .hero-actions .btn {
        padding: 12px !important;
        font-size: 0.85rem;
        border-radius: 4px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 0;
    }

    .stat-card { padding: 15px 5px; border-radius: 8px; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.6rem; }

    .disciplines-grid {
        grid-template-columns: 1fr 1fr; /* 2 IMÁGENES POR FILA */
        gap: 10px;
    }

    .discipline-card { 
        height: 180px; /* Altura reducida para ver más */
        border-radius: 10px;
        margin-bottom: 0;
    }
    
    .discipline-overlay {
        padding: 15px;
        background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    }

    .discipline-card h3 { font-size: 1.2rem; }
    .discipline-card p { display: none; } /* Ocultar texto largo en móvil para ahorrar espacio */

    section { padding: 35px 0; }
    
    .section-header { margin-bottom: 25px; }
    .section-header h2 { font-size: 2.2rem !important; }
    .section-tag { font-size: 0.6rem; }

    .pricing-grid {
        grid-template-columns: 1fr 1fr; /* PRECIOS TAMBIÉN EN PARES SI CABEN */
        gap: 10px;
    }

    .price-card {
        padding: 20px 10px;
        border-radius: 12px;
    }
    .price-header h4 { font-size: 0.9rem; }
    .price-value { font-size: 2.2rem; }
    .price-value span { font-size: 0.8rem; }
    .price-features { display: none; } /* Simplificar para vista rápida */

    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 400px) {
    .hero h1 { font-size: 2.4rem; }
}
