/* CSS ESPECÍFICO PARA LA PÁGINA DE INFORMACIÓN */

/* Importar estilos comunes */
@import url('common.css');

/* CONTENEDOR PRINCIPAL DE INFORMACIÓN */
.info-page-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    height: 100vh;
    min-height: 100vh;
    max-height: 100vh;
    padding: 20px;
    padding-bottom: 80px; /* footer height */
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

/* COLUMNA IZQUIERDA */
.info-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
}

/* COLUMNA DERECHA */
.info-right-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
    min-height: 0;
}

/* CONTENEDORES DE SECCIÓN */
.carousel-container,
.weather-container,
.qr-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 64, 113, 0.1);
    border: 1px solid rgba(0, 64, 113, 0.1);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* CARRUSEL DE MENSAJES E IMÁGENES - COLUMNA COMPLETA */
.carousel-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.carousel-display {
    flex: 1;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 15px;
    background: rgba(0, 64, 113, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 64, 113, 0.1);
    box-sizing: border-box;
    position: relative;
}

/* ELEMENTOS DEL CARRUSEL */
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    padding: 20px;
    box-sizing: border-box;
}

.carousel-item.active {
    opacity: 1;
}

/* MENSAJES EN EL CARRUSEL */
.carousel-message {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    border-left: 6px solid #004071;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    max-width: 90%;
    width: 100%;
    font-size: 2.5rem;
    line-height: 1.4;
    font-weight: 500;
    color: #004071;
    animation: slideIn 0.5s ease-out;
}

.carousel-message.destacado {
    background: linear-gradient(135deg, rgba(0, 64, 113, 0.1), rgba(0, 90, 158, 0.1));
    border-left-color: #005a9e;
    font-weight: 600;
    font-size: 3rem;
}

/* IMÁGENES EN EL CARRUSEL */
.carousel-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.carousel-image .image-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SECCIÓN DEL CLIMA */
.weather-container {
    flex: 0.4;
    display: flex;
    flex-direction: column;
}

.weather-display {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(0, 64, 113, 0.05), rgba(0, 90, 158, 0.05));
    border-radius: 10px;
    border: 1px solid rgba(0, 64, 113, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.weather-icon {
    font-size: 48px;
    margin-bottom: 10px;
    color: #004071;
}

.weather-temp {
    font-size: 32px;
    font-weight: 700;
    color: #004071;
    margin-bottom: 10px;
}

.weather-desc {
    font-size: 20px;
    color: #005a9e;
    font-weight: 500;
}

/* SECCIÓN DE CÓDIGOS QR - MÁS GRANDE */
.qr-container {
    flex: 0.6;
    display: flex;
    flex-direction: column;
}

.qr-code {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 64, 113, 0.05);
    border-radius: 10px;
    border: 2px dashed rgba(0, 64, 113, 0.3);
    min-height: 0;
    padding: 20px;
}

.qr-code img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
}

.qr-placeholder {
    font-size: 120px;
    color: rgba(0, 64, 113, 0.3);
}

/* RESPONSIVE PARA INFORMACIÓN */
@media (max-width: 1024px) {
    .info-page-container {
        grid-template-columns: 3fr 1fr;
        height: 100vh;
        min-height: 100vh;
        padding: 15px;
        padding-bottom: 80px;
    }
    
    .info-left-column,
    .info-right-column {
        gap: 15px;
        height: 100%;
        min-height: 0;
    }
    
    .carousel-display {
        min-height: 0;
    }
    
    .carousel-message {
        font-size: 2rem;
        padding: 30px;
    }
    
    .carousel-message.destacado {
        font-size: 2.5rem;
    }
    
    .weather-display {
        padding: 15px;
        min-height: 0;
    }
    
    .qr-code {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .info-page-container {
        grid-template-columns: 1fr;
        height: 100vh;
        min-height: 100vh;
        padding: 10px;
        padding-bottom: 80px;
    }
    
    .info-left-column,
    .info-right-column {
        gap: 10px;
        height: 50%;
        min-height: 0;
    }
    
    .carousel-container,
    .weather-container,
    .qr-container {
        padding: 15px;
    }
    
    .carousel-message {
        font-size: 1.5rem;
        padding: 20px;
    }
    
    .carousel-message.destacado {
        font-size: 2rem;
    }
    
    .weather-icon {
        font-size: 36px;
    }
    
    .weather-temp {
        font-size: 24px;
    }
    
    .weather-desc {
        font-size: 16px;
    }
    
    .qr-placeholder {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .info-page-container {
        padding: 8px;
        padding-bottom: 80px;
    }
    
    .carousel-container,
    .weather-container,
    .qr-container {
        padding: 12px;
    }
    
    .carousel-message {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .carousel-message.destacado {
        font-size: 1.5rem;
    }
    
    .weather-icon {
        font-size: 32px;
    }
    
    .weather-temp {
        font-size: 20px;
    }
    
    .weather-desc {
        font-size: 14px;
    }
    
    .qr-placeholder {
        font-size: 60px;
    }
} 