/* 1. PÁGINA: TARIFAS - SUPERGAS DE NARIÑO */

/* 1.1. CONTENEDOR PRINCIPAL */
.tarifas-page {
    padding: 120px 0 80px;
    min-height: 100vh;
    background: linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 100%);
}

/* 2. ENCABEZADO */
.tarifas-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.tarifas-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #1E293B;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

/* 2.1. Línea decorativa del título */
.tarifas-header h1::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 120px;
    height: 4px;
    background: #FF5C00;
    border-radius: 999px;
}

.tarifas-header p {
    margin-top: 1.5rem;
    color: #64748B;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 3. INFORMACIÓN GENERAL (CAJA VERDE) */
.tarifas-info-box {
    background: linear-gradient(135deg, #317F3C, #25632E);
    color: white;
    border-radius: 28px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 35px -12px rgba(49, 127, 60, .35);
}

.tarifas-info-box h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.tarifas-info-box p {
    line-height: 1.8;
    color: rgba(255, 255, 255, .95);
}

/* 4. ESTADOS (CARGA, VACÍO, ERROR) */
.tarifas-loader,
.tarifas-empty,
.tarifas-error {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 15px 35px -12px rgba(0, 0, 0, .12);
    padding: 3rem;
    text-align: center;
    color: #64748B;
}

.tarifas-loader i,
.tarifas-empty i,
.tarifas-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FF5C00;
}

.tarifas-empty h3,
.tarifas-error h3 {
    color: #1E293B;
    margin-bottom: .5rem;
}

/* 5. SECCIONES POR AÑO */
.tarifas-year-section {
    margin-bottom: 2.5rem;
}

/* 5.1. Título del año */
.tarifas-year-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
    color: #1E293B;
    font-size: 1.7rem;
}

/* 5.2. Badge del año */
.tarifas-year-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF5C00, #E65300);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

/* 6. GRID Y TARJETAS DE TARIFAS */
.tarifas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* 6.1. Tarjeta individual */
.tarifa-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 15px 35px -16px rgba(0, 0, 0, .16);
    overflow: hidden;
    transition: all .3s ease;
}

.tarifa-card:hover {
    transform: translateY(-6px);
    border-color: #FF5C00;
    box-shadow: 0 25px 45px -20px rgba(0, 0, 0, .2);
}

/* 6.2. Cabecera de la tarjeta */
.tarifa-card-header {
    background: #F8FAFC;
    padding: 1.4rem;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 6.3. Icono del mes */
.tarifa-month-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 92, 0, .1);
    color: #FF5C00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.tarifa-card-header h3 {
    color: #1E293B;
    font-size: 1.2rem;
    margin-bottom: .2rem;
}

.tarifa-card-header span {
    color: #64748B;
    font-size: .9rem;
}

/* 6.4. Cuerpo de la tarjeta */
.tarifa-card-body {
    padding: 1.4rem;
}

.tarifa-card-body p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

/* 7. BOTONES DE TARIFAS */
.tarifa-actions {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
}

/* 7.1. Botón base */
.tarifa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    padding: .85rem 1.1rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: .9rem;
    transition: all .3s ease;
}

/* 7.2. Botón primario (naranja) */
.tarifa-btn-primary {
    background: #FF5C00;
    color: white;
}

.tarifa-btn-primary:hover {
    background: #E65300;
    transform: translateY(-2px);
}

/* 7.3. Botón outline (borde naranja) */
.tarifa-btn-outline {
    background: transparent;
    color: #FF5C00;
    border: 2px solid #FF5C00;
}

.tarifa-btn-outline:hover {
    background: #FF5C00;
    color: white;
    transform: translateY(-2px);
}

/* 8. MODAL PARA VISUALIZACIÓN DE PDF */
.tarifas-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .9);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.tarifas-modal.active {
    display: flex;
}

/* 8.1. Contenido del modal */
.tarifas-modal-content {
    width: min(1100px, 95vw);
    height: min(850px, 90vh);
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

/* 8.2. Cabecera del modal */
.tarifas-modal-header {
    height: 64px;
    background: #1E293B;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
}

.tarifas-modal-header h3 {
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}

.tarifas-modal-header i {
    color: #FF5C00;
}

/* 8.3. Botón de cierre del modal */
.tarifas-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

.tarifas-modal-close:hover {
    color: #FF5C00;
}

/* 8.4. Frame del modal (para PDF) */
.tarifas-modal-frame {
    width: 100%;
    height: calc(100% - 64px);
    border: none;
}

/* 9. RESPONSIVE */

/* 9.1. Móviles (768px) */
@media (max-width: 768px) {
    .tarifas-page {
        padding: 100px 0 60px;
    }

    .tarifas-info-box {
        padding: 1.5rem;
    }

    .tarifas-year-title {
        flex-direction: column;
        text-align: center;
    }

    .tarifa-actions {
        flex-direction: column;
    }

    .tarifa-btn {
        width: 100%;
    }
}