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

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

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

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

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

.transparencia-header p {
    color: #64748B;
    font-size: 1.2rem;
    margin-top: 1.5rem;
}

/* 3. CONTENEDORES DE SECCIONES */
.seccion-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #E2E8F0;
}

/* 3.1. Título de sección */
.seccion-titulo {
    font-size: 1.5rem;
    color: #1E293B;
    margin-bottom: 1.5rem;
    border-left: 4px solid #FF5C00;
    padding-left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 3.2. Número de sección (badge circular) */
.seccion-numero {
    background: #FF5C00;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* 4. SUBSECCIONES */
.subseccion-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #F8FAFC;
    border-radius: 12px;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.subseccion-item:hover {
    transform: translateX(5px);
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-color: #FF5C00;
}

/* 4.1. Información de la subsección */
.subseccion-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.subseccion-info i {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.subseccion-info-content {
    flex: 1;
}

/* 4.2. Variantes de iconos por tipo */
.icon-link {
    color: #0664AC;
}

.icon-mail {
    color: #FF5C00;
}

.icon-info {
    color: #317F3C;
}

/* 4.3. Nombre y contenido de la subsección */
.subseccion-nombre {
    font-weight: 600;
    color: #1E293B;
}

.subseccion-contenido {
    font-size: 0.9rem;
    color: #64748B;
    margin-top: 0.25rem;
    word-break: break-word;
}

.subseccion-contenido a {
    color: #FF5C00;
    text-decoration: none;
}

.subseccion-contenido a:hover {
    text-decoration: underline;
}

/* 5. BOTONES DE SUBSECCIÓN */
.btn-subseccion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #FF5C00;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.85rem;
}

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

/* 5.1. Botón outline */
.btn-subseccion-outline {
    background: transparent;
    border: 2px solid #FF5C00;
    color: #FF5C00;
}

.btn-subseccion-outline:hover {
    background: #FF5C00;
    color: white;
}

/* 5.2. Contenedor de acciones */
.subseccion-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* 6. LOADER Y MENSAJES DE ESTADO */

/* 6.1. Contenedor de carga */
.loader-container {
    text-align: center;
    padding: 3rem;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid #E2E8F0;
    border-top: 4px solid #FF5C00;
    border-radius: 50%;
    animation: transparenciaSpin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* 6.2. Mensaje de estado vacío */
.empty-message {
    text-align: center;
    padding: 3rem;
    background: #F8FAFC;
    border-radius: 16px;
}

.empty-message i {
    font-size: 3rem;
    color: #94A3B8;
    margin-bottom: 1rem;
    display: block;
}

/* 6.3. Variantes de mensaje vacío */
.empty-message-small {
    padding: 1rem;
}

.empty-message-note {
    font-size: 0.9rem;
}

/* 7. INFORMACIÓN DE CONTACTO */
.info-contact {
    background: linear-gradient(135deg, #317F3C 0%, #3E9A4B 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin-top: 3rem;
}

.info-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.info-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-contact p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.info-contact i {
    margin-right: 0.8rem;
    width: 24px;
}

.info-contact a {
    color: white;
    text-decoration: none;
}

.info-contact a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 8. BOTÓN VOLVER ARRIBA */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: #FF5C00;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #E65300;
    transform: translateY(-3px);
}

/* 9. MODAL PARA PDF */
.transparencia-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .88);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

/* 9.1. Contenido del modal */
.transparencia-modal-content {
    width: min(1100px, 96vw);
    height: 92vh;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.transparencia-modal-header h3 {
    font-size: 1rem;
    margin: 0;
}

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

/* 9.3. Botón de cierre del modal */
.transparencia-modal-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
}

.transparencia-modal-close:hover {
    background: #FF5C00;
}

/* 9.4. Frame del modal (para PDF) */
.transparencia-modal-object {
    width: 100%;
    height: 100%;
    border: none;
    flex: 1;
    background: white;
}

/* 9.5. Fallback para PDF (cuando no se puede incrustar) */
.transparencia-pdf-fallback {
    padding: 2rem;
    text-align: center;
}

/* 10. ANIMACIONES */

/* 10.1. Animación de spinner */
@keyframes transparenciaSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 11. RESPONSIVE */

/* 11.1. Móviles (768px) */
@media (max-width: 768px) {
    .transparencia-page {
        padding: 100px 0 40px;
    }

    .seccion-container {
        padding: 1.5rem;
    }

    .subseccion-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .subseccion-actions,
    .btn-subseccion {
        width: 100%;
    }

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

    .transparencia-modal {
        padding: 0.5rem;
    }

    .transparencia-modal-content {
        width: 100%;
        height: 95vh;
        border-radius: 14px;
    }
}