/* =========================================
   HOJA DE ESTILOS: PROGRAMAS DE EMPLEABILIDAD
   ========================================= */

.pe-page {
    --pe-primary: #2579cc;
    --pe-primary-dark: #124d86;
    --pe-primary-light: #eaf3fc;
    --pe-orange: #d0774a;
    --pe-orange-dark: #b96339;
    --pe-white: #ffffff;
    --pe-text: #2c3e50;
    --pe-muted: #596a7a;
    --pe-bg: #f4f7fc;
    --pe-radius: 16px;
    --pe-shadow: 0 12px 35px rgba(27, 63, 99, 0.09);
    --pe-shadow-hover: 0 18px 45px rgba(27, 63, 99, 0.16);

    width: 100%;
    overflow: hidden;
    color: var(--pe-text);
    background: var(--pe-white);
    font-family: inherit;
}

.pe-page *, .pe-page *::before, .pe-page *::after {
    box-sizing: border-box;
}

.pe-page img {
    display: block;
    max-width: 100%;
}

.pe-page a {
    text-decoration: none;
}

.pe-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contactoWhatsapp {
    position: fixed;
    left: 25px;
    bottom: 25px;
    z-index: 99;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.contactoWhatsapp:hover { transform: scale(1.12); }
.contactoWhatsapp img { width: 55px; height: 55px; }


/* =========================================
   1. HERO / CABECERA
   ========================================= */
.pe-hero {
    position: relative;
    padding: 100px 24px;
    background-size: cover;
    background-position: center;
    color: var(--pe-white);
    text-align: center;
}

.pe-hero-container {
    max-width: 820px;
    margin: 0 auto;
}

.pe-badge {
    display: inline-block;
    padding: 7px 18px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.pe-hero h1 {
    margin: 0 0 20px;
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.pe-hero p {
    margin: 0 0 32px;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.7;
}

.pe-btn-orange {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--pe-orange);
    color: var(--pe-white);
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 22px rgba(208, 119, 74, 0.35);
    transition: all 0.25s ease;
}

.pe-btn-orange:hover {
    background: var(--pe-orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(208, 119, 74, 0.45);
}


/* =========================================
   2. TARJETA BIENVENIDA / ENFOQUE
   ========================================= */
.pe-section {
    padding: 85px 0;
}

.pe-intro-section {
    background: var(--pe-bg);
}

.pe-welcome-card {
    display: flex;
    gap: 30px;
    align-items: center;
    background: var(--pe-white);
    padding: 40px;
    border-radius: var(--pe-radius);
    box-shadow: var(--pe-shadow);
    border-left: 6px solid var(--pe-orange);
    max-width: 1000px;
    margin: 0 auto;
}

.pe-welcome-icon {
    font-size: 3rem;
    background: #fef4ee;
    padding: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pe-welcome-text h3 {
    margin: 5px 0 12px;
    color: var(--pe-primary-dark);
    font-size: 1.5rem;
}

.pe-welcome-text p {
    margin: 0;
    color: var(--pe-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================
   3. PARRILLA "¿CÓMO TE AYUDAMOS?"
   ========================================= */
.pe-help-section {
    background: var(--pe-white);
}

.pe-section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 55px;
}

.pe-sub-tag {
    display: inline-block;
    color: var(--pe-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.pe-section-heading h2 {
    margin: 5px 0 12px;
    font-size: clamp(2rem, 3vw, 2.4rem);
    color: var(--pe-primary-dark);
}

.pe-section-heading p {
    margin: 0;
    color: var(--pe-muted);
    font-size: 1.05rem;
}

.pe-help-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 45px;
}

.pe-help-card {
    background: var(--pe-bg);
    padding: 32px 25px;
    border-radius: var(--pe-radius);
    border: 1px solid #e1e8f5;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pe-help-card:hover {
    transform: translateY(-6px);
    border-color: var(--pe-primary);
    background: var(--pe-white);
    box-shadow: var(--pe-shadow);
}

.pe-help-icon {
    width: 60px;
    height: 60px;
    background: var(--pe-primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.pe-help-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.pe-help-card h3 {
    margin: 0 0 12px;
    font-size: 1.2rem;
    color: var(--pe-primary-dark);
}

.pe-help-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--pe-muted);
    line-height: 1.65;
}

.pe-center-action {
    text-align: center;
}


/* =========================================
   4. PROYECTOS FORMATIVOS (GRID)
   ========================================= */
.pe-projects-section {
    background: var(--pe-bg);
}

.pe-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.pe-project-card {
    background: var(--pe-white);
    border-radius: var(--pe-radius);
    overflow: hidden;
    box-shadow: var(--pe-shadow);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e9f3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pe-project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--pe-shadow-hover);
}

.pe-project-img {
    background: var(--pe-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pe-project-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pe-project-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.pe-project-body h3 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    color: var(--pe-primary-dark);
}

.pe-project-body p {
    margin: 0 0 20px;
    font-size: 0.95rem;
    color: var(--pe-muted);
    line-height: 1.65;
    flex: 1;
}

.pe-card-link {
    color: var(--pe-orange);
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.pe-card-link:hover {
    color: var(--pe-orange-dark);
}


/* =========================================
   5. SECCIÓN MISIÓN / CAUSA SOCIAL
   ========================================= */
.pe-mission-section {
    background: var(--pe-white);
}

.pe-mission-box {
    background: var(--pe-bg);
    padding: 50px;
    border-radius: var(--pe-radius);
    border: 1px solid #e1e8f5;
    text-align: center;
    max-width: 950px;
    margin: 0 auto;
}

.pe-mission-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.pe-mission-box h2 {
    margin: 8px 0 18px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--pe-primary-dark);
}

.pe-mission-box p {
    color: var(--pe-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 28px;
}

.pe-btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    background: var(--pe-primary);
    color: var(--pe-white);
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.25s ease, transform 0.25s ease;
    box-shadow: 0 6px 20px rgba(37, 121, 204, 0.22);
}

.pe-btn-primary:hover {
    background: var(--pe-primary-dark);
    transform: translateY(-2px);
}


/* =========================================
   6. SECCIÓN CONÓCENOS
   ========================================= */
.pe-about-section {
    background: var(--pe-white);
}

.pe-about-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.pe-about-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 1px solid #e1e8f3;
    border-radius: var(--pe-radius);
    background: var(--pe-white);
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pe-about-card:hover {
    transform: translateY(-6px);
    border-color: var(--pe-primary);
    box-shadow: var(--pe-shadow);
}

.pe-about-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--pe-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pe-about-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pe-about-card h3 {
    margin: 0 0 8px;
    color: var(--pe-primary-dark);
    font-size: 1.05rem;
}

.pe-about-card span {
    color: var(--pe-orange);
    font-size: 0.85rem;
    font-weight: 700;
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 992px) {
    .pe-help-grid, .pe-projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .pe-about-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .pe-section {
        padding: 55px 0;
    }
    .pe-help-grid, .pe-projects-grid {
        grid-template-columns: 1fr;
    }
    .pe-welcome-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
    }
    .pe-welcome-icon {
        padding: 12px;
        font-size: 2.2rem;
    }
    .pe-mission-box {
        padding: 30px 20px;
    }
    .pe-about-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}