/* Estilos modernos para el plugin de combustibles con colores institucionales */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #2563EB;
    --primary-orange: #F59E0B;
    --primary-yellow: #EAB308;
    --dark-blue: #1E40AF;
    --light-blue: #EFF6FF;
    --light-orange: #FEF3C7;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-heavy: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --border-radius-small: 6px;
}

.combustibles-container {
    max-width: 650px;
    margin: 30px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--gray-200);
}

.combustibles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-orange) 100%);
}

.combustibles-titulo {
    background: var(--primary-blue);
    color: var(--white);
    margin: 0;
    padding: 24px 30px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.3px;
    position: relative;
}

.combustibles-fecha-texto {
    color: var(--text-light);
    font-size: 14px;
    text-align: center;
    margin: -10px 0 20px 0;
    font-style: italic;
    font-weight: 400;
}

.combustibles-precios {
    padding: 0 30px 30px;
}

.combustibles-fecha-info {
    padding: 16px 20px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
}



.fecha-periodo {
    margin: 0;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.2px;
}

.combustible-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    margin-bottom: 8px;
    background: var(--white);
    border-radius: var(--border-radius-small);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

.combustible-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-blue);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.combustible-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-medium);
    border-color: var(--gray-300);
}

.combustible-item:hover::before {
    transform: scaleY(1);
}

.combustible-nombre {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 15px;
    letter-spacing: 0.1px;
}

.combustible-nombre i {
    margin-right: 12px;
    font-size: 16px;
    color: var(--primary-blue);
    width: 18px;
    text-align: center;
}

.combustible-precio {
    font-weight: 600;
    color: var(--white);
    font-size: 16px;
    background: var(--primary-blue);
    padding: 8px 14px;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.combustible-precio::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.4s;
}

.combustible-item:hover .combustible-precio::before {
    left: 100%;
}

.combustibles-error {
    background: #FEF2F2;
    color: #DC2626;
    padding: 16px 20px;
    border-radius: var(--border-radius-small);
    border: 1px solid #FECACA;
    text-align: center;
    font-weight: 500;
    box-shadow: var(--shadow-light);
}

.combustibles-loading {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
}

.combustibles-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-top: 2px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.combustibles-footer {
    text-align: center;
    padding: 16px 30px;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    font-size: 13px;
    color: var(--text-light);
}

.ultima-actualizacion {
    color: var(--text-light);
    font-weight: 500;
}

.periodo-vigencia {
    color: var(--primary-blue);
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .combustibles-container {
        margin: 15px;
        max-width: calc(100% - 30px);
    }
    
    .combustibles-titulo {
        font-size: 24px;
        padding: 20px 25px;
    }
    
    .combustibles-precios {
        padding: 0 20px 25px;
    }
    
    .combustible-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 18px 20px;
    }
    
    .combustible-nombre {
        justify-content: center;
        font-size: 15px;
    }
    
    .combustible-precio {
        font-size: 16px;
        padding: 8px 14px;
    }
    
    .combustibles-fecha-info {
        padding: 15px 18px;
        margin-bottom: 20px;
    }
    
    .fecha-periodo {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .combustibles-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .combustibles-titulo {
        font-size: 22px;
        padding: 18px 20px;
    }
    
    .combustibles-precios {
        padding: 0 15px 20px;
    }
    
    .combustible-item {
        padding: 15px 18px;
        margin-bottom: 10px;
    }
    
    .combustible-nombre {
        font-size: 14px;
    }
    
    .combustible-nombre i {
        font-size: 16px;
        margin-right: 10px;
    }
    
    .combustible-precio {
        font-size: 15px;
        padding: 7px 12px;
    }
    
    .combustibles-fecha-info {
        padding: 12px 15px;
    }
    
    .fecha-periodo {
        font-size: 14px;
    }
}

/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.combustibles-container {
    animation: fadeInUp 0.6s ease-out;
}

.combustible-item {
    animation: fadeInUp 0.5s ease-out;
}

.combustible-precio:hover {
    animation: pulse 0.3s ease-in-out;
}
