/*Damos formato a la fuente*/

@font-face {
    font-family: 'longa_iberica';
    src: url(../fonts/longa_iberica/LongaIberica-DEMO.ttf) format('truetype');
}

/* Añade estos estilos al principio de tu CSS (después de @font-face) */

/* Fondo oscuro para simular la noche */
body {
    background-color: #0a0a0a;
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    min-height: 100vh;
}

/* 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 .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);
}

.navbar-brand {
    color: #ff6600 !important;
}

.dropdown-menu {
    background-color: rgba(20, 20, 20, 0.95) !important;
    border: 1px solid rgba(255, 102, 0, 0.3);
}

.dropdown-item {
    color: #e0e0e0 !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 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*/

.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;
}

.foto_cabecera img {
    object-fit: cover;
}

/*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;
}

/*Damos formato a la descripción de Halloween*/


.halloween h2 {
    text-align: center;
    color: white;
    font-weight: bold;
    margin-top: 10px;
}

.halloween p {
    text-align: justify;
    /*Justifica el texto para que se vea más ordenado.*/
    color: white;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
    margin-left: 10px;
    margin-right: 10px;
}

.halloween img {
    display: block;
    margin: 10px auto;
    /*Centra la imagen*/
    max-width: 90vw;
    height: auto;
    /*Mantiene la proporción de la imagen*/
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 102, 0, 0.5),
                0 0 60px rgba(255, 102, 0, 0.3),
                inset 0 0 20px rgba(255, 102, 0, 0.1);
}

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;
    /*Relleno interno para aumentar el área clicable*/
    display: block;
}

.logo {
    padding-bottom: 20px;
    margin-left: 60px;
    margin-right: 60px;
}

.logo img {
    margin-left: 40px;
}

/*Adaptación a pantallas de monitor portatil y sobremesa*/

@media screen and (min-width: 700px) and (max-width: 3270px) {

    .header img {
        margin-left: 70px;
    }

    .navbar-brand {
        margin-left: 20px;
    }

    .nav-item {
        margin-left: 20px;
    }

    /*Centramos la imagen de la cabecera.*/

    .foto_cabecera {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .img-fluid {
        width: 93vw;
        height: 700px;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .halloween {
        margin-left: 80px;
        margin-right: 80px;
    }


    #imagen1 {
        float: left;
        margin: 10px;
        max-width: 30%;
        /*Tamaño reducido para pantallas grandes*/
        height: auto;
    }

    #imagen2 {
        float: right;
        margin: 10px;
        max-width: 30%;
        height: auto;
    }

    #imagen3 {
        display: none;
        /*Quitamos la imagen para tamaños de pantalla grandes*/
    }

    /*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;
        /*Distribuye uniformemente las secciones*/
        align-items: flex-start;
        /*alinea la secciones por la parte superior*/
        flex-wrap: wrap;
        /*permite que se reorganicen en pantallas pequeñas*/
    }

    .main-sections .quienes_somos,
    .main-sections .contacto,
    .main-sections .noticias {
        flex: 1;
        /*Cada sección tendrá el mismo ancho*/
    }

    .Samain {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px;
        margin-left: 40px;
        margin-right: 40px;
        text-align: center;
    }

    /*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*/
    }
}
/*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;
}