/* Variables para colores */
:root {
    --verde: #8cc63f;
    --azul: #2da7df;
    --rojo: #ed1c24;
    --amarillo: #fff200;
    --rosa: #ec008c;
    --fondo: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    /* Cambiado a blanco */
    overflow-x: hidden;
}

/* Pantalla completa de inicio */
.hero {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    /* Cambiado de rojo a blanco */
    position: relative;
    overflow: hidden;
    padding-bottom: 30px;
    /* Reducido el espacio adicional */
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Volvemos a cover para que llene toda la pantalla */
    position: absolute;
    top: 0;
    left: 0;
}

/* Mostrar/ocultar imágenes según el dispositivo y estado de carga */
.placeholder-image {
    display: block;
    z-index: 1;
}

.desktop-image,
.mobile-image {
    display: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* En pantallas más grandes, preparar para mostrar la imagen de desktop */
@media (min-width: 768px) {
    .desktop-image.loaded {
        display: block;
        opacity: 1;
    }

    .mobile-image {
        display: none;
    }

    .placeholder-image.hidden {
        display: none;
    }
}

/* En pantallas más pequeñas, preparar para mostrar la imagen de móvil */
@media (max-width: 767px) {
    .mobile-image.loaded {
        display: block;
        opacity: 1;
    }

    .desktop-image {
        display: none;
    }

    .placeholder-image.hidden {
        display: none;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    max-width: 90%;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Sección de tarjetas */
.cards-section {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 500px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}

.card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 180px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-content {
    padding: 20px;
    color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    z-index: 1;
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.card p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.card-dia7 {
    background-color: #a2f435;
    /* Verde exacto solicitado */
}

.card-dia8 {
    background-color: #06b1ff;
    /* Azul exacto solicitado */
}

.card-dia9 {
    background-color: var(--rosa);
    /* Se mantiene */
}

.card-dia10 {
    background-color:red;
    /* Se mantiene */
}

.card-info {
    background-color: #ffee44;
    /* Amarillo vibrante */
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    overflow-y: auto;
}

.modal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    background-color: white;
    width: 100%;
    min-height: 100%;
    overflow-y: auto;
    padding-bottom: 50px;
    /* Para dar espacio al botón de cerrar */
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    color: white;
    position: relative;
}

.modal-dia7 .modal-header {
    background-color: var(--azul);
}

.modal-dia8 .modal-header {
    background-color: var(--verde);
}

.modal-dia9 .modal-header {
    background-color: var(--rosa);
}

.modal-dia10 .modal-header {
    background-color: var(--rojo);
}

.modal-info .modal-header {
    background-color: var(--azul);
    color: white;
}

/* Cambiar el color de fondo del modal de información */
.info-modal-body {
    background-color: #f5f5f5;
}

.modal-body {
    padding: 20px;
}

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Estilos para la información de los eventos dentro del modal */
.event {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.event:last-child {
    border-bottom: none;
}

.event-time {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.event-location {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
}

.event-description {
    margin-top: 10px;
    line-height: 1.4;
}

/* Estilos para diferentes secciones del día */
.section-divider {
    background-color: #f0f0f0;
    padding: 10px 15px;
    margin: 20px -20px;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

/* Pie de página */
footer {
    text-align: center;
    padding: 30px 20px;
    background-color: #4DA9DD;
    /* Color celeste */
    color: white;
}

footer .logo {
    margin-bottom: 15px;
}

footer .logo img {
    max-width: 200px;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Estilos para la descripción del evento */
.event-description ul {
    padding-left: 20px;
    margin-top: 8px;
}

.event-description li {
    margin-bottom: 5px;
}

.event-description p {
    margin-bottom: 10px;
}

/* Estilos para las tarjetas de información */
.info-card {
    background-color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-title {
    color: var(--azul);
    margin-bottom: 15px;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--azul);
    padding-bottom: 8px;
    display: inline-block;
}

.info-card h4 {
    color: #444;
    margin: 15px 0 10px;
    font-size: 1.1rem;
}

.info-card ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.info-card li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.info-card p {
    line-height: 1.5;
    margin-bottom: 10px;
}

.info-card a {
    color: var(--azul);
    text-decoration: none;
    font-weight: bold;
}

.info-card a:hover {
    text-decoration: underline;
}

.material-section {
    margin-bottom: 15px;
}

/* Responsive para tablets y desktop */
@media (min-width: 768px) {
    .cards-container {
        flex-direction: row;
        flex-wrap: wrap;
        max-width: 1000px;
        justify-content: center;
    }

    .card {
        flex: 0 0 calc(33.333% - 20px);
        min-width: 250px;
        max-width: 300px;
        height: 220px;
        margin: 10px;
    }

    .modal-content {
        width: 90%;
        max-width: 800px;
        min-height: auto;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 15px;
    }

    .modal-header {
        border-radius: 15px 15px 0 0;
    }
}