body {
    margin: 0;
}

p {
    white-space: pre-line;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    text-align: justify;
    line-height: 2;
}

/*BANNER NEGRO INICIO*/
a{
    text-decoration: none;
}
.nav-brand{
    color: white;
}

.cabecera {
    background-color: black;
    display: flex;
    flex-direction: row;
    align-items: center; 
    justify-content: center; 
    gap: 8rem;
    height: 40vh; 
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    overflow: hidden; 
}

.cabecera_logo {
    height: 100%; 
    flex-shrink: 0; 
}

.cabecera_logo img {
    height: 100%; 
    width: auto; 
    display: block;
    object-fit: contain;
}

.cabecera_titulos {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center; 
}

.cabecera_titulos h1 {
    color: white;
    margin: 5px 0; 
    font-family: 'Oswald', sans-serif;
    color: white;
    text-transform: uppercase;
    font-size: 7rem;          
    font-weight: bold;
    margin: 0;
}

.cabecera_titulos h3 {
      color: white;
    margin: 5px 0; 
     font-family: 'Oswald', sans-serif;
    color: white;
    text-transform: uppercase;
    font-size: 3rem;  
}

/*BARRAS ROJAS DE SECCION*/
.barraroja {
    background-color: rgb(255, 0, 0);
    margin: 0;
    padding: 0.6rem;
    justify-items: center;
}

.barraroja h1 {
    font-family:  'Oswald', sans-serif;
    font-weight: bolder;
    font-size: 2.5rem;
 
}

/*DESCRIPCION MKM*/
.descripcionmkm {
    padding: 2rem 10vw;
    text-align: justify;
}

/*DESCRIPCIONES DE CONTENIDOS*/
.descripcioncontenidos {
    padding: 2rem 0rem;
}

.contenido {
    display: flex;
    flex-direction: row;
    padding-bottom: 2rem;
    align-items: center;
    width: 100%;
}

.contenido .imagencontenido {
    flex: 0 0 40%;
    display: flex;
    justify-content: center;
}

.contenido .imagencontenido video {
    width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
    display: block;
}

.textocontenido {
    flex: 0 0 60%;
    max-width: 60%;
    padding-right: 12rem;
    box-sizing: border-box;
}

.contenido h1, .contenidohorizontal h1 {
     font-family:  'Anton', sans-serif;
    letter-spacing: 1px;
}

.textocontenido p {
    text-align: justify;
    padding: 0;
}
.textocontenido h1{
    text-align: center;
}

.contenidosrow {
    display: flex;
    flex-direction: row;
    padding: 2rem 9rem;
    align-items: flex-start;
}

.contenidohorizontal {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagencontenido {
    width: 100%;
    overflow: hidden;
}


.contenidohorizontal .imagencontenido img {
    width: 80%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  
}

.contenidosrow p {
    margin: 0;
    padding: 0;
    width: 70%;        
    text-align: center;   
    white-space: normal;  
}

.contenidohorizontal h1 {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.contenidohorizontal .textocontenido {
    width: 100%;        
    max-width: 100%;
    padding: 0;     
    flex: none;      
}

.contenidohorizontal p {
    width: 75%;
    text-align: justify;    
    white-space: normal;   
    margin: 0 auto;
}

.contacto {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto p {
    text-align: center;
    line-height: 2;
}

.red {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.red img {

    width: 5rem;
    height: auto;
}

.boton {
    display: inline-flex;      
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 59, 111);
    color: white !important;
    padding: 8px 10px; 
    margin: 5px 0;            
    text-decoration: none;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    width: auto;             
    min-width: 150px;
    max-height: 45px;
}

.boton:hover {
    background-color: #0077b5; 
}
.reviews{
   
   display: flex;
    flex-direction: column;  
    align-items: center;   
    text-align: center;     
    width: 100%;
    margin-bottom: 2rem;
}
.reviews p {
    padding: 1vw;
    text-align: center;
}

/*CSS DEL NAV*/
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #000000;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    color: #ffffff;
    font-family: sans-serif; 
}

/* Sección izquierda: Logo y Título */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px; 
    font-size: 1.2rem;
}

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

/*Enlaces */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 30px; /* Separación entre los diferentes enlaces */
}

.nav-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.1s ease; /* Transición muy sutil */
}

/* Efecto hover en negrita */
.nav-links li a:hover {
    font-weight: bold;
}

/* Icono de búsqueda */
.nav-search-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.nav-search-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links li a.active {
    font-weight: bolder;
}

/*BUSCADOR*/
/* Contenedor relativo para que los resultados floten debajo */
.nav-search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#input-busqueda {
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 5px;
}

.resultados-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    width: 250px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 9999;
    display: none; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.resultado-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.resultado-item:hover {
    background: #f0f0f0;
}

.resaltado {
    background-color: yellow;
    color: black;
    font-weight: bold;
    padding: 2px;
    border-radius: 2px;
}

#resultados-busqueda .resultado-item, #resultados-busqueda .resultado-item strong {
    color: #333 !important;
}

/*barra azul*/
.azul{
    background-color: rgb(0, 59, 111); 
    display: flex;
    flex-direction: column;
}
.federaciones{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.federaciones img{
    max-height: 8rem;
    width: auto;
    margin: 0 3rem;
    margin: 2rem;

}
.redesazul{
    display: flex;
    flex-direction: row;
    justify-content: center;
}
.red{
    margin: 0 3rem;
}

.azul .boton{
    background-color: white;
    color: rgb(0, 59, 111) !important;
}

.azul .boton:hover{
    background-color: #90d8ff;
}
/*BOTON IDIOMA*/
#boton-switcher{
    padding: 0.6rem;
    border: none;
    background-color: rgb(57, 57, 57);
    color: white;
    border-radius: 0.3rem;
}

