/* ============================================
   ESTILOS PARA LA PÁGINA DE PRECIOS
   Basados en la paleta de colores de Grupo Enercore
   ============================================ */

/* Sección de precios nacionales */
.precios-nacionales {
    text-align: center;
    padding-bottom: 30px;
}

.precios-tarjetas {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin: 30px 0 20px;
}

.precio-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 20px 25px;
    min-width: 200px;
    transition: transform 0.3s ease;
    text-align: center;
}

.precio-card:hover {
    transform: translateY(-5px);
}

.precio-card .card-header {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.precio-card.regular .card-header { color: #28a745; border-bottom-color: #28a745; }
.precio-card.premium .card-header { color: #dc3545; border-bottom-color: #dc3545; }
.precio-card.diesel .card-header { color: #134fae; border-bottom-color: #134fae; }

.precio-card .card-precio {
    font-size: 2.8rem;
    font-weight: 700;
    color: #162133;
    margin: 15px 0;
}

.precio-card .card-precio small {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8a9ab4;
}

.precio-card .card-footer {
    font-size: 0.85rem;
    color: #8a9ab4;
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.nota-precios {
    font-size: 0.75rem;
    color: #8a9ab4;
    text-align: center;
    margin-top: 15px;
}

/* Tabla de precios por estado */
.precios-estados .filtros-estado {
    max-width: 350px;
    margin: 0 auto 30px auto;
}

.precios-estados .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #134fae;
}

.precios-estados .form-control {
    border-radius: 8px;
    border: 1px solid #dfe4ec;
    padding: 10px 15px;
    font-size: 1rem;
}

.table-precios {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-precios thead th {
    background-color: #134fae;
    color: white;
    font-weight: 600;
    padding: 12px 15px;
    border: none;
}

.table-precios tbody td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    color: #162133;
}

.table-precios tbody tr:hover {
    background-color: #f8f9ff;
}

.precio-destacado {
    font-weight: 700;
    color: #134fae;
    font-size: 1.1rem;
}

/* Tabla de mayoreo */
.tabla-mayoreo-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.table-bordered {
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    overflow: hidden;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dfe4ec;
    padding: 12px 15px;
    vertical-align: middle;
}

.bg-primary {
    background-color: #134fae !important;
}

.precio-mayoreo {
    font-weight: 600;
    color: #28a745;
}

.cta-mayoreo .btn-primary {
    background-color: #ffd300;
    border-color: #ffd300;
    color: #162133;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.cta-mayoreo .btn-primary:hover {
    background-color: #e6be00;
    border-color: #e6be00;
    transform: scale(1.02);
}

/* Sección de herramientas */
.herramientas {
    border-radius: 20px;
    margin: 40px 0;
    padding: 40px !important;
}

.herramientas .btn-outline-light {
    border: 2px solid white;
    color: white;
    border-radius: 40px;
    padding: 10px 25px;
    font-weight: 600;
}

.herramientas .btn-outline-light:hover {
    background-color: white;
    color: #134fae;
}

/* Alianzas */
.alianzas {
    text-align: center;
    padding: 30px 0;
}

.alianzas-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.alianzas-logos img {
    max-height: 60px;
    width: auto;
    filter: grayscale(0%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.alianzas-logos img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .precios-tarjetas {
        gap: 15px;
    }
    
    .precio-card {
        min-width: calc(33% - 15px);
        padding: 15px;
    }
    
    .precio-card .card-precio {
        font-size: 1.8rem;
    }
    
    .table-precios thead th,
    .table-precios tbody td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .alianzas-logos {
        gap: 20px;
    }
    
    .alianzas-logos img {
        max-height: 40px;
    }
}

@media (max-width: 480px) {
    .precio-card {
        min-width: 100%;
    }
    
    .precio-card .card-precio {
        font-size: 2.2rem;
    }
    
    .herramientas {
        text-align: center;
    }
}