/* resorts/templates/resorts/estado_pistas.html */

.ep-metric-label {
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

.ep-meteorologia,
.ep-forecast-section {
    border-inline-start: none !important;
    border-top: 3px solid #1976d2;
}

.ep-forecast-section {
    border-top-color: #ff9800;
}

/* Webcams */
.ep-webcams {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
}

.ep-webcams .ep-section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.ep-webcams .ep-section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-primary, #870023), #a3002b);
    color: #fff;
    border-radius: 10px;
    flex-shrink: 0;
}

.ep-webcams-resort {
    color: var(--brand-primary, #870023);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary, #870023);
}

.ep-webcams-resort i {
    margin-inline-end: 0.5rem;
}

.ep-webcams-resort--next {
    margin-top: 2rem;
}

.ep-webcams > .ep-webcams-note {
    margin: -0.5rem 0 1.25rem;
    max-width: 60ch;
}

/* Mobile-first responsive styles for Estado de Pistas */
@media (max-width: 767.98px) {
    /* Hero adjustments */
    .ep-hero { padding: 2rem 0 !important; padding-top: 7rem !important; }
    .ep-hero h1 { font-size: 1.4rem !important; }
    .ep-hero p { font-size: 0.95rem !important; }
    
    /* Card headers - stack on mobile */
    .ep-card-header { 
        flex-direction: column !important; 
        gap: 1rem !important;
        align-items: flex-start !important;
    }
    .ep-card-header a { 
        width: 100% !important; 
        text-align: center !important;
        padding: 0.75rem !important;
    }
    
    /* Metrics grid - adjust for mobile */
    .ep-metrics { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 0.5rem !important;
    }
    .ep-metric-value { font-size: 1.4rem !important; }
    .ep-metric-label { font-size: 0.65rem !important; letter-spacing: 0.5px !important; }
    .ep-metric-box { padding: 0.75rem 0.5rem !important; }
    
    /* Instalaciones section - stack on mobile */
    .ep-installations { 
        display: block !important;
    }
    .ep-installations > div { 
        margin-bottom: 1rem !important; 
    }
    
    /* Meteorologia section - optimize for mobile */
    .ep-meteorologia {
        border-top: 3px solid #1976d2 !important;
        padding: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }
    .ep-meteorologia > div { 
        font-size: 0.85rem !important; 
        margin-bottom: 0.25rem !important;
    }
    
    /* Forecast section */
    .ep-forecast-section { 
        padding: 0.75rem !important; 
        margin-bottom: 0.75rem !important;
    }
    .ep-forecast-section h4 { 
        font-size: 0.9rem !important; 
        margin-bottom: 0.5rem !important;
    }
    .ep-forecast-section p { 
        font-size: 0.85rem !important; 
        line-height: 1.4 !important;
    }
    
    /* Webcams grid */
    .ep-webcams {
        padding: 1.25rem !important;
        border-radius: 16px !important;
    }
    
    /* Weather section */
    .ep-weather-grid { grid-template-columns: 1fr 1fr !important; gap: 0.75rem !important; }
    .ep-weather-box { padding: 1rem !important; }
    .ep-weather-temp { font-size: 2rem !important; }
    
    /* Forecast days */
    .ep-forecast-days { gap: 0.25rem !important; }
    .ep-forecast-day { padding: 0.5rem 0.25rem !important; min-width: 50px !important; }
    .ep-forecast-icon { font-size: 1rem !important; }
    .ep-forecast-temps { font-size: 0.7rem !important; }
    
    /* Avalanche section */
    .ep-avalanche-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    .ep-avalanche-indicator { 
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }
    .ep-avalanche-info { 
        font-size: 1rem !important;
    }
    .ep-avalanche-warning { 
        padding: 1rem !important;
        margin-top: 0.5rem !important;
    }
    .ep-avalanche-warning i { 
        font-size: 1.5rem !important;
    }
    
    /* Avalanche scale - horizontal scroll on very small */
    .ep-avalanche-scale { 
        gap: 0.25rem !important; 
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
    }
    .ep-avalanche-item { 
        font-size: 0.6rem !important; 
        padding: 0.5rem 0.15rem !important;
        min-width: 55px !important;
        flex-shrink: 0 !important;
    }
    
    /* Section padding */
    .ep-section { padding: 1.25rem !important; border-radius: 16px !important; }
    .ep-section-title { font-size: 1.1rem !important; margin-bottom: 1rem !important; }
    .ep-section-icon { width: 32px !important; height: 32px !important; }
    
    /* CTA */
    .ep-cta { padding: 2rem 1rem !important; }
    .ep-cta h2 { font-size: 1.4rem !important; }
    .ep-cta-buttons { flex-direction: column !important; gap: 0.75rem !important; }
    .ep-cta-btn { width: 100% !important; justify-content: center !important; }
    
    /* Disclaimer */
    .ep-disclaimer { padding: 1rem !important; font-size: 0.85rem !important; }
}

@media (max-width: 480px) {
    .ep-hero h1 { font-size: 1.2rem !important; }
    .ep-metrics { grid-template-columns: repeat(3, 1fr) !important; }
    .ep-metric-value { font-size: 1.2rem !important; }
    .ep-metric-label { font-size: 0.6rem !important; }
    .ep-weather-grid { grid-template-columns: 1fr !important; }
    .ep-avalanche-indicator { width: 60px !important; height: 60px !important; font-size: 1.8rem !important; }
    .ep-section { padding: 1rem !important; }
    .ep-section-title { font-size: 1rem !important; }
    .ep-cta { padding: 1.5rem 1rem !important; }
    .ep-cta h2 { font-size: 1.2rem !important; }
    .ep-cta p { font-size: 0.95rem !important; }
}

/* Animación para indicador LIVE */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
