/*Damos formato a la fuente*/

@font-face {
    font-family: 'longa_iberica';
    src: url(../fonts/longa_iberica/LongaIberica-DEMO.ttf);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
    
    /* Fondo degradado místico */
    background: 
        radial-gradient(circle at 20% 30%, rgba(5, 219, 197, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(4, 142, 126, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(74, 124, 89, 0.08) 0%, transparent 70%),
        linear-gradient(135deg, #f5f7fa 0%, #e8f5ef 50%, #c3cfe2 100%);
    background-attachment: fixed;
}

/* Capa de textura sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(5, 219, 197, 0.02) 2px,
            rgba(5, 219, 197, 0.02) 4px
        );
    z-index: 0;
}

/* Efecto de viñeta suave */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 60%,
        rgba(4, 142, 126, 0.05) 100%
    );
    z-index: 0;
}

/*Header*/
.header {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 20px;
    
    /* Fondo redondeado */
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    
    /* Sombra mágica - Neblina */
    box-shadow: 
        0 0 20px rgba(5, 219, 197, 0.3),        /* Neblina turquesa cercana */
        0 0 40px rgba(5, 219, 197, 0.2),        /* Neblina turquesa media */
        0 0 60px rgba(5, 219, 197, 0.1),        /* Neblina turquesa lejana */
        0 8px 32px rgba(0, 0, 0, 0.1),          /* Sombra de profundidad */
        inset 0 1px 0 rgba(255, 255, 255, 0.8); /* Brillo superior */
    
    /* Animación de neblina */
    animation: mistyGlow 4s ease-in-out infinite;
}

/* Animación de neblina mágica */
@keyframes mistyGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(5, 219, 197, 0.3),
            0 0 40px rgba(5, 219, 197, 0.2),
            0 0 60px rgba(5, 219, 197, 0.1),
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(5, 219, 197, 0.5),    /* Neblina más intensa */
            0 0 60px rgba(5, 219, 197, 0.3),
            0 0 90px rgba(5, 219, 197, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    }
}
.header img {
    height: 40px;
    margin-right: 10px;
}

.header h1 {
    font-family: 'longa_iberica', sans-serif;
    font-weight: bolder;
    font-size: clamp(30px, 5vw, 50px);
    color: rgb(4, 142, 126);
    margin: 0 10px;
    white-space: nowrap;
}



/*Selector de Lenguaje*/
.language-selector {
    display: flex;
    align-items: center;
    /*Alinea los iconos de idioma verticalmente al centro*/
    gap: 10px;
}

.icon {
    cursor: pointer;
    font-size: 18px;
}

.icon {
    cursor: pointer;
    margin: 0 10px;
}

#content {
    padding: 20px;
}

/*Menú*/

.navbar {
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    background: linear-gradient(to right, rgb(4, 135, 122), rgb(5, 219, 197));
    display: flex;
    align-items: center;
    justify-content: space-around;
    
    /* Bordes redondeados */
    border-radius: 15px;
    
    /* Padding para que no se pegue el contenido a los bordes */
    padding: 10px 20px;
    
    /* Sombra mágica opcional - Neblina */
    box-shadow: 
        0 0 20px rgba(5, 219, 197, 0.4),
        0 0 40px rgba(4, 142, 126, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.15);
    
    /* Animación de neblina opcional */
    animation: mistyGlowNavbar 4s ease-in-out infinite;
}

/* Animación de neblina para navbar (opcional) */
@keyframes mistyGlowNavbar {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(5, 219, 197, 0.4),
            0 0 40px rgba(4, 142, 126, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(5, 219, 197, 0.6),
            0 0 60px rgba(4, 142, 126, 0.3),
            0 8px 32px rgba(0, 0, 0, 0.15);
    }
}

.navbar-brand {
    color: white !important;
    font-weight: bolder;
}

.navbar-nav .nav-link {
    color: white !important;
}

.dropdown-menu .dropdown-item {
    color: white !important;
    text-align: left;
    padding: 0;
    margin-right: 20px;
    margin-left: 10px;
}

.dropdown-menu {
    background-color: rgb(64, 224, 208);
    border: none;
}

.dropdown-menu .dropdown-item:hover {
    width: auto;
    background-color: rgba(255, 255, 255, 0.2);
}

