@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&family=Oswald:wght@400;500;700;900&display=swap');

:root {
    --rojo-mvp: #D32F2F;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --celeste: #81D4FA;
    --gris-claro: #F5F7FA;
    --celeste-intenso: #00BFFF;
    --azul-noche: #0A0F1D;
}

/* =========================================
1. RESET Y CONFIGURACIÓN GLOBAL
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-padding-top: 85px !important;
}

/* El scroll suave solo para computadoras, para que no pelee en móviles */
@media (min-width: 992px) {
    html {
        scroll-behavior: smooth !important;
    }
}

/* TÍTULOS GLOBALES (BESTIALES Y ELEGANTES) */
h1,
h2,
h3,
.logo,
.btn-primary,
.section-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

.section-title {
    text-align: center;
    width: 100%;
    display: block;
    color: var(--negro);
    font-size: 5rem;
    /* MONSTRUOSAMENTE GRANDES POSIBLES */
    font-weight: 900;
    /* EL MÁS GRUESO */
    margin-bottom: 70px;
    letter-spacing: 1px;
    line-height: 1;
    position: relative;
    z-index: 20;
}

/* Destaque de dos colores para el título "SOBRE NOSOTROS" */
.section-title .destaque-titulo {
    color: var(--celeste-intenso);
}

/* Título de Contacto (Blanco sobre fondo oscuro) */
.section-title.titulo-blanco {
    color: var(--blanco) !important;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* =========================================
   CLASE NINJA PARA SEO Y ACCESIBILIDAD (SR-ONLY)
   ========================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =========================================
2. HEADER & NAVEGACIÓN
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 40px;
    z-index: 2000;
    background-color: transparent;
    transition: all 0.4s ease;
}

.main-header.header-scrolled {
    background-color: rgba(15, 25, 30, 0.7) !important;
    backdrop-filter: blur(15px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.logo-nav {
    max-width: 60px;
    height: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--blanco);
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--celeste);
}

.hamburger {
    display: none;
}

/* =========================================
3. HERO SECTION
========================================= */
.hero {
    min-height: 100vh;
    height: 100dvh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/inicio/inicio-hero-club-deportivo-mvp-lima-peru.webp') center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    color: var(--blanco);
    padding: 20px;
    /* Corrección: Añadimos un poco de padding superior base para evitar choques tempranos */
    padding-top: 100px; 
    z-index: 10;
}

.hero-content h1 {
    font-family: 'Permanent Marker', cursive !important;
    font-size: 5.5rem !important;
    margin-bottom: 20px;
    transform: rotate(-3deg);
    text-shadow: 0 0 10px var(--celeste-intenso), 3px 3px 0px #000;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.text-black-typing {
    color: var(--blanco);
}

.btn-cristal {
    display: inline-flex;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--blanco);
    padding: 16px 50px;
    text-decoration: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-cristal:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--celeste-intenso);
    transform: scale(1.05);
}

