:root {
    --primary: #111111;
    --accent: #f9485c;
    --bg-light: #F5F5F7;
    --white: #FFFFFF;
    --text-gray: #86868b;
    --radius: 20px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Navegación --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px; 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px; 
    width: 100%;
}

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

.nav-logo img {
    height: 40px; 
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-menu a:hover { color: var(--accent); }

.btn-contact {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 25px;
    border-radius: 50px;
}

/* Hamburguesa (Oculta en PC) */
.hamburger {
    display: none;
    cursor: pointer;
}
.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary);
}

/* --- Hero Section (Portada) --- */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; /* Espacio para que no lo tape el menú */
    padding-bottom: 50px;
}

.logo-placeholder img {
    max-width: 600px; 
    width: 600px;      
    animation: fadeScale 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: scale(0.9);
}

/* SLOGAN: Vuelve a ser grande y negrita */
.hero h2 {
    margin-top: 30px;
    font-size: 2.2rem; /* Tamaño grande */
    font-weight: 800;  /* Negrita */
    color: var(--primary); /* Color negro fuerte, no gris */
    letter-spacing: -1px;
    line-height: 1.2;
    max-width: 800px;
    animation: fadeInUp 1.5s 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* --- Clases Grid --- */
.classes-section { padding: 80px 0; margin-bottom: 20px; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
}

.grid-cards {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 40px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-10px); }

.card-img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
}

.card-content { padding: 35px; }

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

/* --- Formulario --- */
.contact-section { padding: 100px 0; background: var(--white); }
.form-box { max-width: 600px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }

input, textarea {
    width: 100%;
    padding: 18px;
    border: 1px solid #ddd;
    border-radius: 15px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--bg-light);
}

button[type="submit"] {
    width: 100%;
    padding: 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}
button[type="submit"]:hover { background: #333; }

/* --- Footer --- */
footer { background: #111; color: #fff; padding: 80px 0 20px; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 60px; }
.socials a { font-size: 1.8rem; color: #fff;  }
.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding: 20px 20px; 
    color: #666;
    font-size: 0.8rem;
}


.footer-col:last-child {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el icono horizontalmente */
    text-align: center;    /* Centra el texto */
}


.socials a {
    font-size: 2rem; 
    display: inline-block;
    margin-top: 10px; /* Un pelín de aire entre el título "Síguenos" y el logo */
}

.location-page {
    padding-top: 140px; /* Espacio extra para bajar del menú fijo */
    padding-bottom: 80px;
    min-height: 80vh;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
}

/* Grid de 2 columnas: Info + Mapa */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; 
    gap: 40px;
    align-items: stretch; /* Estira las cajas para que midan lo mismo de alto */
}

/* Estilos específicos de la tarjeta de info */
.info-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.info-text p, .info-text a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    line-height: 1.4;
}

.info-text a:hover {
    color: var(--accent);
}

.btn-full {
    display: block;
    text-align: center;
    background: var(--primary);
    color: white;
    padding: 15px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-full:hover {
    background: #333;
}

/* Estilos del Mapa */
.map-card {
    padding: 0; /* Sin padding para que el mapa toque los bordes */
    min-height: 400px;
    overflow: hidden; /* Recorta las esquinas del iframe */
    position: relative;
}

.map-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Animaciones --- */
@keyframes fadeScale { to { opacity: 1; transform: scale(1); } }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    /* Ajuste de márgenes seguros */
    .container { padding: 0 25px; } 

    /* Hamburguesa visible */
    .hamburger { display: block; z-index: 1001; }
    
    /* Menú Móvil Oculto por defecto */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px; /* Debajo de la navbar */
        flex-direction: column;
        background: #fff;
        width: 100%;
        height: calc(100vh - 80px); /* Ocupa el resto de pantalla */
        text-align: center;
        transition: 0.3s;
        padding-top: 40px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    
    /* Clase activa para mostrar menú */
    .nav-menu.active { left: 0; }
    
    .nav-menu li { margin: 20px 0; }
    
    /* Animación hamburguesa al abrir */
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Ajustes generales móvil */
    .grid-cards { grid-template-columns: 1fr; } 
    .hero h2 { font-size: 1.8rem; }
    .logo-placeholder img { max-width: 320px; }
    .footer-content { flex-direction: column; text-align: center; margin-bottom: 60px; }
    .hero h2 { 
        font-size: 1.8rem; 
        padding: 0 20px; /* Margen a los lados */
    }

  
    .logo-placeholder img { 
        max-width: 320px; 
        padding: 0 10px; 
    }

    .location-grid {
        grid-template-columns: 1fr; /* Una sola columna en móvil/tablet */
    }
    
    .map-card {
        min-height: 350px; /* Altura fija para el mapa en móvil */
    }

    .page-title {
        font-size: 2rem;
    }
}


