/* Estilos generales */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background:  #272727;
    min-height: 100vh;
    position: relative;
    padding-bottom: 100px;
    /* display: flex;
    flex-direction: column;
    height: 100vh; */
}

/* Carrusel */
.swiper-container {
    width: 100%;
    height: 250px;
    position: relative;
    background-color:  linear-gradient(to right,#000000, #272727);
}

/* Flechas de navegación */
.swiper-button-next, .swiper-button-prev {
    color: #fcdc00;
}

/* Puntos de paginación */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #d03226;
}

/* Responsividad */
@media (max-width: 768px) {
    .swiper-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .swiper-container {
        height: 150px;
    }
}

@media (max-width: 768px) {
    #contenidoprincipal {
        max-height: 75vh; /* Ajustar altura en móviles */
    }
}
/* Estilos para la barra de logo e idioma */
#logobarra {
    background-color: #272727; /* Azul rey */
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.logo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fcdc00; /* Amarillo */
}

.nombre-pagina {
    margin: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fcdc00; /* Amarillo */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Selector de idioma */
.idioma-container {
    position: relative;
}

#selector-idioma {
    padding: 8px 15px;
    border-radius: 20px;
    border: none;
    background-color: #69ace3; /* Azul claro */
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    appearance: none;
    transition: all 0.3s ease;
}

#selector-idioma:hover {
    background-color: #d03226; /* Rojo */
    transform: scale(1.05);
}

/* Estilos para el header y menú */
header {
    background: linear-gradient(to right,#000000, #272727); /* Azul oscuro a claro */
    padding: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0;
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 25px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

/* Efecto hover animado */
nav ul li a:hover {
    background-color: #d03226; /* Rojo */
    color: #fcdc00; /* Amarillo */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: #fcdc00; /* Amarillo */
    bottom: 0;
    left: 50%;
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 80%;
    left: 10%;
}


.noticia-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.noticia-titulo {
    font-size: 28px;
    font-weight: bold;
    color: #1323b7;
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.noticia-imagen {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.noticia-contenido {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    text-align: justify;
    padding: 0 10px;
}

.noticia-fecha {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-top: 10px;
    font-style: italic;
}

/* Botón de regresar */
.boton-regresar {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 12px 20px;
    background: #d03226;
    color: white;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.boton-regresar:hover {
    background: #a6281d;
    transform: scale(1.05);
}

/* Responsivo */
@media (max-width: 768px) {
    .noticia-container {
        margin: 20px;
        padding: 15px;
    }
    
    .noticia-titulo {
        font-size: 24px;
    }

    .noticia-contenido {
        font-size: 16px;
    }
}




/* Estilos para el footer */
footer {
    background: linear-gradient(to right, #221e1e, #000000); /* Azul oscuro a claro */
    color: white;
    text-align: center;
    padding: 20px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: #fcdc00; /* Amarillo */
    text-decoration: none;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 10px;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}

.social-icons a:hover {
    background-color: #d03226; /* Rojo */
    transform: translateY(-5px) scale(1.1);
    color: #fcdc00; /* Amarillo */
}

/* Animación para el menú */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

nav ul li:hover {
    animation: pulse 0.5s ease;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 5px 0;
    }
    
    #logobarra {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .logo-container {
        justify-content: center;
    }
}