/*Damos formato a la fuente*/

@font-face {
    font-family: 'longa_iberica';
    src: url(../fonts/longa_iberica/LongaIberica-DEMO.ttf) format('truetype');
}

/* Fondo oscuro para simular la noche */
body {
    background-color: #0a0a0a;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/*Damos formato al Header*/

header {
    background: black;
}

.header {
    display: flex;
    align-items: center;
    height: 100px;
    padding: 0 20px;
}

.header img:first-child {
    height: 70px;  /*Logo Izquierda*/
}

.header img:last-child {
    height: 120px; /*Texto Samain más grande*/
    object-fit: contain; /*Evita deformaciones*/
}

/*Damos formato al nav-bar con efecto hoguera*/

/* Navbar con efecto hoguera - mantiene funcionalidad */
.navbar {
    background: rgba(20, 20, 20, 0.95) !important;
    box-shadow: 0 4px 20px rgba(255, 102, 0, 0.4);
    border-bottom: 2px solid rgba(255, 102, 0, 0.3);
}

.navbar-brand {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
    color: #ff6600 !important;
}

.navbar .nav-link {
    color: #e0e0e0 !important;
    transition: all 0.3s ease;
}

.navbar .nav-link:hover {
    color: #ff6600 !important;
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

.dropdown-menu {
    background-color: rgba(20, 20, 20, 0.95) !important;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.dropdown-item {
    color: white !important;
}

.dropdown-item:hover {
    background-color: rgba(255, 102, 0, 0.2) !important;
    color: #ff6600 !important;
}

/* Botón hamburguesa en móvil con líneas naranjas */
.navbar-toggler {
    border-color: rgba(255, 102, 0, 0.5);
    background-color: rgba(255, 102, 0, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 102, 0, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hover effect para el botón */
.navbar-toggler:hover {
    background-color: rgba(255, 102, 0, 0.2);
    border-color: rgba(255, 102, 0, 0.8);
}

/*Damos formato a los diferentes carteles con efecto hoguera*/

.programas-carteles {
    width: 90vw;
    display: inline-block;
    margin-left: 20px;
    margin-top: 20px;
}

.programas-carteles img {
    max-width: 90vw;
    height: auto;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.6),
                0 0 60px rgba(255, 102, 0, 0.3),
                0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 102, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.programas-carteles img:hover {
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.8),
                0 0 80px rgba(255, 102, 0, 0.5),
                0 15px 50px rgba(0, 0, 0, 0.6);
    transform: translateY(-5px);
}

/*Estilos para el lightbox*/

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/*Imagen dentro del lightbox*/

.lightbox img {
    max-width: 90vw;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(255, 102, 0, 0.8),
                0 0 100px rgba(255, 102, 0, 0.5);
}

/* Sección del programa con efecto hoguera mejorado */
.programa {
    margin: 30px auto;
    text-align: center;
    border-radius: 15px;
    background: radial-gradient(
        ellipse at center,
        #ff6b35 0%,
        #f7931e 10%,
        #c1440e 20%,
        #8b3a0e 30%,
        #4a1f0a 40%,
        #1a0a0a 55%,
        #0a0a0a 70%,
        #000000 100%
    );
    padding: 40px 20px;
    box-shadow: 0 0 40px rgba(255, 102, 0, 0.7),
                0 0 80px rgba(255, 102, 0, 0.4),
                0 10px 50px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 102, 0, 0.5);
    position: relative;
    overflow: hidden;
    max-width: 90%;
}

/* Añade este nuevo estilo para el efecto de parpadeo */
.programa::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 200, 100, 0.2) 0%, transparent 25%),
        radial-gradient(circle at 50% 50%, rgba(255, 140, 50, 0.15) 0%, transparent 35%);
    pointer-events: none;
    animation: flicker 4s ease-in-out infinite;
    z-index: 0;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Animación de resplandor para simular fuego */
@keyframes fireGlow {
    0%, 100% {
        box-shadow: 0 0 40px rgba(255, 102, 0, 0.7),
                    0 0 80px rgba(255, 102, 0, 0.4),
                    0 10px 50px rgba(0, 0, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 102, 0, 0.9),
                    0 0 100px rgba(255, 102, 0, 0.6),
                    0 15px 60px rgba(0, 0, 0, 0.7);
    }
}

.programa {
    animation: fireGlow 3s ease-in-out infinite;
}

/* Asegura que el contenido esté sobre el efecto */
.programa h3,
.programa ul,
.programa ul li,
.programa ul li p,
.programa h4,
.programa h5,
.programa li,
.programa p {
    position: relative;
    z-index: 1;
    color: #e0e0e0;
}

.programa li {
    list-style: none;
}

.programa h3, 
.programa h4, 
.programa h5, 
.programa h6 {
    color: #ff6600;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.8),
                 0 0 30px rgba(255, 102, 0, 0.4);
}

/*Damos formato al footer - MANTENER INTACTO*/

.quienes_somos,
.contacto,
.ultimas_noticias {
    display: inline-block;
    margin-left: 10px;
}

.phone,
.fax,
.email,
.location {
    display: inline-flex;
    margin-left: 10px;
}

.phone p,
.fax p,
.email p,
.location p {
    color: white;
}

footer {
    background-color: black;
    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: white;
}

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: grey;
    padding: 10px 15px;
    display: block;
}

.logo {
    padding-bottom: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.logo img {
    margin-left: 40px;
}

/*Damos formato para monitores grandes*/

@media screen and (min-width: 700px) and (max-width: 3270px) {

    /*Header*/

    .header img {
        margin-left: 70px;
    }

    /*Menu*/

    .nav-item {
        margin-left: 60px;
    }

    .navbar-brand {
        margin-left: 10px;
    }

    .programas-carteles {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 60px;
    }

    .programas-carteles img {
        width: 45%;
        height: auto;
    }

    .programa {
        width: 60vw;
        margin-left: auto;
        margin-right: auto;
    }
    
    /*footer*/

    footer>div {
        margin: 10px;
    }

    /*Usamos flexbox solo en main-sections*/

    footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .main-sections {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .main-sections .quienes_somos,
    .main-sections .contacto,
    .main-sections .noticias {
        flex: 1;
    }

    /*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;
    }
}

/*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;
    }
}

/* Añade animación de parpadeo sutil para simular fuego */
@keyframes fireGlow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 102, 0, 0.5),
                    0 0 60px rgba(255, 102, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 102, 0, 0.7),
                    0 0 80px rgba(255, 102, 0, 0.4);
    }
}

.presentacion,
.updates-carousel-container,
.Samain {
    animation: fireGlow 3s ease-in-out infinite;
}