.contact-page {
    padding-top: 160px; /* Espacio para que el título no se pegue al menú */
    padding-bottom: 100px;
    min-height: 80vh;
    background: var(--white); /* Fondo blanco para diferenciarla */
}

/* Ajuste para que el formulario se vea centrado y elegante en su propia página */
.contact-page .form-box {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06); 
    padding: 40px;
    background: var(--bg-light); /* Fondo gris claro dentro del formulario */
    border-radius: 20px;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-page {
        padding-top: 120px;
    }
    .contact-page .form-box {
        padding: 25px;
    }
}



.team-page {
    padding-top: 140px;
    padding-bottom: 100px;
    min-height: 80vh;
}

.team-grid {
    display: grid;
    /* 4 columnas en pantallas grandes */
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-10px);
}

.team-img-wrapper {
    width: 100%;
    height: 300px; /* Altura fija para que todas las fotos se vean igual */
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto recorta la foto para que llene el hueco sin deformarse */
    transition: transform 0.5s ease;
}

.team-card:hover .team-img {
    transform: scale(1.05);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    font-weight: 800;
}

.team-info .role {
    display: block;
    color: var(--accent); 
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Responsive para Equipo */
@media (max-width: 1100px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
    
    .team-img-wrapper {
        height: 350px; 
    }
}

.stats-section {
    background: var(--primary); /* Fondo negro para contraste */
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent); /* Tu color rosa/rojo */
    margin-bottom: 10px;
    line-height: 1;
}

.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
}


.cta-section {
    background: var(--accent); 
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.btn-white {
    background: white;
    color: var(--accent) !important;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
}

.btn-white:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Ajustes Responsive para el Punch */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stat-item h3 { font-size: 2.5rem; }
    .cta-content h2 { font-size: 2rem; }
}

/* --- MINI STATS EN HERO --- */
.hero-stats-mini {
    display: flex;
    justify-content: center;
    gap: 40px;          /* Espacio entre cada dato */
    margin-top: 40px;   /* Separación del eslogan */
    flex-wrap: wrap;  
}

.mini-stat {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre icono y texto */
    font-size: 1rem; /* Tamaño pequeñito pero legible */
    font-weight: 600;
    color: var(--text-gray); /* Gris elegante */
    background: white; /* Fondo blanco sutil */
    padding: 10px 20px;
    border-radius: 50px; /* Forma de píldora */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Sombra muy suave */
    transition: transform 0.3s;
}

.mini-stat:hover {
    transform: translateY(-3px); 
    color: var(--primary);
}

.mini-stat i {
    color: var(--accent); 
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .hero-stats-mini {
        gap: 15px;
        margin-top: 30px;
    }
    
    .mini-stat {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
}

a.mini-stat {
    text-decoration: none;
    cursor: pointer;
}

a.review-link:hover {
    background-color: var(--white);
    border: 1px solid var(--accent); 
    transform: translateY(-5px); 
}

a.review-link:hover span {
    color: var(--accent); 
}

.info-text p a {
    word-break: break-word; 
    overflow-wrap: anywhere; 
    
    display: block; 
    line-height: 1.2; 
}

.hyrox-section {
    padding: 80px 0;
    overflow: hidden; 
}

.swiper {
    width: 100%;
    padding-bottom: 80px !important; 
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 400px;
    border-radius: 20px; 
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background-color: var(--accent) !important;
}