/* 1. PÁGINA: MANEJO SEGURO GLP - SUPERGAS DE NARIÑO */

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

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

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

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

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

/* 3. ALERTA PRINCIPAL */
.safe-alert {
    background: linear-gradient(135deg, #FF5C00, #E65300);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: 0 15px 30px rgba(255, 92, 0, 0.25);
}

.safe-alert h2 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.safe-alert p {
    font-size: 1rem;
    line-height: 1.7;
}

/* 4. TARJETAS (CARACTERÍSTICAS) */
.safe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* 4.1. Tarjeta individual */
.safe-card {
    background: white;
    border-radius: 20px;
    padding: 1.8rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.safe-card:hover {
    transform: translateY(-6px);
    border-color: #317F3C;
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.18);
}

/* 4.2. Icono de la tarjeta */
.safe-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(49, 127, 60, 0.1);
    color: #317F3C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.safe-card h3 {
    color: #1E293B;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.safe-card p {
    color: #64748B;
    line-height: 1.65;
    font-size: 0.95rem;
}

/* 5. LISTA DE RECOMENDACIONES */
.steps-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.12);
    margin-bottom: 3rem;
}

.steps-section h2 {
    color: #1E293B;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

/* 5.1. Lista de recomendaciones */
.safe-list {
    list-style: none;
    display: grid;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.safe-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #F8FAFC;
    padding: 1rem;
    border-radius: 14px;
    color: #475569;
    line-height: 1.6;
}

.safe-list i {
    color: #FF5C00;
    margin-top: 0.2rem;
}

/* 6. MANUAL PDF */
.manual-section {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.12);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

/* 6.1. Contenido del manual */
.manual-content h2 {
    color: #1E293B;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.manual-content p {
    color: #64748B;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* 6.2. Acciones del manual */
.manual-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 6.3. Botones del manual */
.manual-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.manual-btn-primary {
    background: #FF5C00;
    color: white;
}

.manual-btn-primary:hover {
    background: #E65300;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(255, 92, 0, 0.3);
}

.manual-btn-outline {
    background: transparent;
    color: #FF5C00;
    border: 2px solid #FF5C00;
}

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

/* 6.4. Caja de icono del manual */
.manual-icon-box {
    background: linear-gradient(135deg, #317F3C, #25632E);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
}

.manual-icon-box i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.manual-icon-box span {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
}

/* 7. GALERÍA */
.safe-gallery-section {
    margin-bottom: 3rem;
}

/* 7.1. Encabezado de la galería */
.safe-gallery-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.safe-gallery-header h2 {
    color: #1E293B;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.safe-gallery-header p {
    color: #64748B;
    line-height: 1.7;
}

/* 7.2. Grid de la galería */
.safe-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

/* 7.3. Tarjeta de la galería */
.safe-gallery-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    cursor: pointer;
}

.safe-gallery-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.18);
    border-color: #FF5C00;
}

.safe-gallery-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.safe-gallery-caption {
    padding: 1rem;
    color: #1E293B;
    font-weight: 700;
    text-align: center;
    font-size: 0.95rem;
}

/* 8. EMERGENCIAS */
.emergency-box {
    background: linear-gradient(135deg, #0664AC, #044A7A);
    color: white;
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
}

.emergency-box h2 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.emergency-box p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* 8.1. Acciones de emergencia */
.emergency-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.emergency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: white;
    color: #0664AC;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
}

.emergency-btn:hover {
    background: #FF5C00;
    color: white;
    transform: translateY(-3px);
}

/* 9. MODAL PARA GALERÍA */
.safe-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 20000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

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

/* 9.1. Contenido del modal */
.safe-modal-content {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    width: min(1100px, 95vw);
    height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

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

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

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

/* 9.3. Botón de cierre del modal */
.safe-modal-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.safe-modal-close:hover {
    color: #FF5C00;
    transform: scale(1.1);
}

/* 9.4. Cuerpo del modal */
.safe-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
}

/* 9.5. Frame del modal (para PDF) */
.safe-modal-frame {
    width: 100%;
    height: 100%;
    flex: 1;
    min-height: 0;
    border: none;
    background: #ffffff;
    display: block;
}

/* 9.6. Contenedor de imagen del modal */
.safe-modal-image-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F172A;
    overflow: auto;
    padding: 1rem;
}

/* 9.7. Imagen del modal */
.safe-modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    display: block;
}

/* 10. RESPONSIVE */

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

    .safe-alert,
    .steps-section,
    .emergency-box,
    .manual-section {
        padding: 1.5rem;
    }

    .safe-header p {
        font-size: 1rem;
    }

    .manual-section {
        grid-template-columns: 1fr;
    }

    .safe-modal {
        padding: 0.4rem;
    }

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

    .safe-modal-header {
        flex: 0 0 58px;
        height: 58px;
        padding: 0 0.8rem;
    }

    .safe-modal-header h3 {
        font-size: 0.9rem;
    }

    .safe-modal-image-wrap {
        padding: 0.5rem;
    }
}