/* Contenedor principal */
.lc-calefaccion-container {
    background: #ffffff;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.lc-calefaccion-compact {
    padding: 15px;
}

/* Header */
.lc-calefaccion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.lc-calefaccion-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2E7D32;
}

.lc-calefaccion-timestamp {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.lc-calefaccion-live {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Grid */
.lc-calefaccion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.lc-calefaccion-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.lc-calefaccion-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.lc-calefaccion-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.lc-calefaccion-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #4CAF50;
}

.lc-calefaccion-icon {
    font-size: 36px;
    margin-right: 15px;
    min-width: 50px;
    text-align: center;
}

.lc-calefaccion-content {
    flex: 1;
}

.lc-calefaccion-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lc-calefaccion-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.lc-calefaccion-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lc-calefaccion-status.normal {
    background: #E8F5E8;
    color: #2E7D32;
}

.lc-calefaccion-status.high {
    background: #FFF3E0;
    color: #F57C00;
}

.lc-calefaccion-status.low {
    background: #E3F2FD;
    color: #1976D2;
}

.lc-calefaccion-status.cold {
    background: #E1F5FE;
    color: #0277BD;
}

.lc-calefaccion-status.warm {
    background: #FFF8E1;
    color: #F57F17;
}

/* Barras de progreso */
.lc-calefaccion-progress {
    width: 100%;
    height: 8px;
    background: #F5F5F5;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid #e0e0e0;
}

.lc-calefaccion-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
    transition: width 0.5s ease;
    border-radius: 3px;
}

/* Colores específicos por card */
.lc-temp-exterior {
    border-left: 4px solid #2196F3;
}

.lc-temp-exterior:hover {
    border-left: 4px solid #2196F3;
    border-color: #2196F3;
}

.lc-temp-impulsion {
    border-left: 4px solid #FF5722;
}

.lc-temp-impulsion:hover {
    border-left: 4px solid #FF5722;
    border-color: #FF5722;
}

.lc-temp-retorno {
    border-left: 4px solid #FF9800;
}

.lc-temp-retorno:hover {
    border-left: 4px solid #FF9800;
    border-color: #FF9800;
}

.lc-generacion {
    border-left: 4px solid #9C27B0;
}

.lc-generacion:hover {
    border-left: 4px solid #9C27B0;
    border-color: #9C27B0;
}

.lc-demanda-1 {
    border-left: 4px solid #4CAF50;
}

.lc-demanda-1:hover {
    border-left: 4px solid #4CAF50;
    border-color: #4CAF50;
}

.lc-demanda-2 {
    border-left: 4px solid #8BC34A;
}

.lc-demanda-2:hover {
    border-left: 4px solid #8BC34A;
    border-color: #8BC34A;
}

/* Footer */
.lc-calefaccion-footer {
    background: #F8F9FA;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    color: #333;
    margin-top: 10px;
}

.lc-calefaccion-efficiency {
    font-size: 16px;
    font-weight: 500;
    color: #2E7D32;
}

.lc-calefaccion-efficiency-icon {
    margin-right: 8px;
}

/* Error */
.lc-calefaccion-error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .lc-calefaccion-container {
        margin: 10px 0;
        padding: 15px;
    }

    .lc-calefaccion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .lc-calefaccion-header h3 {
        font-size: 20px;
    }

    .lc-calefaccion-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .lc-calefaccion-card {
        padding: 15px;
    }

    .lc-calefaccion-value {
        font-size: 24px;
    }

    .lc-calefaccion-icon {
        font-size: 30px;
        margin-right: 12px;
    }
}

/* Efectos adicionales */
.lc-calefaccion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(76, 175, 80, 0.02) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 8px;
}

.lc-calefaccion-card {
    position: relative;
}

.lc-calefaccion-card:hover::before {
    opacity: 1;
}

/* Animaciones suaves */
.lc-calefaccion-value {
    transition: color 0.3s ease;
}

.lc-calefaccion-card:hover .lc-calefaccion-value {
    color: #2E7D32;
}

/* Mejora visual del progreso */
.lc-calefaccion-progress {
    position: relative;
}

.lc-calefaccion-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}