/* --- ESTILOS DEL BANNER DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #111111; /* Fondo oscuro */
    color: #ffffff;
    padding: 20px;
    text-align: center;
    z-index: 9999; /* Asegura que siempre esté por encima del resto de la web */
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.4); /* Sombrita para separarlo del contenido */
}

.cookie-banner p {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
}

.btn-aceptar, .btn-rechazar {
    background-color: #dd0000; /* Amarillo de contraste */
    color: #000000;
    border: none;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-aceptar:hover, .btn-rechazar:hover {
    background-color: #ff0000; 
}
.enlacefirma{
    justify-self: end;
    padding-right: 1rem;
    font-size: small;
    color: white;
    
}
.afirma{
    color: white;
    text-decoration: none;
}
/* =========================================
   RESPONSIVE: INDEX Y ESTILOS COMUNES
   ========================================= */

@media (max-width: 1350px) {
    .cabecera {
        height: auto;
        min-height: 34vh;
        gap: 3rem;
        padding: 2rem;
        overflow: visible;
    }

    .cabecera_logo {
        height: clamp(190px, 22vw, 280px);
    }

    .cabecera_titulos {
        width: min(100%, 680px);
        text-align: center;
    }

    .cabecera_titulos h1,
    .cabecera_titulos h3 {
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
    }

    .cabecera_titulos h1 {
        font-size: 4.4rem;
        line-height: 1.05;
    }

    .cabecera_titulos h3 {
        font-size: 2rem;
        line-height: 1.15;
    }
}

@media (max-width: 1200px) {
    .cabecera {
        gap: 2.5rem;
    }

    .cabecera_logo {
        height: clamp(170px, 21vw, 240px);
    }

    .cabecera_titulos {
        width: min(100%, 600px);
    }

    .cabecera_titulos h1 {
        font-size: 3.8rem;
    }

    .cabecera_titulos h3 {
        font-size: 1.65rem;
    }

    .barraroja h1 {
        font-size: 2.2rem;
        text-align: center;
    }

    .contenido h1,
    .contenidohorizontal h1 {
        font-size: 1.8rem;
    }

    .contenidosrow {
        padding: 2rem 4rem;
    }

    .contenido .imagencontenido {
        flex: 0 0 45%;
    }

    .textocontenido {
        flex: 0 0 55%;
        max-width: 55%;
        padding-right: 4rem;
    }
}

@media (max-width: 992px) {
    .main-nav {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .cabecera {
        gap: 2rem;
        padding: 2rem 1.5rem;
    }

    .cabecera_logo {
        height: clamp(150px, 24vw, 210px);
    }

    .cabecera_titulos {
        width: min(100%, 520px);
    }

    .cabecera_titulos h1 {
        font-size: 3.1rem;
        line-height: 1.05;
    }

    .cabecera_titulos h3 {
        font-size: 1.35rem;
        line-height: 1.25;
    }

    .barraroja h1 {
        font-size: 2rem;
        text-align: center;
    }

    .contenido h1,
    .contenidohorizontal h1 {
        font-size: 1.6rem;
    }

    p {
        font-size: 1.05rem;
    }

    .contenido .imagencontenido {
        flex: 0 0 50%;
    }

    .textocontenido {
        flex: 0 0 50%;
        max-width: 50%;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .cabecera {
        flex-direction: column;
        padding: 2.5rem 1rem;
        gap: 1.5rem;
    }

    .cabecera_logo {
        height: 150px;
    }

    .cabecera_titulos {
        width: 100%;
        max-width: 32rem;
    }

    .cabecera_titulos h1 {
        font-size: 2.6rem;
        line-height: 1.08;
    }

    .cabecera_titulos h3 {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .contenido {
        flex-direction: column;
        text-align: center;
    }

    .contenido .imagencontenido {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }

    .textocontenido {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 1.5rem;
    }

    .textocontenido h1 {
        text-align: center;
    }

    .contenidosrow {
        flex-direction: column;
        padding: 1rem;
        gap: 3rem;
    }

    .contenidohorizontal .imagencontenido img {
        width: 100%;
    }

    .contenidohorizontal p {
        width: 95%;
    }

    .federaciones {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .federaciones img {
        margin: 1rem;
        max-height: 5rem;
    }

    .redesazul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .red {
        margin: 0;
    }

    .botones-cookies {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn-aceptar,
    .btn-rechazar {
        width: 100%;
    }

    .barraroja h1 {
        font-size: 1.6rem;
        text-align: center;
    }

    .contenido h1,
    .contenidohorizontal h1 {
        font-size: 1.4rem;
    }

    p {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .contacto p {
        padding: 1rem;
    }

    .nav-links li a {
        font-size: 0.9rem;
    }

    .boton {
        font-size: 0.85rem;
        min-width: 120px;
        padding: 6px 10px;
    }

    #boton-switcher {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .cookie-banner p {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .cabecera {
        padding: 2rem 0.75rem;
    }

    .cabecera_logo {
        height: 120px;
    }

    .cabecera_titulos h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .cabecera_titulos h3 {
        font-size: 1.05rem;
    }

    .barraroja {
        padding: 0.5rem 0.75rem;
    }

    .barraroja h1 {
        font-size: 1.35rem;
    }

    .textocontenido {
        padding: 0 1rem;
    }

    .contenidosrow {
        padding: 1rem 0.75rem;
    }
}

