/*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;
}

.container {
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    margin: 0 auto;
    overflow-x: hidden;
}

/*Header*/

.header {
    width: calc(100% - 40px);
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px auto;
    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);
    }
}


/*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;
}

.header img {
    margin-right: 10px;
}

.header h1 {
    font-family: 'longa_iberica', sans-serif;
    font-weight: bolder;
    font-size: 50px;
    color: rgb(4, 142, 126);
    margin-right: 10px;
}

.icon {
    cursor: pointer;
    margin: 0 10px;
}

#content {
    padding: 20px;
}

/*Menú*/

.navbar {
    width: calc(100% - 40px);
    max-width: 1400px;
    margin: 10px auto;
    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;
}

/* Hace que los enlaces del menú principal sean blancos */
.navbar-nav .nav-link {
    color: white !important;
}

/* Cambia el color del texto dentro del menú desplegable a blanco */
.dropdown-menu .dropdown-item {
    color: white !important;
    text-align: left;
    /* Centra el texto */
    padding: 0;
    margin-right: 20px;
    margin-left: 10px;
}

/* Cambia el fondo del menú desplegable a turquesa */
.dropdown-menu {
    background-color: rgb(64, 224, 208);
    border: none;
    /* Ajusta el ancho del menú */
}

/* Cambia el color de fondo cuando se pasa el mouse sobre los elementos */
.dropdown-menu .dropdown-item:hover {
    width: auto;
    background-color: rgba(255, 255, 255, 0.2);
    /* Turquesa más claro */
}


