/* Estilos generales */
header {
    background: #002855;
    padding: 11px 16px;
    text-align: center;
    color: #d9e6ff;
    margin-top: 0px;
    position: relative;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
section-title {
    font-size: 1.5rem;
    color: #002855;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}
@font-face {
    font-family: 'Big Noodle';
    src: url('fonts/big_noodle_titling.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Aseguramos que los contenedores base no colapsen */
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* ===== PORTADA (HERO) ==== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-image 0.3s ease;
}

/* Spinner de carga mientras se carga la imagen real */
.hero-slider.loading::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s linear infinite;
    z-index: 5;
}

@media (min-width: 1024px) {
    .hero-slider {
        min-height: auto !important;
        width: 100% !important;

        /* 1. FUERZA EL ALTO: Ocupa el 80% de la pantalla para asegurar 
           que todo el bloque (con los nadadores) quepa de un vistazo sin scroll */
        height: 100vh !important;

        /* 2. Liberamos la proporción para que mande el alto de la pantalla */
        aspect-ratio: auto !important;

        /* 3. Elimina espacios negros/blancos a los costados */
        background-size: cover !important;

        /* 4. ANCLAJE ABAJO: El cielo excedente se recorta arriba, 
           garantizando que los nadadores se queden fijos abajo y visibles */
        background-position: center bottom !important;
        background-repeat: no-repeat !important;
    }
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

img {
    max-width: 100%;
    height: auto;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    /* opacity: 0;
            transition: opacity 1s ease;
            background-size: cover; 
            background-repeat: no-repeat;
            background-position: center center; 
            background-color: transparent;  */
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ajusta la imagen fluidamente sin deformar ni cortar tosco */
    object-position: center;
    display: block;
    flex-shrink: 0;
    /* Evita que la imagen se reduzca en tamaño dentro del contenedor */
}

/* .slide.active {
            opacity: 1;
        } */
/* .slide::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 50px;
            height: 50px;
            border: 5px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s linear infinite;
            opacity: 0;
            transition: opacity 0.3s;
        } */

/* .slide.loading::before {
            opacity: 1;
        } */

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(0, 40, 85, 0.9);
}

.logo {
    color: white;
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.fixed-inscription {
    position: absolute;
    top: 120px;
    right: 20px;
    transform: rotateY('-50%');
    z-index: 100;
}

.fixed-inscription {
    cursor: pointer;
}

.fixed-inscription::before {
    animation: swim 1s infinite alternate;
}

@keyframes swim {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(8px);
    }
}

.btn-inscripcion {
    font-family: 'Big Noodle', sans-serif;
    text-transform: uppercase;
    font-size: 1.2rem;
    line-height: 1.4;
    padding: 12px 24px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
                                                    /* NADADOR EN BOTON */
.btn-inscripcion:hover {
    background-color: #004999;
    cursor: pointer;
}

.btn-inscripcion:hover::before {
    animation: swim 1s infinite alternate;
}
/*                                                      RESPONSIVE PARA MOVIL */
@media (max-width: 768px) {
    .fixed-inscription {
        position: static;
        transform: none;
        margin-top: -1rem;
        display: flex;
        justify-content: center;
        display: ruby-text;
    }

    .btn-inscripcion {
        font-size: 0.9rem;
        padding: 6px 15px;
        line-height: 1.2;
        
    }

    .hero-content {
        margin: 0 auto !important;
        position: relative !important;
        transform: none !important;
        width: 90% !important;
        padding: 20px !important;
    }

    .floating-buttons {
        bottom: 15px;
        right: 15px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    .hero-slider {
        background-size: contain !important;
        /* La imagen se ve completa */
        background-position: top center !important;
        background-repeat: no-repeat !important;
        min-height: 100vh;
        align-items: flex-start;
        /* Permitir que el contenido se desplace */
        padding-top: 80px;
    }

    .hero-slider {
        height: auto !important;
        min-height: 0 !important;
        /* elimina el min-height de 100vh */
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background-position: top center !important;
        aspect-ratio: 16 / 9;
        /* ajusta según la proporción real de tu imagen de portada */
        padding: 0 !important;
    }

    .hero-content {
        position: relative;
        top: auto;
        transform: none;
        width: 90%;
        margin: 20px auto;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .section h2:not(.section-title) {
        font-size: 1rem;
    }

    .logo {
        font-size: 20px;
    }

    .nav-links {
        width: 250px;
    }

    .hero-content {
        padding: 20px;
        width: 95%;
    }

    .evento-section {
        background-position: center top;
    }

    /*.caracteristicas-section {*/
    /*    background-size: contain;*/
    /*    background-position: top center;*/
    /*    background-repeat: no-repeat;*/
    /*    min-height: calc(100vw * 2);*/
    /*}*/

    h1 {
        font-size: 1.4rem;
    }

    .acordeon-header {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .acordeon-content {
        font-size: 0.95rem;
    }

    .btn-download {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .section h2.section-title {
        font-size: 1.5rem;
        letter-spacing: 0.03em;
    }

    .desktop-social {
        display: none;
    }

    .mobile-social {
        display: flex;
        flex-direction: row;
        justify-content: center;
        margin-top: 20px;
    }

    .nav-links {
        flex-direction: column;
        padding-top: 80px;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .flags-mobile {
        position: absolute;
        top: 70px;
        right: 15px;
        display: flex;
        gap: 10px;
        z-index: 9999;
    }

    .flags-mobile img {
        width: 20px;
    }
    .flags-desktop {
        display: flex;
        gap: 10px;
        align-items: initial;
        margin-left: unset;
        padding-top: 6px;
    }

    .about-section,
    /* .evento-section, */
    /*.caracteristicas-section,*/
    .circuito-section {
        padding: 0 !important;
    }

    /*.about-section {*/
        /*background-image: url('QUIENESOMOS-MOB.jpg');*/
    /*}*/

    .circuito-section {
        padding: 0 !important;
        height: auto;
    }

    /* Quitamos el aspect-ratio vertical de características para que muestre el texto libremente */
    /*.caracteristicas-section {*/
    /*    padding: 40px 15px !important;*/
        /* Necesita padding para que los textos no toquen el borde físico del celular */
    /*    height: auto !important;*/
    /*}*/

    .section {
        padding: 15px 2%;
    }
    .caracteristicas-section {
        width: 100%;
        min-height: auto !important; /* Resuelve el 90% del problema: la sección ahora mide lo que mide su contenido */
        padding: 30px 20px !important;
        background-image: none !important; /* Quita definitivamente caracteristicas-h.jpg */
        background-color: #1a1a1a;        /* El color de fondo oscuro de tu web */
      /*   padding: 40px 15px !important;    Margen interno para que respiren las tarjetas */
        height: auto !important;          /* Altura dinámica según el texto */
        aspect-ratio: auto !important;
        position: relative;
        overflow: hidden;
        /* Elimina el ratio 1080/2999 que la estiraba */
    }
    /*.about-section {*/
        /*background-image: url('QUIENESOMOS-MOB.jpg');*/
    /*}*/

    /* .evento-section {
                background-image: url('EVENTO-MOB.jpg');
            } */
    /*.caracteristicas-section {*/
        /* background-image: url("../landing/images/500m.webp"); */
    /*    background-size: contain;*/
    /*    background-position: top center;*/
    /*    background-repeat: no-repeat;*/
    /*    height: auto;*/
    /*    aspect-ratio: 1080 / 2999;*/
    /*}*/

    /* .circuito-section {
                background-image: url("../assets/landing/images/circuito-v.webp");
            } */

    .faq-question,
    .faq-answer {
        padding: 12px 15px;
        font-size: 14px;
    }

    .flags-desktop {
        display: none;
    }
}

.btn-inscripcion:hover {
    background: #ffc299;
    transform: scale(1.05);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 101;
    padding: 10px;
    position: fixed;
    top: 5px;
    right: 20px;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: #ff6600;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: rgba(0, 40, 85, 0.95);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.5s ease;
    display: flex;
    list-style: none;
    z-index: 99;
}


.nav-links.active {
    right: 0;
}

.nav-links li {
    margin: 15px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    transition: color 0.3s;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #4ecdc4;
    background: rgba(255, 255, 255, 0.1);
}

/* Contenido centrado sobre la imagen */
.hero-content {
    position: relative;
    text-align: center;
    color: white;
    z-index: 10;
    width: 90%;
    max-width: 800px;
    background: rgba(0, 40, 85, 0.7);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    margin: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.floating-buttons.active {
    opacity: 1;
    pointer-events: auto;
}

.floating-btn {
    display: block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, width 0.3s, height 0.3s, line-height 0.3s, font-size 0.3s;
}

.home-btn {
    background: #0066cc;
}




.section {
    box-sizing: border-box;
    overflow: visible;
    width: 100%;
    padding: 10px;
    min-height: auto;
}

.about-section,
/* .evento-section, */
.caracteristicas-section,
.circuito-section {
    overflow: hidden;
    padding: 0;
    /* ← anula el padding: 30px de .section */
    min-height: 100vh;
    min-height: 100svh;
}



.section h2:not(.section-title) {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #002855;
    text-align: center;
}

.section p {
    font-size: 1rem !important;
    font-weight: bold;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #f8f9fa;
    padding: 10px 30px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 120px;
}

/* Form de contacto centrado */
/* #contact {
            text-align: center;
        } */

#contact p {
    max-width: 700px;
    margin: 0 auto 2rem auto;
    text-align: center;
}

.form-container {
    display: flex;
    justify-content: center;
}

#contactForm {
    width: 100%;
    max-width: 700px;
}

.submit-btn {
    background: #0066cc;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
    display: block;
    margin: 2rem auto 0 auto;
}

.submit-btn:hover {
    background: #0052a3;
}

.faq-item {
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.faq-question {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.participant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.participant-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.participant-card:hover {
    transform: translateY(-5px);
}

.participant-img {
    height: 200px;
    background-color: #0066cc;
    background-size: cover;
    background-position: center;
}

.participant-info {
    padding: 20px;
}

.participant-info h3 {
    margin-bottom: 10px;
    color: #0066cc;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 11;
}

.slider-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s;
}

.slider-indicator.active {
    background-color: white;
}



@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

.about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /*background: url('QUIENES-SOMOS.jpg') no-repeat center center;*/
    background-size: cover;
    background-color: #000000;
}

.evento-section {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
    /*background: url('evento-nada-en-punta.jpg') no-repeat center center / cover;*/
    background-color: #000000;
}



.circuito-section {
    width: 100%;
    /* height: 100vh; quitado xq es incorrecto */
    aspect-ratio: 16 / 9;
    height: auto;
    /*background: url("https://cdn.jsdelivr.net/gh/analiaalarcon/nadaenpunta/circuito-desk-nuevo.jpg") no-repeat center top / contain;*/
    /*contain llena todo, cortain puede dejar espacios*/
}

@media (max-width: 1366px) and (min-width: 769px) {
    .circuito-section {
        height: auto;
        aspect-ratio: 1366 / 768;
        /*background-image: url("https://cdn.jsdelivr.net/gh/analiaalarcon/nadaenpunta/circuito-1366.jpg");*/
        background-size: cover;
        background-position: center top;
    }
}



.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.acordeon {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.acordeon-item {
    margin-bottom: 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
}

.acordeon-header {
    background: #f9f9f9;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #0066cc;
    font-size: 1.2rem;
    border-left: 6px solid #0066cc;
    transition: background 0.3s, border-color 0.3s;
}

.acordeon-header:hover {
    background: #e6f7f7;
    border-color: #0052a3;
}

.acordeon-content {
    max-height: 0;
    overflow: hidden;
    background: #fff;
    line-height: 1.8;
    padding: 0.3rem 0.5rem;
    width: 100%;
    box-sizing: border-box;
    text-align: justify;

    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.acordeon-content p,
.acordeon-content ul,
.acordeon-content li {
    font-size: inherit;
    margin: 0.7rem 0;
}

.acordeon-content ul {
    padding-left: 1.5rem;
}



h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #ff6600;
}

.faq {
    width: 100%;
    margin: 0 auto 40px auto;
    padding: 0 15px;
}

.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
}

.faq-question {
    background: #ff6600;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    box-sizing: border-box;
}

.faq-answer {
    display: none;
    padding: 15px 20px;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}



.form-box {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.form-box h3 {
    margin-bottom: 15px;
    color: #ff6600;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: bold;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
}

textarea {
    min-height: 120px;
}

button {
    background: #ff6600;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: block;
    margin: 2rem auto 0 auto;
}

button:hover {
    background: #e55a00;
}

.btn-download {
    display: inline-block;
    margin-top: 5px;
    margin-bottom: 20px;
    background-color: #0066cc;
    color: #fff;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.btn-download:hover {
    background-color: #004999;
}

.download-dropdown {
    margin-bottom: 20px;
}

.download-dropdown summary {
    list-style: none;
    cursor: pointer;
}

.download-dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-links a {
    text-decoration: none;
    color: #0066cc;
    font-size: 0.9rem;
}

.dropdown-links a:hover {
    text-decoration: underline;
}



.section p {
    font-size: inherit;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.section h2.section-title {
    /*font-family: 'Big Noodle', sans-serif;*/
    /*font-size: 2.5rem;*/
    /*letter-spacing: 0.05em;*/
    /*font-weight: 300;*/
    /*text-transform: uppercase;*/
    /*color: #002855;*/
    /*margin: 0rem 0 1rem;*/
    /*text-align: center;*/
    /*line-height: 1.1;*/
    font-size: 1.5rem;
    color: #002855;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    
}

@media (max-width: 1024px) {
    .section h2.section-title {
        font-size: 1.5rem;
    }
}



/* Móviles pequeños */
@media (max-width: 480px) {
    .section h2.section-title {
        font-size: 2.0rem;
    }
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a img {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
}

.social-links a:hover img {
    transform: scale(1.1);
}

/* .desktop-social {
            position: absolute;
            top: 70px;  
            right: 20px;
            display: flex;
        } */

.mobile-social {
    display: none;
}



.social-links a i {
    font-size: 22px;
    color: #ff6600;
    transition: transform 0.3s, color 0.3s;
}

.social-links a:hover i {
    transform: scale(1.2);
    color: #ffa64d;
}

.flags-desktop {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: auto;
    /* empuja hacia la derecha */
    padding-right: 2rem;
    /* un poco antes del borde */
}

.flags-desktop img {
    width: 32px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s;
}

.flags-desktop img:hover {
    transform: scale(1.1);
    opacity: 0.85;
}



/* .flags-mobile {
            display: none;
        } */

.flags-mobile img {
    width: 22px;
    height: auto;
    display: none !important;
}



.politica-oculta {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 9999;
}

.politica-contenido {
    background: #fff;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    border-radius: 12px;
    position: relative;
}

/* Botón cerrar */
.cerrar {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: #ff6600;
    color: #fff;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    border-radius: 50%;
    line-height: 1;

    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
}

.cerrar:hover {
    background: #e05500;
    transform: scale(1.05);
}

.politica-contenido .section-title {
    margin-top: 0;
}

.footer {
    background: #002855;
    padding: 30px 20px;
    text-align: center;
    color: #d9e6ff;
    margin-top: 40px;
}

.footer-content p {
    margin: 5px 0;
}

.footer-links {
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-links a {
    color: #ff6600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links span {
    color: #ffffff80;
    margin: 0 6px;
}

@media (max-width: 600px) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
}

.patrocinadores {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.patrocinadores picture {
    width: 100%;
}

.patrocinadores img {
    width: 100%;
    height: auto;
    display: block;
}



.caracteristicas-section {
    width: 100%;
    min-height: 100vh;
    padding: 30px 20px;
    padding-bottom: inherit;
    background-color: #f8f9fa;
    /* background: url("../landing/images/500m.webp") no-repeat center center; */
    /* background-size: cover; */
    position: relative;
    overflow: hidden;
}

/* --- Estilos internos de las tarjetas (Se mantienen) --- */
.section-tag {
    display: block;
    text-align: center;
    color: #002855;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #002855;
    margin-bottom: 40px;
    font-weight: normal;
}

.distances-grid,
.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}

.distances-grid {
    margin-bottom: 80px;
}

.distance-card,
.class-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    /* Recorta las fotos reales del evento en rectángulo perfecto */
}

.card-content,
.class-card {
    padding: 20px;
}

.card-header-dist {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dist-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #002855;
}

.dist-badge {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
}

.velocidad {
    background-color: #ffe6e6;
    color: #cc0000;
}

.ritmo {
    background-color: #e6f2ff;
    color: #0066cc;
}

.fondo {
    background-color: #e6ffe6;
    color: #009933;
}

/* --- Clasificación simétrica de círculos --- */
.classification-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.classification-main-title {
    font-size: 2rem;
    color: #002855 !important;
    margin-bottom: 10px;
}

.classification-intro {
    color: #002855 !important;
    margin-bottom: 40px;
    font-weight: normal;
}

.class-card {
    border: 1px solid #e1e8ed;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.class-subtext {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    min-height: 40px;
}

.circles-container {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    border: 2px solid #002855;
}

.score-circle.active {
    background: #fff;
    color: #002855;
}

.score-circle.active .pts {
    font-size: 0.6rem;
    color: #e65c00;
}

.score-circle.crossed {
    border-color: #a0aec0;
    color: #a0aec0;
    background: #edf2f7;
}

.score-circle.crossed::after {
    content: "";
    position: absolute;
    width: 80%;
    height: 2px;
    background: #cc0000;
    transform: rotate(-45deg);
}

.score-circle.non-competed {
    border-color: #cbd5e0;
    color: #718096;
    background: #f7fafc;
}

.score-circle.empty {
    border: 2px dashed #cbd5e0;
}

/* ==========================================
   MEDIA QUERIES (Ajustes Mobile limpios)
   ========================================== */

/* --- Contenedor de Clasificación --- */
.classification-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
}

/* Títulos principales sobre el fondo azul */
.classification-main-title {
    font-size: 2.2rem;
    color: #ffffff; /* Texto blanco para resaltar en el fondo azul */
    margin-bottom: 8px;
    font-weight: bold;
}

.classification-intro {
    color: #e2e8f0; /* Blanco suave */
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* Grid de Tarjetas Blancas */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.class-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.class-card h4 {
    font-size: 1.4rem;
    color: #002855;
    margin-bottom: 6px;
    font-weight: bold;
}

.class-subtext {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
    min-height: 45px; /* Evita que las tarjetas tengan alturas distintas */
}

/* --- Sistema de Círculos Alineados --- */
.circles-container {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: center;
    align-items: center;
    height: 70px; /* Altura fija para que no se mueva el layout */
}

.score-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    border: 2px solid #002855;
    box-sizing: border-box;
}

/* Textos internos controlados con flex */
.score-circle .num {
    font-size: 1.1rem;
    color: #002855;
    line-height: 1.1;
}

.score-circle .pts {
    font-size: 0.65rem;
    color: #e65c00;
    line-height: 1;
    margin-top: 1px;
}

/* 1. Estado: Activo (Nadás) */
.score-circle.active {
    background-color: #ffffff;
}

/* 2. Estado: Tachado (Peor resultado) */
.score-circle.crossed {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}
.score-circle.crossed .num,
.score-circle.crossed .pts {
    color: #a0aec0;
}
/* Línea de tachado perfecta */
.score-circle.crossed::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 5%;
    width: 90%;
    height: 2px;
    background-color: #e53e3e;
    transform: rotate(-45deg);
}

/* 3. Estado: No competido (Sin PTS, color tenue) */
.score-circle.non-competed {
    border-color: #cbd5e0;
    background-color: #f7fafc;
}
.score-circle.non-competed .num {
    color: #a0aec0;
}

/* 4. Estado: Vacío (Dashed para simetría) */
.score-circle.empty {
    border: 2px dashed #cbd5e0;
    background-color: transparent;
}

/* Texto de pie de tarjeta */
.class-footer-text {
    font-size: 0.9rem;
    color: #4a5568;
    margin-top: auto; /* Empuja el texto al fondo si sobra espacio */
}
/* --- Contenedor General Distancias --- */
.distances-container {
    max-width: 1100px;
    margin: 0 auto 80px auto;
    text-align: center;
}

.distances-main-title {
    font-size: 2.6rem;
    color: #002855;
    font-weight: 800;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.distances-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    margin-bottom: 40px;
}

/* Grid de Tarjetas */
.distances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Tarjeta Base */
.distance-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #edf2f7;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Permite empujar el footer abajo */
    text-align: left; /* Alineación del texto a la izquierda como la captura */
}

/* Contenedor de Imagen + Hover */
.card-img-container {
    overflow: hidden;
    background-color: #000;
}
.card-img-container img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.card-img-container:hover img {
    transform: scale(1.05);
    opacity: 0.9;
    cursor: zoom-in;
}

/* Cuerpo de la tarjeta */
.card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Esto obliga a que el contenido ocupe todo el alto disponible */
}

/* Fila de Título con Icono de Nadador */
.card-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.icon-swimmer-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ff6600;
    color: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-sizing: border-box;
}
.icon-swimmer-circle svg {
    width: 100%;
    height: 100%;
}

.dist-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #002855;
}

/* Tags de Categoría (Texto plano naranja) */
.dist-tag {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff6600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* Textos informativos */
.card-lead-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #002855;
    margin-bottom: 6px;
    text-align: left !important;
}

.card-description {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 25px;
    
}

/* Footer con línea divisoria y fecha */
.card-footer-date {
    margin-top: auto; /* Empuja el footer al fondo de la tarjeta de forma exacta */
    padding-top: 15px;
    border-top: 1px solid #edf2f7; /* Línea sutil gris */
    display: flex;
    align-items: center;
    gap: 8px;
    color: #002855;
    font-weight: 600;
    font-size: 0.95rem;
}

.icon-calendar {
    width: 18px;
    height: 18px;
    color: #ff6600; /* Calendario naranja */
}

.card-footer-date .dot {
    color: #ff6600;
    margin: 0 2px;
}

/* --- Sección Clasificación (Contenedor general con bordes sutiles) --- */

/* .classification-section {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    padding: 40px 30px 25px 30px;
    box-sizing: border-box;
}

.classification-main-title {
    font-size: 2.4rem;
    color: #002855;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
}

.classification-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 40px;
}
/* Grid de clasificación */
/* .classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
} */ 

/* Tarjetas individuales internas */
.class-card {
    text-align: left;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.class-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.class-card-header h3 {
    font-size: 1.3rem;
    color: #002855;
    font-weight: 700;
    margin: 0;
}

.icon-swimmer-circle.small {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
    padding: 4px;
}

.class-card-subtitle {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
    min-height: 36px; /* Evita desalineación por saltos de línea */
}

/* --- Contenedor de Operaciones y Círculos --- */
.math-group-container {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.circles-flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Círculos base */
.score-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-weight: 700;
    position: relative;
}

/* Variación Colores */
.score-circle.orange {
    border: 2px solid #ff6600;
    color: #002855;
}
.score-circle.blue {
    border: 2px solid #4ba3e3;
    color: #002855;
}

/* Textos internos del círculo */
.c-num {
    font-size: 1.05rem;
    line-height: 1.1;
}
.c-unit {
    font-size: 0.7rem;
    font-weight: 600;
}
.score-circle.single-text .c-num {
    font-size: 1.15rem; /* Centrado vertical simple para el 2K solo */
}

/* Signo Más */
.math-operator {
    font-size: 1.4rem;
    color: #ff6600;
    font-weight: 600;
}

/* Texto "(el peor)" abajo del círculo descatado */
.below-label {
    font-size: 0.8rem;
    color: #ff6600;
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

/* --- Efecto Tachado Dinámico (X) --- */
.score-circle.discarded .cross-line {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
}
.score-circle.discarded .cross-line::before,
.score-circle.discarded .cross-line::after {
    content: '';
    position: absolute;
    background: #ff6600;
    width: 2px;
    height: 100%;
    left: 50%;
}
.score-circle.discarded .cross-line::before { transform: rotate(45deg); }
.score-circle.discarded .cross-line::after { transform: rotate(-45deg); }

/* --- Líneas Naranjas Matematicas Estilo Captura --- */
.orange-sum-line {
    height: 2px;
    background: #ff6600;
    margin-top: 15px;
    border-radius: 2px;
}
.line-nadas3 {
    width: 125px;
    margin-left: 80px; /* Alinea justo abajo de 2K PTS + 5K PTS */
}
.line-nadas2 {
    width: 125px;
    margin-left: 70px; /* Alinea justo abajo de 2K PTS + 5K PTS */
}
.math-group-container.no-line {
    padding-bottom: 37px; /* Compensa el espacio de la línea inexistente */
}

/* Textos pie de tarjeta */
.class-card-footer {
    font-size: 0.95rem;
    color: #002855;
    font-weight: 600;
    margin-top: auto;
}

/* --- Leyenda Inferior de la Sección --- */
.classification-legend {
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    position: relative;
}
.legend-dot.orange { border: 2px solid #ff6600; }
.legend-dot.blue { border: 2px solid #4ba3e3; }

/* El ícono tachado de la leyenda */
.legend-dot.discarded-dot::before,
.legend-dot.discarded-dot::after {
    content: '';
    position: absolute;
    background: #ff6600;
    width: 2px;
    height: 100%;
    left: 45%;
}
.legend-dot.discarded-dot::before { transform: rotate(45deg); }
.legend-dot.discarded-dot::after { transform: rotate(-45deg); }

.legend-text {
    font-size: 0.9rem;
    color: #002855;
    font-weight: 600;
}

/* --- Sección Seguridad --- */
.security-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.security-main-title {
    font-size: 1.5rem;
    color: #002855;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.security-title-divider {
    width: 45px;
    height: 3px;
    background: #ff6600;
    margin: 0 auto 55px auto;
    border-radius: 2px;
}

/* Distribución exacta de 6 columnas fluidas */
.security-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

/* Caída responsiva inteligente para pantallas medianas o chicas */
@media (max-width: 1024px) {
    .security-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}
@media (max-width: 640px) {
    .security-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }
}

/* Tarjeta contenedora con la elevación exacta */
.security-card {
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    position: relative;
    margin-top: 25px; /* Deja el margen justo para que flote el ícono circular */
    display: flex;
    flex-direction: column;
    overflow: visible; /* Clave: evita que se corte el círculo superior */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.015);
}

/* Círculo superior flotante */
.security-icon-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: #002855;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.25);
    z-index: 3;
}

.security-icon-badge svg {
    width: 24px;
    height: 24px;
}

/* Espacio temporal de imágenes */
.security-img-container {
    width: 100%;
    height: 190px;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    overflow: hidden;
}

.security-img-container.placeholder-bg {
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    border-bottom: 1px solid #edf2f7;
}

/* Estilos de etiqueta para cuando insertes la etiqueta <img> definitiva */
.security-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Cuerpo interno de textos */
.security-card-body {
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.security-card-body h3 {
    font-size: 0.95rem;
    color: #002855;
    font-weight: 700;
    margin: 0 0 12px 0;
    letter-spacing: 0.3px;
    line-height: 1.3;
    min-height: 36px; /* Asegura alineación perfecta si el título tiene 2 líneas */
    display: flex;
    align-items: center;
    text-align: center;
}

.security-card-line {
    width: 24px;
    height: 2px;
    background: #ff6600;
    margin-bottom: 15px;
    border-radius: 1px;
}

.security-card-body p {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.45;
    margin: 0;
    text-align: center;
}

/* --- Sección Clasificación --- */
.classification-section {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.02);
    padding: 40px 30px 25px 30px;
    box-sizing: border-box;
}

.classification-main-title {
    font-size: 2.4rem;
    color: #002855;
    font-weight: 800;
    text-align: center;
    margin-bottom: 5px;
}

.classification-subtitle {
    font-size: 1.05rem;
    color: #4a5568;
    text-align: center;
    margin-bottom: 40px;
}

/* Grid Responsivo Inteligente */
.classification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.class-card {
    text-align: left;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
}

.class-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.class-card-header h3 {
    font-size: 1.3rem;
    color: #002855;
    font-weight: 700;
    margin: 0;
}

.icon-swimmer-circle.small {
    width: 28px;
    height: 28px;
    border-width: 1.5px;
    padding: 4px;
}

.class-card-subtitle {
    font-size: 0.95rem;
    color: #4a5568;
    margin-bottom: 25px;
    min-height: 36px;
}

/* Contenedor de Operaciones */
.math-group-container {
    margin-bottom: 25px;
}

.circles-flex-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* Círculos */
.score-circle {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-weight: 700;
    position: relative;
}

.score-circle.orange { border: 2px solid #ff6600; color: #002855; }
.score-circle.blue { border: 2px solid #4ba3e3; color: #002855; }

.c-num { font-size: 1rem; line-height: 1.1; }
.c-unit { font-size: 0.65rem; font-weight: 600; }
.score-circle.single-text .c-num { font-size: 1.1rem; }

.math-operator {
    font-size: 1.3rem;
    color: #ff6600;
    font-weight: 600;
}

.below-label {
    font-size: 0.75rem;
    color: #ff6600;
    position: absolute;
    bottom: -18px;
    white-space: nowrap;
}

/* Solución Línea de Suma Fluida */
.sum-action-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    padding-bottom: 10px; /* Espacio exacto para la línea */
}

.sum-action-container::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6600;
    border-radius: 2px;
}

/* Tachado */
.score-circle.discarded .cross-line {
    position: absolute;
    width: 110%;
    height: 110%;
    top: -5%;
    left: -5%;
}
.score-circle.discarded .cross-line::before,
.score-circle.discarded .cross-line::after {
    content: '';
    position: absolute;
    background: #ff6600;
    width: 2px;
    height: 100%;
    left: 50%;
}
.score-circle.discarded .cross-line::before { transform: rotate(45deg); }
.score-circle.discarded .cross-line::after { transform: rotate(-45deg); }

.class-card-footer {
    font-size: 0.95rem;
    color: #002855;
    font-weight: 600;
    margin-top: auto;
}

/* Leyenda */
.classification-legend {
    border-top: 1px solid #edf2f7;
    padding-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 16px; height: 16px; border-radius: 50%; position: relative; }
.legend-dot.orange { border: 2px solid #ff6600; }
.legend-dot.blue { border: 2px solid #4ba3e3; }

.legend-dot.discarded-dot::before,
.legend-dot.discarded-dot::after {
    content: ''; position: absolute; background: #ff6600; width: 2px; height: 100%; left: 45%;
}
.legend-dot.discarded-dot::before { transform: rotate(45deg); }
.legend-dot.discarded-dot::after { transform: rotate(-45deg); }
.legend-text { font-size: 0.85rem; color: #002855; font-weight: 600; }

@media (max-width: 768px) {
    /* 1. Reducimos el padding al mínimo posible */
    .security-card-body h3 {
        font-size: 1.5rem;
    }
    .security-card-body p {
        font-size: 1.2rem;
    }
    header {
        padding: 3px 12px !important; 
    }

    /* 2. ACHICAR EL LOGO: Si hay una imagen dentro, esto la frena para que no estire el header */
    header img {
        max-height: 40px !important; /* Ajusta este número si quieres el logo más chico o más grande */
        width: auto !important;
        margin: 0 auto !important;
    }

    /* 3. ELIMINAR MÁRGENES: Los títulos suelen traer espacios arriba/abajo por defecto */
    header h1, header h2, header p, header a {
        font-size: 1rem !important;  /* Achica el texto en móvil */
        margin: 0 !important;         /* Elimina el espacio sobrante que infla el contenedor */
        line-height: 1.2 !important;
    }
}
/* --- FIX DE SEGURIDAD PARA MÓVILES (Pantallas chicas) --- */
@media (max-width: 640px) {
    
    /* 1. Forzar que el contenedor principal use todo el ancho sin desbordar */
    .classification-section {
        width: 100% !important;
        max-width: 100% !important;
        padding: 30px 10px 20px 10px !important; /* Paddings mínimos para dar aire */
        box-sizing: border-box !important;
    }

    .classification-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Romper el minmax que causaba el corte horizontal */
    .classification-grid {
        grid-template-columns: 1fr !important; /* Columna única fluida al 100% */
        gap: 15px !important;
        width: 100% !important;
    }

    /* 3. Ajustar las tarjetas para que no sumen ancho extra */
    .class-card {
        width: 100% !important;
        padding: 15px 10px !important;
        box-sizing: border-box !important;
    }

    /* 4. Reducir ligeramente la separación de la fila matemática si el celular es muy chico */
    .circles-flex-row {
        gap: 8px !important;
        justify-content: flex-start;
        flex-wrap: nowrap; /* Evita que los círculos se caigan de línea */
    }

    .sum-action-container {
        gap: 8px !important;
    }
}
/* --- Efecto Zoom en Hover para Tarjetas de Seguridad --- */
.security-img-container {
    overflow: hidden; /* Asegura que la imagen no se salga al agrandarse */
}

.security-img-container img {
    transition: transform 0.3s ease; /* Transición suave */
}

.security-img-container:hover img {
    transform: scale(1.05); /* Agrandamiento sutil */
    cursor: zoom-in; /* Cursor de lupa */
}

/* --- Ajuste del Modal para fotos nativas --- */
.hero-modal img {
    max-width: 95%;
    max-height: 85%;
    object-fit: contain; /* Asegura que la foto no se deforme en el modal */
}