/* ==========================================================================
   Bloques personalizados para la pagina "Acerca de" (y otros bloques que use
   el equipo desde /super/). TODAS las clases usan el prefijo dp-* para
   garantizar aislamiento respecto al resto de estilos del sitio.

   Este archivo solo se carga en las paginas publicas (via includes/header.php)
   y nunca en /super/, /lms/, ni en ningun panel administrativo.
   ========================================================================== */

.dp-about-section,
.dp-about-section *,
.dp-promos-section,
.dp-promos-section * {
    box-sizing: border-box;
}

.dp-about-section {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    padding: 40px 0 24px;
    overflow: hidden;
}

.dp-about-intro {
    display: grid;
    grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
    width: 100%;
    margin-bottom: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dce4ec;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 55, 119, 0.10);
}

.dp-about-image {
    min-width: 0;
    min-height: 390px;
    margin: 0;
    overflow: hidden;
    background: #e8eef4;
}

.dp-about-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    object-position: center;
}

.dp-about-content {
    min-width: 0;
    padding: 38px;
    background: linear-gradient(145deg, #ffffff 0%, #f4f8fc 100%);
}

.dp-about-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    color: #0f47ad;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #eff6ff;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
}

.dp-about-content h2 {
    margin: 0 0 14px;
    color: #003777;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.dp-about-line {
    display: block;
    width: 76px;
    height: 4px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #003777, #d7193f);
    border-radius: 4px;
}

.dp-about-content p {
    margin: 0 0 16px;
    color: #3b3d42;
    font-size: 15px;
    line-height: 1.75;
}

.dp-about-content strong {
    color: #003777;
}

.dp-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 20px;
}

.dp-about-tags span {
    display: inline-block;
    padding: 7px 12px;
    color: #0f47ad;
    font-size: 12px;
    font-weight: 700;
    background: #eff6ff;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
}

.dp-about-tags span:nth-child(2) {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.dp-about-tags span:nth-child(3) {
    color: #047857;
    background: #ecfdf5;
    border-color: #a7f3d0;
}


/* =========================================================
   MISIÓN, VISIÓN Y VALORES
   ========================================================= */

.dp-about-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
}

.dp-info-card {
    min-width: 0;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0, 55, 119, 0.07);
}

.dp-info-card--mission {
    background: #f0f8ff;
    border: 1px solid #b9dcf5;
    border-top: 4px solid #0876b9;
}

.dp-info-card--vision {
    background: #fff5f6;
    border: 1px solid #f7c6cc;
    border-top: 4px solid #d7193f;
}

.dp-info-card--values {
    grid-column: 1 / -1;
    background: #effaf5;
    border: 1px solid #b6e2d0;
    border-top: 4px solid #059669;
}

.dp-info-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.dp-info-icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    font-size: 21px;
    background: #0876b9;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 55, 119, 0.18);
}

.dp-info-card--vision .dp-info-icon {
    background: #d7193f;
}

.dp-info-card--values .dp-info-icon {
    background: #059669;
}

.dp-info-heading h3 {
    margin: 0;
    color: #003777;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.dp-info-card--vision .dp-info-heading h3 {
    color: #b91c1c;
}

.dp-info-card--values .dp-info-heading h3 {
    color: #047857;
}

.dp-info-card p {
    margin: 0;
    color: #3b3d42;
    font-size: 14px;
    line-height: 1.75;
}

.dp-values-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

.dp-value {
    min-width: 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.80);
    border: 1px solid #d7eee4;
    border-radius: 10px;
}

.dp-value strong {
    display: block;
    margin-bottom: 4px;
    color: #047857;
    font-size: 14px;
}

.dp-value span {
    color: #3b3d42;
    font-size: 13px;
    line-height: 1.5;
}


/* =========================================================
   COMPROMISO INSTITUCIONAL
   ========================================================= */

.dp-commitment {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    margin-top: 22px;
    padding: 17px 20px;
    color: #ffffff;
    background: linear-gradient(
        90deg,
        #003777 0%,
        #0f47ad 72%,
        #b51f3b 100%
    );
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 55, 119, 0.15);
}

.dp-commitment-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 9px;
}

