html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

:root {
    --primary: #0B1C3D;
    --secondary: #E10600;
    --accent: #FFD700;
    --light: #f5f7fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat',sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ================= NAVBAR ================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 30px;
    backdrop-filter: blur(12px);
    background: rgba(11,28,61,.75);
    z-index: 9999;
    transition: .4s;
}

    .navbar.scrolled {
        background: #0B1C3D;
        box-shadow: 0 5px 20px rgba(0,0,0,.3);
    }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}




.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    position: relative;
    overflow: hidden;
}

    /* Logo brillo animado */
    .logo::after {
        content: '';
        position: absolute;
        top: 0;
        left: -75%;
        width: 50%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,.6), transparent );
        transform: skewX(-25deg);
        animation: shine 4s infinite;
    }

@keyframes shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}

.logo span {
    color: #FFD700;
}

.menu-toggle {
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

/* ================= SIDE MENU ================= */

.side-menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 250px;
    height: 100%;
    background: #0B1C3D;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    transition: .4s;
    z-index: 9998;
}

    .side-menu a {
        color: white;
        text-decoration: none;
        padding: 15px 25px;
        font-weight: 600;
        transition: .3s;
    }

        .side-menu a:hover {
            background: #E10600;
        }

    .side-menu.active {
        right: 0;
    }

.side-btn {
    background: #E10600;
    margin: 20px;
    text-align: center;
    border-radius: 30px;
    padding: 12px;
}

/* Overlay */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 9997;
}

    .overlay.active {
        opacity: 1;
        visibility: visible;
    }

/* ================= HERO ================= */

.hero {
    height: 100vh;
    /*    background: linear-gradient(rgba(11,28,61,.85),rgba(11,28,61,.85)), url('https://images.unsplash.com/photo-1521417531039-6f76d7d6f8a2') center/cover;*/
    background: linear-gradient(rgba(11,28,61,.85),rgba(11,28,61,.85)), url('/images/academia.jpeg') center center no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    transition: background .5s;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
}

.hero-content span {
    color: #FFD700;
}

.hero-content p {
    margin-top: 15px;
    font-size: 1.2rem;
}

/* Fade + Slide animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlide 1.2s ease forwards;
}

@keyframes fadeSlide {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    padding-top: 80px;
}

/* Responsive */
@media(max-width:768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}


header {
    height: 100vh;
/*    background: linear-gradient(rgba(11,28,61,.85),rgba(11,28,61,.85)), url('https://images.unsplash.com/photo-1521417531039-6f76d7d6f8a2') center/cover;
*/    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
}

header span {
    color: var(--accent);
}

header p {
    margin-top: 15px;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--secondary);
    color: white;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

    .btn:hover {
        transform: scale(1.05);
    }


h2 {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.3rem;
    color: var(--primary);
}

section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,.08);
}


    .card.show {
        opacity: 1;
        transform: translateY(0);
    }

    .card:hover {
        transform: translateY(-10px);
    }

    .card h3 {
        color: var(--secondary);
        margin-bottom: 15px;
    }

.stats {
    background: var(--primary);
    color: white;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 40px;
}

.stat h3 {
    font-size: 3rem;
    color: var(--accent);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}

    .gallery img {
        width: 100%;
        height: 260px;
        object-fit: cover;
        border-radius: 15px;
    }


footer {
    background: #000;
    color: white;
    text-align: center;
    padding: 40px;
}

/* Botón WhatsApp */
.btn-whatsapp {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #25D366;
    color: #fff;
    font-size: 22px;
    padding: 14px 16px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    z-index: 999;
    transition: all .3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
}

/* Botón Top */
.btn-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: #0d6efd;
    color: white;
    border: none;
    font-size: 20px;
    padding: 14px 16px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,.3);
    display: none;
    z-index: 999;
    transition: all .3s ease;
}

.btn-top:hover {
    transform: scale(1.1);
    background: #0b5ed7;
}

@media(max-width:768px) {
    header h1 {
        font-size: 2rem;
    }
}

.input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.language-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* Centrado horizontal */
    align-items: center;
    margin-top: 10px;
}

.language-selector {
    display: flex;
    gap: 15px;
}

.lang-btn {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    opacity: .6;
    transition: all .3s ease;
}

    .lang-btn.active {
        opacity: 1;
        transform: scale(1.2);
    }

    .lang-btn:hover {
        transform: scale(1.2);
    }

.video-header {
    position: relative;
    height: 90vh;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
}
/* Título */
.nav-title {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #FFD700;
}

.navbar-subtitle {
    font-size: 0.85rem;
    /*color: #cbd5e1;*/
    color: #FFFFFF;
    letter-spacing: 1px;
    /*text-transform: uppercase;*/
}