/*Damos formato al body*/

#imagenCentral {
    width: 90vw;
    display: flex;
    margin-top: 10px;
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.3);
}

.presentacionSocios {
    margin: 30px auto;
    padding: 40px 20px;
    max-width: 1000px;
    
    /* Recuadro con bordes redondeados */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    border: 2px solid rgba(5, 219, 197, 0.3);
    
    /* Sombra mágica - Neblina brillante */
    box-shadow: 
        0 0 25px rgba(5, 219, 197, 0.4),        /* Neblina turquesa brillante */
        0 0 50px rgba(4, 142, 126, 0.3),        /* Neblina verde-turquesa */
        0 0 75px rgba(5, 219, 197, 0.2),        /* Neblina difuminada */
        0 10px 40px rgba(0, 0, 0, 0.15),        /* Sombra de profundidad */
        inset 0 2px 0 rgba(255, 255, 255, 0.8), /* Brillo interior superior */
        inset 0 -2px 0 rgba(5, 219, 197, 0.1);  /* Brillo interior inferior */
    
    /* Animación de neblina */
    animation: mistyGlowBox 5s ease-in-out infinite;
}

/* Animación específica para cajas */
@keyframes mistyGlowBox {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(5, 219, 197, 0.4),
            0 0 50px rgba(4, 142, 126, 0.3),
            0 0 75px rgba(5, 219, 197, 0.2),
            0 10px 40px rgba(0, 0, 0, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.8),
            inset 0 -2px 0 rgba(5, 219, 197, 0.1);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(5, 219, 197, 0.6),    /* Neblina más intensa */
            0 0 70px rgba(4, 142, 126, 0.4),
            0 0 100px rgba(5, 219, 197, 0.25),
            0 10px 40px rgba(0, 0, 0, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.8),
            inset 0 -2px 0 rgba(5, 219, 197, 0.2);
    }
}

.presentacionSocios p {
    text-align: justify;
    margin-top: 10px;
}

/*Distribuimos los diferentes logos*/

.sociosColaboradores {
    display: flex;
    justify-content: center;
    /*Centra horizontalmente los cards*/
    gap: 20px;
    flex-wrap: wrap;
    /*Permite que los cards se ajusten a nuevas líneas si es necesario*/
    padding: 20px;
}

.card {
    align-items: center;
    border-radius: 20px;
    justify-content: center;
    margin-top: 10px;
    /* Sombra mágica - Neblina brillante */
    box-shadow: 
        0 0 25px rgba(5, 219, 197, 0.4),        /* Neblina turquesa brillante */
        0 0 50px rgba(4, 142, 126, 0.3),        /* Neblina verde-turquesa */
        0 0 75px rgba(5, 219, 197, 0.2),        /* Neblina difuminada */
        0 10px 40px rgba(0, 0, 0, 0.15),        /* Sombra de profundidad */
        inset 0 2px 0 rgba(255, 255, 255, 0.8), /* Brillo interior superior */
        inset 0 -2px 0 rgba(5, 219, 197, 0.1);  /* Brillo interior inferior */
    
    /* Animación de neblina */
    animation: mistyGlowBox 5s ease-in-out infinite;
}

.card-img-top {
    width: 90%;
    /*Aseguramos que la imágen ocupe todo el ancho del contenedor*/
    height: 150px;
    /*Define una altura fija para las imágenes*/
}

.card-body a {
    text-decoration: none;
    font-weight: bolder;
    color: black;
}

/*Damos formato al footer*/

.quienes_somos,
.contacto,
.ultimas_noticias {
    display: inline-block;
    margin-left: 10px;
    margin-right: 10px;
}

.phone,
.fax,
.email,
.location {
    display: inline-flex;
    margin-left: 10px;
}

.main-sections p {
    color: white;
}

footer {
    background: linear-gradient(to right, rgb(4, 135, 122), rgb(5, 219, 197));
    margin-top: 20px;
}

h2 {
    font-family: 'longa_iberica', sans-serif;
    font-size: 40px;
    color: red;
    font-weight: bold;
    letter-spacing: 5px;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    color: black;
}

li {
    color: white;
}

.tweet_text a {
    text-decoration: none;
    color: white;
}

.tweet_time {
    color: orange;
}

