/* CONFIGURACIÓN GENERAL */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef2f3;
    color: #333;
}

/* ENCABEZADO */
header {
    background: linear-gradient(135deg, #003366, #005599);
    color: white;
    text-align: center;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* LOGO Y TÍTULO */
.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Se adapta en pantallas pequeñas */
    gap: 10px;
}

.header-content img {
    width: 50px;
    height: auto;
}

.header-content h1 {
    margin: 0;
    font-size: 22px;
}

/* MENÚ DE NAVEGACIÓN */
nav {
    display: flex;
    justify-content: center;
    background: #005599;
    padding: 10px;
    flex-wrap: wrap;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

nav ul li a {
    background-color: #003366;
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
    display: inline-block;
}

nav ul li a:hover {
    background-color: #ff6600;
}

/* CONTENIDO PRINCIPAL */
main {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: white;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

/* TABLAS */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto; /* Permite desplazamiento en móviles */
}

table, th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

th {
    background: #005599;
    color: white;
}

td a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

td a:hover {
    color: #ff6600;
}

/* LISTAS */
ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    background: #f8f9fa;
    padding: 12px;
    margin: 8px 0;
    border-left: 5px solid #005599;
    border-radius: 5px;
    text-align: left;
}

/* PIE DE PÁGINA */
footer {
    text-align: center;
    padding: 15px;
    background: #003366;
    color: white;
    margin-top: 20px;
}

/* BOTÓN DE WHATSAPP */
.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    width: 250px;
}

.whatsapp-button:hover {
    background-color: #1ebe57;
}

.whatsapp-container {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* FORMULARIO DE CONTACTO */
.contact-form {
    max-width: 450px;
    margin: 20px auto;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 100px;
    resize: none;
}

.contact-form button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0056b3;
}

/* SECCIÓN REDES SOCIALES */
.social-media {
    text-align: center;
    margin: 20px 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    font-size: 20px;
    color: white;
    background-color: #005599;
    padding: 12px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    width: 45px;
    height: 45px;
    text-decoration: none;
}

.social-links a:hover {
    background-color: #ff6600;
    transform: scale(1.1);
}

/* IMÁGENES */
.noticia-img {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* SITIOS DE INTERÉS */
.sitios-interes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.sitios-interes img {
    width: 80px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* MEDIA QUERIES PARA MÓVILES Y TABLETS */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .sitios-interes {
        flex-direction: column;
        align-items: center;
    }

    .noticia-img {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 18px;
    }

    .whatsapp-button {
        width: 90%;
    }

    .noticia-img {
        max-width: 220px;
    }

    .contact-form {
        max-width: 90%;
    }
}

/* MODAL CARRUSEL */
/* MODAL CARRUSEL CORREGIDO */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    display: flex;
}


.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

/* El contenedor del carrusel se adapta sin distorsionar */
.carousel-container {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #000;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Imagen adaptada correctamente al contenedor sin recorte */
#carousel-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* BOTONES DEL CARRUSEL MODERNOS */
.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.carousel-controls button {
    background-color: #005599;
    border: none;
    color: white;
    padding: 12px 16px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 3px 6px rgba(0,0,0,0.2);
}

.carousel-controls button:hover {
    background-color: #003366;
    transform: scale(1.05);
}

.close-btn {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 28px;
    color: #333;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6600;
}

/* 🔥 Enlace destacado Rifa Pro Fondos */
.rifa-link {
    background: linear-gradient(135deg, #ffcc00, #ff9900);
    color: #003366 !important;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, background 0.3s ease;
}

.rifa-link:hover {
    background: linear-gradient(135deg, #ffdb4d, #ffb84d);
    transform: scale(1.08);
    color: #001f3f !important;
}

.rifa-link i {
    color: #003366;
    margin: 0 4px;
}