.dp-commitment p {
    min-width: 0;
    margin: 0;
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.6;
}

.dp-commitment strong {
    color: #ffffff !important;
}


/* =========================================================
   BLOQUES PROMOCIONALES
   ========================================================= */

.dp-promos-section {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    padding: 20px 0 45px;
    overflow: hidden;
}

.dp-promo {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 32px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0, 55, 119, 0.15);
}

.dp-promo + .dp-promo {
    margin-top: 24px;
}

.dp-promo--constitution {
    background: linear-gradient(120deg, #1f7fbd 0%, #28a8da 100%);
}

.dp-promo--opportunities {
    background: linear-gradient(120deg, #06366c 0%, #0876b9 100%);
    border-left: 5px solid #d7193f;
}

.dp-promo-icon {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 34px;
    background: #ffffff;
    border-radius: 19px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.16);
}

.dp-promo--opportunities .dp-promo-icon {
    color: #ffffff;
    background: #e62c49;
}

.dp-promo-content {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.dp-promo-label {
    display: inline-block;
    margin-bottom: 7px;
    padding: 6px 12px;
    color: #7c4a00;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: #ffcc3d;
    border-radius: 999px;
}

.dp-promo--opportunities .dp-promo-label {
    padding: 0;
    color: #8ed9ff;
    letter-spacing: 0.8px;
    background: transparent;
}

.dp-promo h2 {
    margin: 0 0 7px;
    color: #ffffff !important;
    font-family: "Roboto", Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
}

.dp-promo p {
    max-width: 760px;
    margin: 0;
    color: #ffffff !important;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   SEIS ÁREAS DE LA OFICINA DE OPORTUNIDADES
   ========================================================= */

.dp-promo-tags {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    max-width: 650px;
    margin-top: 15px;
}

.dp-promo-tags a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 8px 10px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 999px;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.dp-promo-tags a:hover,
.dp-promo-tags a:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
}


/* =========================================================
   BOTONES PRINCIPALES
   ========================================================= */

.dp-promo-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 175px;
    padding: 13px 19px;
    color: #003777 !important;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    background: #ffffff;
    border-radius: 999px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.dp-promo--opportunities .dp-promo-button {
    color: #ffffff !important;
    background: #d7193f;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.dp-promo-button:hover,
.dp-promo-button:focus {
    text-decoration: none !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   DECORACIONES
   ========================================================= */

.dp-promo-decoration {
    position: absolute;
    top: -60px;
    right: -35px;
    width: 175px;
    height: 175px;
    background: rgba(255, 204, 61, 0.95);
    border-radius: 50%;
}

.dp-promo--opportunities .dp-promo-decoration {
    background: transparent;
    border: 30px solid rgba(255, 255, 255, 0.06);
}


/* =========================================================
   TABLETAS
   ========================================================= */

@media (max-width: 900px) {
    .dp-about-intro {
        grid-template-columns: 1fr;
    }

    .dp-about-image,
    .dp-about-image img {
        min-height: 300px;
        max-height: 400px;
    }

    .dp-about-cards {
        grid-template-columns: 1fr;
    }

    .dp-info-card--values {
        grid-column: auto;
    }

    .dp-promo {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .dp-promo-button {
        grid-column: 1 / -1;
        justify-self: start;
        margin-left: 96px;
    }
}


/* =========================================================
   CELULARES
   ========================================================= */

@media (max-width: 600px) {
    .dp-about-section {
        padding: 24px 0 16px;
    }

    .dp-about-content,
    .dp-info-card {
        padding: 22px;
    }

    .dp-about-content h2,
    .dp-promo h2 {
        font-size: 25px;
    }

    .dp-values-grid {
        grid-template-columns: 1fr;
    }

    .dp-commitment {
        align-items: flex-start;
    }

    .dp-promos-section {
        padding: 16px 0 30px;
    }

    .dp-promo {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 24px;
    }

    .dp-promo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .dp-promo-tags {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .dp-promo-button {
        grid-column: auto;
        justify-self: start;
        min-width: 0;
        margin-left: 0;
    }

    .dp-promo-decoration {
        width: 130px;
        height: 130px;
    }
}