/*Damos formato a la estructura de la política de privacidad, el aviso legal y las Cookies*/
.conditions {
    list-style-type: none;

}

.conditions a {
    text-decoration: none;
    color: rgb(243, 238, 238);
    padding: 10px 15px;
    /*Relleno interno para aumentar el área clicable*/
    display: block;
}

.logo {
    padding-bottom: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.logo img {
    margin-left: 40px;
}

/*Damos formato para pantallas grandes*/

@media screen and (min-width: 700px) and (max-width: 3270px) {

    .header {
        width: 90vw;
        margin-top: 20px;
        margin: auto;
    }

    .header h1 {
        font-size: 70px;
    }

    .header img {
        height: 70px;
        margin-left: 15px;
    }

    .lenguage-selector {
        margin-right: 15px;
    }

    .navbar {
        width: 90vw;
        /* Asegura que el navbar abarque todo el ancho de la ventana */
        margin: 0;
        /* Elimina márgenes externos */
        padding: 0 10px;
        /* Agrega espacio interno de 10px a los lados */
        background: linear-gradient(to right, rgb(4, 135, 122), rgb(5, 219, 197));
        /* Fondo de degradado */
        display: flex;
        align-items: center;
        /* Centra verticalmente el contenido del navbar */
        justify-content: space-between;
        /* Espacia los elementos del navbar */
        box-sizing: border-box;
        /* Incluye el padding en el ancho total */
    }

    .navbar a {
        margin-left: 40px;
    }

    /* Contenedor principal */
    .container {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Centra horizontalmente todos los elementos dentro del contenedor */
        justify-content: center;
        /* Centra verticalmente si es necesario */
        text-align: justify;
        margin-top: 20px;
    }

    /*Animación*/
    @keyframes reveal {
        0% {
            opacity: 0;
            filter: blur(10px);
            transform: translateY(20px);
        }

        100% {
            opacity: 1;
            filter: blur(0);
            transform: translateY(0);

        }
    }

    .figure img {
        display: flex;
        height: 150px;
        margin-left: 60px;
        align-items: center;
        align-content: center;
    }

    .listas ul {
        padding-left: 20px;
        /*Ajusta la distancia entre los puntos y el texto*/
        margin-left: 20px;
        /*Sangría general para que no esté pegado a la izquierda*/
        list-style-position: inside;
        /*Hace que los puntos estén más cerca del texto*/
        text-align: left;
    }

    .listas li {
        color: black;
        text-align: justify;
        padding-left: 40px;
    }

    #texto1 {
        text-align: justify;
        margin-left: 30px;
        margin-right: 30px;
    }

    #texto2 {
        text-align: justify;
        margin-left: 30px;
        margin-right: 30px;
    }

    #texto3 {
        text-align: justify;
        margin-left: 30px;
        margin-right: 30px;
    }

    /*footer*/

    footer>div {
        margin: 10px;
    }

    /*Usamos flexbox solo en main-sections*/

    footer {
        width: 90vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .main-sections {
        width: 90vw;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Crea tres columnas del mismo tamaño */
        gap: 20px;
        /* Espacio de 10px entre columnas */
        padding-left: 20px;
    }

    .phone,
    .fax,
    .email,
    .location {
        display: block;
    }

    .phone img,
    .phone p {
        display: inline-flex;
    }

    .fax img,
    .fax p {
        display: inline-flex;
    }

    .email img,
    .email p {
        display: inline-flex;
    }

    .location img,
    .location p {
        display: inline-flex;
    }

    /*Estilos para las listas*/

    .legal_conditions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        padding: 0;

    }

    .conditions {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /*Estilos para los elementos de las listas*/

    .conditions li {
        margin-right: 15px;
        /*Espaciado entre los elementos de la lista*/
    }

    #cookieConsent {
        width: 40vw;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        /*Ajuste para centrar*/
        text-align: center;
        margin-top: 120px;
    }

}
/*Redes Sociales*/
.footer-social-section {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(0, 0, 0, 0.05);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.footer-social-section h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-social-link.facebook {
    background-color: #1877f2;
}

.footer-social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-social-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-social-link {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .footer-social-icons {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-social-section {
        padding: 20px 15px;
    }
    
    .footer-social-section h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .footer-social-link {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}