/* =========================================================
   ASOCLIMACR – CERTIFICACIONES.CSS (Módulo Unificado)
   ========================================================= */

/* 1. HERO GLOBAL */
.cert-hero-global {
    min-height: 50vh;
    padding-top: 70px;
    padding-bottom: 80px;
    overflow: hidden;
    position: relative;
}

.cert-hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 86%;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center center;
    z-index: 0;
}

.cert-hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 86%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* 2. CONTENEDOR BLANCO (Intro Surface) */
.intro-surface {
    position: relative;
    z-index: 10;
    margin-top: -110px;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

/* 3. TABS DE NAVEGACIÓN (Responsivos) */
.cert-tabs-container {
    width: 100%;
    display: flex;
    flex-direction: row; /* Horizontal en escritorio */
    gap: 15px;           /* Separación constante entre rectángulos */
    border-bottom: none;
    margin: 0;
    padding: 0;
}

.cert-tabs-container .nav-item {
    flex: 1;             /* TODOS los elementos tendrán el mismo ancho exacto */
    min-width: 0;        /* Importante para que el texto no desborde el flex */
}

.cert-tabs-container .nav-link {
    color: var(--neutral-700) !important;
    font-weight: 600;
    border-radius: 12px;
    padding: 1.5rem 1rem; /* Padding vertical constante para misma altura */
    transition: all 0.3s ease;
    font-size: 0.9rem;
    background-color: #ffffff; /* Fondo blanco sólido para uniformidad */
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;        /* Forzamos a que todos midan lo mismo */
    width: 89%;
}

/* Iconos */
.cert-tabs-container .nav-link i {
    color: var(--neutral-700) !important;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

/* Estados Hover y Active (Verde Corporativo) */
.cert-tabs-container .nav-link:hover,
.cert-tabs-container .nav-link.active {
    color: var(--brand-green) !important;
    background-color: var(--green-50);
    border: 2px solid var(--brand-green);
}

.cert-tabs-container .nav-link:hover i,
.cert-tabs-container .nav-link.active i {
    color: var(--brand-green) !important;
}

/* 4. AJUSTES RESPONSIVOS (Móviles) */
@media (max-width: 768px) {
    .cert-tabs-container {
        flex-direction: column !important; /* Apilados verticalmente */
    }

    .cert-tabs-container .nav-link {
        flex-direction: row; /* Icono a la izquierda, texto a la derecha */
        justify-content: flex-start;
        padding: 1rem;
        gap: 15px;
        text-align: left;
    }

    .cert-tabs-container .nav-link i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .intro-surface {
        margin-top: -50px; /* Menos margen hacia arriba en móviles */
    }
}

/* UTILIDADES Y TARJETAS */
.section-bg-soft { background-color: #ebf5ec; }
.leading-relaxed { line-height: 1.75; }

/* 4. AJUSTES RESPONSIVOS (Móviles) */
@media (max-width: 768px) {
    .cert-tabs-container {
        flex-direction: column !important; /* Apilados verticalmente */
        gap: 10px;
    }
    
    .cert-tabs-container .nav-link {
        flex-direction: row; /* Icono a la izquierda en móvil */
        justify-content: flex-start;
        padding: 1rem;
        gap: 15px;
        text-align: left;
    }
    
    .cert-tabs-container .nav-link i {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}
/* --- Estilo para la descripción "¿Qué es..." --- */
.description-block {
    background: #f8faf9;
    padding: 3rem;
    border-radius: 20px;
    border-left: 5px solid var(--brand-green);
    margin-bottom: 2rem;
}

/* --- Estilo de los "Chips" (Etiquetas encapsuladas) --- */
.cert-meta-chip {
    display: inline-block;
    background: var(--green-50);
    color: var(--brand-green-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 1px solid rgba(46, 125, 50, 0.1);
}