/*Damos formato a la fuente*/

@font-face {
    font-family: 'longa_iberica';
    src: url(../fonts/longa_iberica/LongaIberica-DEMO.ttf);
}

/* Reset básico para evitar scroll horizontal */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

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: 100vw;
    padding: 0 10px;
    margin: 0 auto;
    overflow-x: hidden;
}

/*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;
    gap: 10px;
}

.icon {
    cursor: pointer;
    font-size: 16px;
    margin: 0 5px;
}

#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);
}

/* Wrapper del contenido principal */
.content-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header del evento */
.event-header {
    text-align: center;
    margin: 30px auto;
    padding: 30px 20px;
    max-width: 1000px;
    
    /* Fondo 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),
        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);
    
    /* 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),
            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);
    }
}

.event-title {
    font-family: 'longa_iberica', sans-serif;
    font-size: 3rem;
    color: rgb(4, 142, 126);
    font-weight: bold;
    margin-bottom: 10px;
}

.event-subtitle {
    font-size: 1.5rem;
    color: #666;
    font-style: italic;
}

/* Cartel del programa */
.programas-carteles {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.programas-carteles img {
    max-width: 100%;
    width: 600px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.programas-carteles img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(4, 142, 126, 0.4);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-lightbox:hover {
    color: rgb(5, 219, 197);
}

/* Programa del evento */
.programa {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 25px;
    border: 2px solid rgba(5, 219, 197, 0.3);
    margin: 30px auto;
    max-width: 1000px;
    
    /* Sombra mágica */
    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);
    
    /* Animación de neblina */
    animation: mistyGlowBox 5s ease-in-out infinite;
}

.programa h3 {
    font-family: 'longa_iberica', sans-serif;
    font-size: 2.5rem;
    color: rgb(4, 142, 126);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.programa-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin: 20px 0;
    background: rgba(5, 219, 197, 0.05);
    border-radius: 15px;
    border-left: 4px solid rgb(4, 142, 126);
    transition: all 0.3s ease;
}

.programa-item:hover {
    background: rgba(5, 219, 197, 0.1);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(4, 142, 126, 0.2);
}

.programa-hora {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(4, 142, 126);
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.programa-detalles h4 {
    color: rgb(4, 142, 126);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.programa-detalles p {
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
    font-size: 1.1rem;
}

.programa-lugar {
    margin-top: 10px;
    font-style: italic;
    color: #666;
}

.nacion-nombre {
    color: rgb(4, 142, 126);
    font-weight: bold;
    font-size: 1.2rem;
}

/*Footer*/

.phone,
.fax,
.email,
.location {
    display: inline-flex;
    align-items: center;
    margin: 5px 0;
}

.phone img,
.fax img,
.email img,
.location img {
    margin-right: 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),
        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);
    
    /* 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: clamp(24px, 5vw, 40px);
    color: red;
    font-weight: bold;
    letter-spacing: 3px;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    color: black;
}

li {
    color: white;
}

p {
    font-family: Arial, Helvetica, sans-serif;
    color: black;
}

li {
    color: white;
}

.tweet_text a {
    text-decoration: none;
    color: white;
}

.tweet_time {
    color: orange;
}

.tweet_list {
    list-style: none;
    padding: 0;
}

.legal_conditions {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.conditions {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.conditions li {
    margin: 5px 15px;
}

.conditions a {
    text-decoration: none;
    color: rgb(243, 238, 238);
    padding: 10px 15px;
    display: block;
}

.logo {
    padding: 20px;
    text-align: center;
}

.logo img {
    margin: 10px;
    max-width: 80px;
    height: auto;
}

/*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 - Tablets */
@media screen and (min-width: 768px) {
    .main-sections {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .quienes_somos,
    .contacto,
    .ultimas_noticias {
        flex: 1;
        min-width: 250px;
    }
}

/* RESPONSIVE - Escritorio */
@media screen and (min-width: 1024px) {
    
    body {
        margin-left: 10px;
    }

    .container {
        max-width: 1400px;
        padding: 0 20px;
    }

    .header {
        max-width: 1400px;
        margin: 20px auto;
    }

    .header h1 {
        font-size: 70px;
    }

    .header img {
        height: 70px;
    }

    .navbar {
        max-width: 1400px;
        margin: 10px auto;
    }

    .navbar a {
        margin-left: 40px;
    }

    .logo img {
        max-width: 80px;
        margin: 0 20px;
    }

    .conditions {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .conditions li {
        margin: 0 15px;
    }
}

/* Media queries - Pantallas grandes */
@media screen and (min-width: 700px) {
    .header h1 {
        font-size: 70px;
    }

    .header img {
        height: 70px;
    }

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .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: flex;
        align-items: center;
    }
}

/* Responsive para móviles */
@media screen and (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 {
        padding: 10px;
    }

    .event-title {
        font-size: 2rem;
    }

    .event-subtitle {
        font-size: 1.2rem;
    }

    .programas-carteles img {
        width: 100%;
        max-width: 400px;
    }

    .programa {
        padding: 20px;
    }

    .programa h3 {
        font-size: 2rem;
    }

    .programa-item {
        flex-direction: column;
        gap: 10px;
    }

    .programa-hora {
        font-size: 1.5rem;
        min-width: auto;
    }

    .programa-detalles h4 {
        font-size: 1.3rem;
    }

    .programa-detalles p {
        font-size: 1rem;
    }

    .nacion-nombre {
        font-size: 1.1rem;
    }

    .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 screen and (max-width: 480px) {
    .event-header {
        padding: 15px;
    }

    .event-title {
        font-size: 1.6rem;
    }

    .event-subtitle {
        font-size: 1rem;
    }

    .programa {
        padding: 15px;
    }

    .programa h3 {
        font-size: 1.8rem;
    }

    .programa-item {
        padding: 15px;
    }

    .programa-hora {
        font-size: 1.3rem;
    }

    .close-lightbox {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }

    .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;
    }
}

/* Responsive adicional */
@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;
    }
}