.direccion {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.direccion h2 {
    text-align: center;
}

/*Texto descriptivo*/

.historiaEvento {
    text-align: center;
    margin: 30px auto;
    padding: 40px 20px;
    max-width: 1000px;
    width: calc(100% - 40px);
    
    /* Recuadro con bordes redondeados */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    border: 2px solid rgba(4, 142, 126, 0.3);
    
    /* Sombra mágica - Neblina esmeralda */
    box-shadow: 
        0 0 25px rgba(4, 142, 126, 0.4),        /* Neblina esmeralda */
        0 0 50px rgba(5, 219, 197, 0.3),        /* Neblina turquesa */
        0 0 75px rgba(4, 142, 126, 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 */
        inset 0 -2px 0 rgba(4, 142, 126, 0.1);  /* Brillo verde inferior */
    
    /* Animación de neblina */
    animation: mistyGlowBox 5s ease-in-out infinite;
    animation-delay: 1s; /* Desfase con introduccion */
}

.historiaEvento p {
    width: 100%;
    text-align: justify;
    margin: 15px 0;
}

.historiaEvento h3 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Animación de neblina para el box */
@keyframes mistyGlowBox {
    0%, 100% {
        box-shadow: 
            0 0 25px rgba(4, 142, 126, 0.4),
            0 0 50px rgba(5, 219, 197, 0.3),
            0 0 75px rgba(4, 142, 126, 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(4, 142, 126, 0.1);
    }
    50% {
        box-shadow: 
            0 0 35px rgba(4, 142, 126, 0.6),
            0 0 70px rgba(5, 219, 197, 0.4),
            0 0 100px rgba(4, 142, 126, 0.3),
            0 10px 40px rgba(0, 0, 0, 0.15),
            inset 0 2px 0 rgba(255, 255, 255, 0.8),
            inset 0 -2px 0 rgba(4, 142, 126, 0.15);
    }
}

/*Imágen en textos explicativos*/

#imagen1 {
    display: block;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#imagen2 {
    display: block;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.videoCarlos {
    width: 100%;
    max-width: 350px;  /* Reducido de 500px a 350px */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*Damos formato al footer*/

.quienes_somos,
.contacto,
.ultimas_noticias {
    display: inline-block;
    margin-left: 10px;
}

.phone,
.fax,
.email,
.location {
    display: inline-flex;
    margin-left: 10px;
}

.main-sections p {
    color: white;
}

footer {
    width: 100%;
    background: linear-gradient(to right, rgb(4, 135, 122), rgb(5, 219, 197));
    margin-top: 40px;
    padding: 40px 20px 20px;
    
    /* Bordes redondeados superiores */
    border-radius: 30px 30px 0 0;
    
    /* Sombra mágica - Neblina superior */
    box-shadow: 
        0 -5px 25px rgba(5, 219, 197, 0.4),     /* Neblina turquesa desde arriba */
        0 -10px 50px rgba(4, 142, 126, 0.3),    /* Neblina esmeralda */
        0 -15px 75px rgba(5, 219, 197, 0.2),    /* Neblina difuminada */
        0 -8px 32px rgba(0, 0, 0, 0.2),         /* Sombra de profundidad */
        inset 0 2px 0 rgba(255, 255, 255, 0.15); /* Brillo interior superior */
    
    /* Animación de neblina */
    animation: mistyGlowFooter 6s ease-in-out infinite;
}

/* Animación específica para footer */
@keyframes mistyGlowFooter {
    0%, 100% {
        box-shadow: 
            0 -5px 25px rgba(5, 219, 197, 0.4),
            0 -10px 50px rgba(4, 142, 126, 0.3),
            0 -15px 75px rgba(5, 219, 197, 0.2),
            0 -8px 32px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.15);
    }
    50% {
        box-shadow: 
            0 -5px 35px rgba(5, 219, 197, 0.6),
            0 -10px 70px rgba(4, 142, 126, 0.4),
            0 -15px 100px rgba(5, 219, 197, 0.3),
            0 -8px 32px rgba(0, 0, 0, 0.2),
            inset 0 2px 0 rgba(255, 255, 255, 0.15);
    }
}

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 al estilo del cuadro de aceptar Cookies*/

#cookieConsent {
    display: none;
    position: fixed;
    bottom: 20px;
    align-items: center;
    align-content: center;
    text-align: center;
    background: rgba(250, 236, 236, 0.8);
    color: white;
    padding: 15px;
    margin-right: 10px;
    border-radius: 10px;
    z-index: 1000;
}

#acceptCookies {
    background-color: rgb(64, 224, 208);
    color: white;
    border: none;
    padding: 10px;
    margin-right: 10px;
    border-radius: 5px;
}

/*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: #fff;
    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);
}

/*Damos formato para pantallas grandes*/
@media screen and (min-width: 700px) {
    .header h1 {
        font-size: 70px;
    }

    .header img {
        height: 70px;
    }

    /*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;
        margin-left: 20px;
        list-style-position: inside;
        text-align: left;
    }

    .listas li {
        color: black;
        text-align: justify;
        padding-left: 40px;
    }

    #texto1,
    #texto2,
    #texto3 {
        text-align: justify;
        margin-left: 30px;
        margin-right: 30px;
    }

    #imagen1 {
        float: left;
        margin: 10px 20px 10px 0;
        max-width: 300px;
        height: auto;
    }

    #imagen2 {
        float: right;
        margin: 10px 0 10px 20px;
        max-width: 300px;
        height: auto;
    }

    .videoCarlos {
        max-width: 600px;
    }

    /*footer*/
    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .main-sections {
        width: 100%;
        max-width: 1400px;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 0 20px;
    }

    .phone,
    .fax,
    .email,
    .location {
        display: block;
        margin-bottom: 10px;
    }

    .phone img,
    .phone p,
    .fax img,
    .fax p,
    .email img,
    .email p,
    .location img,
    .location p {
        display: inline-flex;
        vertical-align: middle;
    }

    /*Estilos para las listas*/
    .legal_conditions {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 20px 0;
    }

    .conditions {
        display: flex;
        justify-content: center;
        align-items: center;
        list-style: none;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
    }

    .conditions li {
        margin: 5px 15px;
    }

    #cookieConsent {
        width: 40vw;
        max-width: 500px;
        top: 50%;
        left: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        text-align: center;
    }
}

/* Responsive para móviles */
@media (max-width: 699px) {
    .header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .header h1 {
        font-size: 35px;
        margin: 10px 0;
    }

    .header img {
        height: 50px;
        margin: 0 0 10px 0;
    }

    .navbar {
        margin: 10px;
        padding: 10px;
    }

    .historiaEvento {
        padding: 20px 15px;
        margin: 20px 10px;
    }

    #imagen1,
    #imagen2 {
        float: none;
        max-width: 100%;
        margin: 20px auto;
    }

    .videoCarlos {
        max-width: 100%;
    }

    .main-sections {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 0 10px;
    }

    .logo {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .logo img {
        margin: 10px 0;
    }

    .conditions {
        flex-direction: column;
        gap: 10px;
    }

    .conditions li {
        margin: 5px 0;
    }

    .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) {
    .header h1 {
        font-size: 28px;
    }

    .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;
    }
}