/* =========================================
4. CARRUSEL INFINITO
========================================= */
.carousel-container {
    background-color: var(--celeste);
    color: var(--negro);
    padding: 12px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 3px solid var(--rojo-mvp);
    position: relative;
    z-index: 50;
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.carousel-item {
    display: flex;
    align-items: center;
    margin: 0 30px;
    font-weight: 600;
    flex-shrink: 0;
}

.carousel-item i {
    margin-right: 8px;
    font-size: 1.2rem;
}

.carousel-item a {
    color: var(--negro);
    text-decoration: none;
}

.carousel-item a:hover {
    color: var(--blanco);
}

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

/* =========================================
5. SECCIÓN CONÓCENOS (ESTILO ELITE - FONDOS SÓLIDOS Y CUADRADOS)
========================================= */
.seccion-elite-gray {
    padding: 120px 20px;
    background-color: #E2E8F0;
    /* GRIS SUTIL TAILWIND POSIBLE PARA QUE RESALTEN LAS CARDS */
    overflow: hidden;
}

.contenedor-elite {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tarjetas (Diseño "Zuva Voley" Brutalista) */
.tarjeta-elite {
    display: flex;
    align-items: center;
    margin-bottom: 120px;
    position: relative;
    gap: 0;
    /* Sin espacio para que se superpongan verticalmente */
}

.tarjeta-elite.reversa {
    flex-direction: row-reverse;
}

/* Imagen Gigante Portrait (Full Color, Corte Cuadrado) */
.elite-img-wrapper {
    flex: 0 0 60%;
    /* Ocupa el 60% del ancho */
    position: relative;
    z-index: 1;
}

.img-portrait {
    width: 100%;
    height: 600px;
    /* Súper alta e imponente */
    object-fit: cover;
    object-position: top center;
    border-radius: 0;
    /* CORTE RECTO, CERO REDONDEZ TIERNA */
    filter: none !important;
    /* CERO GRIS, FULL COLOR */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    /* Sombra 2xl Tailwind */
}

/* Caja de Texto Flotante (Corte Cuadrado) */
.elite-text-wrapper {
    flex: 0 0 50%;
    /* Ocupa el 50% (cruzando verticalmente) */
    padding: 60px 50px;
    border-radius: 0;
    /* CORTE RECTO */
    position: relative;
    z-index: 10;
    margin-left: -10%;
    /* SUPERPOSICIÓN PERFECTA VERTICAL */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.tarjeta-elite.reversa .elite-text-wrapper {
    margin-left: 0;
    margin-right: -10%;
}

/* ESTILO SÓLIDO CELESTE (PARA CARD 1) */
.celeste-solid {
    background-color: var(--celeste-intenso);
    /* Celeste intenso sólido */
    color: var(--negro);
    border: none;
}

/* ESTILO SÓLIDO NEGRO (PARA CARD 2) */
.dark-solid {
    background-color: var(--negro);
    /* Negro puro sólido */
    color: var(--blanco);
    border: none;
}

/* TIPOGRAFÍA TITÁNICA */
.titulo-gigante {
    font-size: 4rem;
    /* MONSTRUOSAMENTE GRANDE POSIBLE */
    line-height: 0.9;
    font-family: 'Oswald', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--negro);
    margin-bottom: 25px;
}

.dark-solid .titulo-gigante {
    color: var(--blanco);
}

.texto-celeste {
    color: var(--celeste-intenso);
}

.texto-blanco {
    color: var(--blanco) !important;
}

.texto-rojo {
    color: var(--rojo-mvp);
}

/* Contraste deportivo en bloque celeste */
.linea-decorativa-roja {
    width: 80px;
    height: 8px;
    background-color: var(--rojo-mvp);
    margin-bottom: 25px;
}

.linea-decorativa {
    width: 80px;
    height: 8px;
    background-color: var(--celeste-intenso);
    margin-bottom: 25px;
}

.subtitulo-cargo {
    font-family: 'Poppins', sans-serif;
    color: var(--celeste-intenso);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitulo-profesion {
    font-family: 'Poppins', sans-serif;
    color: var(--blanco);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.elite-text-wrapper p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

.dark-solid p {
    color: #E2E8F0;
    font-weight: 400;
}

/* =========================================
6. SECCIÓN CONTACTO (CRISTAL + MAPA OK)
========================================= */
.seccion-contacto-glass {
    padding: 120px 20px;
    position: relative;
    background: url('https://images.pexels.com/photos/29281018/pexels-photo-29281018.jpeg') center/cover fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.overlay-oscuro {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
    /* LA MAGIA: DEJA PASAR LOS CLICKS */
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.glass-wrapper {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    position: relative;
    z-index: 10;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.glass-info-panel {
    flex: 1;
    padding: 50px;
    background: rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-subtitle {
    font-size: 1.8rem;
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    color: var(--rojo-mvp);
    font-family: 'Oswald', sans-serif;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-list li {
    display: flex;
    gap: 15px;
    font-size: 1.05rem;
    color: var(--blanco);
}

.icono-celeste {
    font-size: 1.5rem;
    margin-top: 2px;
    color: var(--celeste-intenso);
}

.info-text strong {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: var(--blanco);
}

.text-light {
    color: #E2E8F0;
}

.redes-verticales {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.link-hover {
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #E2E8F0;
}

.link-hover i {
    font-size: 1.2rem;
    color: #E2E8F0;
}

.link-hover:hover,
.link-hover:hover i {
    color: var(--rojo-mvp) !important;
}

/* Contenedor del mapa modificado para tocar en móvil */
.map-container {
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 100%;
    /* Prohíbe que el mapa rompa la caja hacia los lados */
}

.dark-map iframe {
    width: 100% !important;
    /* Forza el ancho estricto */
    height: 250px !important;
    /* Forza el alto estricto */
    display: block;
    filter: invert(90%) hue-rotate(180deg) grayscale(30%) contrast(110%);
}

.glass-form-panel {
    flex: 1.2;
    padding: 50px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--blanco);
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-glass {
    width: 100%;
    padding: 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--blanco);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-glass::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 300;
}

.input-glass:focus {
    border-color: var(--celeste-intenso);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 191, 255, 0.2);
}

.dark-option {
    background-color: var(--azul-noche);
    color: var(--blanco);
}

textarea#mensaje {
    margin-top: 10px;
}

.btn-submit-container {
    text-align: center;
    margin-top: 40px;
}

.btn-submit-glass {
    background-color: var(--rojo-mvp);
    color: var(--blanco);
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    padding: 18px 50px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.4);
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-submit-glass:hover {
    transform: translateY(-5px);
    background-color: #B71C1C;
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.5);
}

/* =========================================
7. FOOTER & WHATSAPP
========================================= */
footer {
    background-color: #050810;
    color: var(--blanco);
    text-align: center;
    padding: 40px 20px 20px;
    border-top: 3px solid var(--rojo-mvp);
}

.footer-content h3 {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-glow {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--blanco);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-glow:hover {
    background: var(--rojo-mvp);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--rojo-mvp);
}

.copyright {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 1px;
}

.ethereal-brand {
    color: var(--celeste-intenso);
}

.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: var(--blanco);
    border-radius: 50%;
    font-size: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    animation: pulse-wa 2s infinite;
}

@keyframes pulse-wa {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* =========================================
8. RESPONSIVE
========================================= */
@media (max-width: 900px) {
    .main-header {
        padding: 15px 20px;
    }

    .hamburger {
        display: block;
        position: absolute;
        right: 25px;
        top: 20px;
        font-size: 2rem;
        color: var(--blanco);
        z-index: 2500;
        cursor: pointer;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(15, 25, 30, 0.95);
        backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s;
        z-index: 1500;
        border-left: 2px solid var(--rojo-mvp);
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    /* Corrección: Aseguramos el espacio en móvil para que el H1 no choque con el logo */
    .hero-content {
        padding-top: 140px; 
    }

    .hero-content h1 {
        font-size: 3rem !important;
    }

    .section-title {
        font-size: 3rem !important;
        margin-bottom: 40px;
    }

    .tarjeta-elite,
    .tarjeta-elite.reversa {
        flex-direction: column;
        margin-bottom: 60px;
        gap: 0;
    }

    .elite-img-wrapper {
        width: 100%;
    }

    .img-portrait {
        height: 350px;
        min-height: auto;
    }

    .elite-text-wrapper,
    .tarjeta-elite.reversa .elite-text-wrapper {
        margin-left: 0;
        margin-right: 0;
        margin-top: -40px;
        width: 92%;
        padding: 30px 20px;
    }

    .glass-wrapper {
        flex-direction: column;
    }

    .glass-info-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .glass-info-panel,
    .glass-form-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}