/* =========================================================
   ACREDUCA - PORTAFOLIOS INSTITUCIONALES
   ========================================================= */

.acreduca-portfolio-page {
    --portfolio-blue: #181e6d;
    --portfolio-orange: #ff7a00;
    --portfolio-text: #343849;
    --portfolio-muted: #626b7e;
    --portfolio-soft: #f7f8fc;
    --portfolio-border: #e5e9f2;

    color: var(--portfolio-text);
}

/* ==========================================
   ELEMENTOS COMPARTIDOS
   ========================================== */

.portfolio-section {
    padding: 5.5rem 0;
}

.portfolio-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;

    color: var(--portfolio-orange);
    font-size: 0.90rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.portfolio-section-heading {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.portfolio-section-heading h2 {
    margin-bottom: 1rem;

    color: var(--portfolio-blue);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 800;
    line-height: 1.2;
}

.portfolio-section-heading p {
    margin: 0;
    color: var(--portfolio-muted);
    font-size: 1rem;
    line-height: 1.75;
}

/* ==========================================
   HERO
   ========================================== */

.portfolio-hero {
    position: relative;
    overflow: hidden;

    padding: 7rem 0 5rem;

    background:
        radial-gradient(
            circle at 95% 5%,
            rgba(24, 30, 109, 0.06),
            transparent 45%
        ),
        #ffffff;
}

.portfolio-hero-content {
    max-width: 740px;
}

.portfolio-hero-title {
    margin-bottom: 1.35rem;

    color: var(--portfolio-blue);

    font-size: clamp(2rem, 3.1vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.portfolio-hero-headline {
    margin-bottom: 1rem;

    color: var(--portfolio-text);

    font-size: clamp(1.05rem, 1.4vw, 1.25rem);
    font-weight: 650;
    line-height: 1.55;
}

.portfolio-hero-description {
    margin-bottom: 1.8rem;

    color: var(--portfolio-muted);

    font-size: 0.97rem;
    line-height: 1.85;
}

.portfolio-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
}

/* BOTONES */

.portfolio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;

    padding: 0.85rem 1.35rem;

    border: 1px solid var(--portfolio-blue);
    border-radius: 50px;

    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.45;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.portfolio-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.portfolio-btn-primary {
    background: var(--portfolio-blue);
    color: #ffffff;
}

.portfolio-btn-primary:hover {
    background: #29318e;
    color: #ffffff;
}

.portfolio-btn-outline {
    background: #ffffff;
    color: var(--portfolio-blue);
}

.portfolio-btn-outline:hover {
    background: var(--portfolio-blue);
    color: #ffffff;
}

/* IMAGEN HERO */

.portfolio-hero-visual {
    position: relative;
    padding-bottom: 2rem;
}

.portfolio-hero-image {
    display: block;

    width: 100%;
    max-height: 490px;
    aspect-ratio: 4 / 4.2;

    object-fit: cover;

    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(24, 30, 109, 0.12);
}

.portfolio-hero-highlight {
    position: absolute;
    right: -0.5rem;
    bottom: 0;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    max-width: 330px;
    padding: 1rem 1.2rem;

    border: 1px solid var(--portfolio-border);
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(24, 30, 109, 0.12);
}

.portfolio-hero-highlight > i {
    color: var(--portfolio-blue);
    font-size: 1.75rem;
}

.portfolio-hero-highlight strong,
.portfolio-hero-highlight span {
    display: block;
}

.portfolio-hero-highlight strong {
    margin-bottom: 0.2rem;

    color: var(--portfolio-blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.portfolio-hero-highlight span {
    color: var(--portfolio-muted);
    font-size: 0.74rem;
    line-height: 1.5;
}

/* ==========================================
   PROBLEMAS INSTITUCIONALES
   ========================================== */

.portfolio-problems-section {
    background: var(--portfolio-soft);
}

.portfolio-card {
    padding: 2rem;

    border: 1px solid var(--portfolio-border);
    border-radius: 18px;

    background: #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 14px 35px rgba(24, 30, 109, 0.07);
}

.portfolio-card-icon,
.portfolio-service-icon,
.portfolio-results-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 1.25rem;

    border-radius: 12px;
    background: #eef0fa;

    color: var(--portfolio-blue);
    font-size: 1.3rem;
}

.portfolio-card h3 {
    margin-bottom: 0.85rem;

    color: var(--portfolio-blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-card p {
    color: var(--portfolio-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.portfolio-check-list {
    margin: 1.2rem 0 0;
    padding-left: 1.2rem;

    color: var(--portfolio-text);
}

.portfolio-check-list li {
    margin-bottom: 0.6rem;
    font-size: 0.86rem;
    line-height: 1.55;
}

.portfolio-check-list li::marker {
    color: var(--portfolio-orange);
}

/* ==========================================
   SERVICIOS
   ========================================== */

.portfolio-services-section {
    background: #ffffff;
}

.portfolio-service-card {
    padding: 1.85rem;

    border: 1px solid var(--portfolio-border);
    border-radius: 16px;

    background: #ffffff;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-service-card:hover {
    border-color: rgba(24, 30, 109, 0.3);

    box-shadow:
        0 10px 26px rgba(24, 30, 109, 0.06);
}

.portfolio-service-card h3 {
    margin-bottom: 0.8rem;

    color: var(--portfolio-blue);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-service-card p {
    margin: 0;

    color: var(--portfolio-muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ==========================================
   METODOLOGÍA
   ========================================== */

.portfolio-method-section {
    background: #eef1f8;
}

.portfolio-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));

    gap: 1rem;
}

.portfolio-step {
    position: relative;

    padding: 1.5rem 1.2rem;

    border: 1px solid #e0e5ef;
    border-radius: 16px;

    background: #ffffff;
}

.portfolio-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    margin-bottom: 1.25rem;

    border-radius: 12px;

    background: var(--portfolio-blue);
    color: #ffffff;

    font-size: 0.85rem;
    font-weight: 700;
}

.portfolio-step h3 {
    margin-bottom: 0.65rem;

    color: var(--portfolio-blue);
    font-size: 1rem;
    font-weight: 700;
}

.portfolio-step p {
    margin: 0;

    color: var(--portfolio-muted);
    font-size: 0.83rem;
    line-height: 1.6;
}

/* ==========================================
   BENEFICIOS Y ENTREGABLES
   ========================================== */

.portfolio-results-section {
    background: #ffffff;
}

.portfolio-results-card {
    padding: 2.2rem;

    border: 1px solid var(--portfolio-border);
    border-radius: 20px;

    background: var(--portfolio-soft);
}

.portfolio-results-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;

    margin-bottom: 1.5rem;
}

.portfolio-results-icon {
    flex-shrink: 0;
    margin-bottom: 0;
}

.portfolio-results-card h3 {
    margin: 0;

    color: var(--portfolio-blue);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-result-list {
    display: grid;
    gap: 0.85rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.portfolio-result-list li {
    position: relative;

    padding-left: 1.7rem;

    color: var(--portfolio-text);
    font-size: 0.9rem;
    line-height: 1.6;
}

.portfolio-result-list li::before {
    content: "\2713";

    position: absolute;
    top: 0;
    left: 0;

    color: #348c28;
    font-weight: 800;
}

/* ==========================================
   CTA FINAL
   ========================================== */

.portfolio-cta-section {
    padding: 1rem 0 6rem;
    background: #ffffff;
}

.portfolio-cta-box {
    padding: 3rem 3.5rem;

    border-radius: 22px;

    background:
        radial-gradient(
            circle at top right,
            rgba(98, 184, 50, 0.12),
            transparent 40%
        ),
        var(--portfolio-blue);

    color: #ffffff;
}

.portfolio-cta-eyebrow {
    display: block;
    margin-bottom: 0.9rem;

    color: #ff7a00;

    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portfolio-cta-box h2 {
    margin-bottom: 0.9rem;

    color: #ffffff;

    font-size: clamp(1.55rem, 2.4vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
}

.portfolio-cta-box p {
    margin-bottom: 0;

    color: rgba(255, 255, 255, 0.83);

    font-size: 0.95rem;
    line-height: 1.7;
}

.portfolio-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;

    padding: 0.95rem 1.4rem;

    border: 1px solid #ffffff;
    border-radius: 50px;

    background: #ffffff;
    color: var(--portfolio-blue);

    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.45;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.portfolio-cta-button:hover {
    background: var(--portfolio-orange);
    border-color: var(--portfolio-orange);
    color: #ffffff;

    transform: translateY(-2px);
    text-decoration: none;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1199.98px) {

    .portfolio-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {

    .portfolio-section {
        padding: 4rem 0;
    }

    .portfolio-hero {
        padding: 5rem 0 4rem;
    }

    .portfolio-hero-content {
        max-width: none;
    }

    .portfolio-hero-visual {
        max-width: 620px;
        margin: 0 auto;
    }

    .portfolio-cta-box {
        padding: 2.5rem;
    }
}

@media (max-width: 767.98px) {

    .portfolio-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-card,
    .portfolio-results-card {
        padding: 1.5rem;
    }

    .portfolio-section-heading {
        margin-bottom: 2.2rem;
    }
}

@media (max-width: 575.98px) {

    .portfolio-hero {
        padding: 3.5rem 0;
    }

    .portfolio-hero-title {
        font-size: 2rem;
    }

    .portfolio-hero-headline {
        font-size: 1rem;
    }

    .portfolio-hero-description {
        font-size: 0.9rem;
    }

    .portfolio-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-btn {
        width: 100%;
    }

    .portfolio-hero-image {
        aspect-ratio: 4 / 3.5;
    }

    .portfolio-hero-highlight {
        right: 0;
        left: 0;
        margin: 0 1rem;
        max-width: none;
    }

    .portfolio-steps {
        grid-template-columns: 1fr;
    }

    .portfolio-step {
        padding: 1.35rem;
    }

    .portfolio-cta-section {
        padding-bottom: 4rem;
    }

    .portfolio-cta-box {
        padding: 2rem 1.4rem;
        border-radius: 16px;
    }

    .portfolio-cta-button {
        width: 100%;
        text-align: center;
    }
}


/* =========================================================
   ACREDUCA - PORTAFOLIO P3
   FORMULACIÓN E IMPLEMENTACIÓN
   DE PROYECTOS EDUCATIVOS
   ========================================================= */

/* ==========================================
   COMPOSICIÓN VISUAL DEL HERO
   ========================================== */

.portfolio-p3-visual {
    position: relative;
    overflow: visible;

    border: 1px solid #dfe5f2;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(24, 30, 109, 0.10);
}

/* CABECERA DE LA COMPOSICIÓN */

.portfolio-p3-visual-header {
    position: relative;

    min-height: 320px;
    padding: 2.4rem 2rem;

    border-radius: 23px 23px 0 0;

    background:
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 255, 255, 0.13),
            transparent 44%
        ),
        linear-gradient(
            135deg,
            #181e6d 0%,
            #303e96 100%
        );

    color: #ffffff;
}

.portfolio-p3-visual-header > span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;

    margin-bottom: 2rem;

    color: #ff7a00;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.portfolio-p3-visual-header > span i {
    font-size: 1rem;
}

/* SÍMBOLO PRINCIPAL */

.portfolio-p3-visual-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.9rem;
}

/* TÍTULO Y DESCRIPCIÓN */

.portfolio-p3-visual-header h3 {
    max-width: 380px;
    margin-bottom: 0.85rem;

    color: #ffffff;

    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 700;
    line-height: 1.35;
}

.portfolio-p3-visual-header p {
    max-width: 360px;
    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   EJES PRINCIPALES
   ========================================== */

.portfolio-p3-visual-items {
    display: grid;
    gap: 0.85rem;

    padding: 1.5rem 1.75rem 2.7rem;
}

.portfolio-p3-visual-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    padding: 0.8rem 1rem;

    border: 1px solid #e7eaf3;
    border-radius: 10px;

    background: #f8f9fd;

    color: #343849;

    font-size: 0.87rem;
    font-weight: 600;
}

.portfolio-p3-visual-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    border-radius: 9px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1rem;
}

/* ==========================================
   TARJETA INFERIOR
   ========================================== */

.portfolio-p3-visual-highlight {
    position: absolute;
    right: -0.5rem;
    bottom: -1.5rem;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    max-width: 330px;
    padding: 1rem 1.2rem;

    border: 1px solid #e5e9f2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(24, 30, 109, 0.12);
}

.portfolio-p3-visual-highlight > i {
    flex-shrink: 0;

    color: #181e6d;
    font-size: 1.65rem;
}

.portfolio-p3-visual-highlight strong,
.portfolio-p3-visual-highlight span {
    display: block;
}

.portfolio-p3-visual-highlight strong {
    margin-bottom: 0.3rem;

    color: #181e6d;

    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-p3-visual-highlight span {
    color: #626b7e;

    font-size: 0.75rem;
    line-height: 1.5;
}

/* ==========================================
   METODOLOGÍA DE CUATRO ETAPAS
   ========================================== */

.portfolio-steps-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1199.98px) {

    .portfolio-steps-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 991.98px) {

    .portfolio-p3-visual {
        max-width: 620px;

        margin: 0 auto 1.5rem;
    }

}

@media (max-width: 575.98px) {

    .portfolio-p3-visual-header {
        min-height: auto;
        padding: 1.75rem 1.4rem;
    }

    .portfolio-p3-visual-header > span {
        margin-bottom: 1.5rem;
        font-size: 0.64rem;
    }

    .portfolio-p3-visual-header h3 {
        font-size: 1.35rem;
    }

    .portfolio-p3-visual-items {
        padding: 1rem 1rem 2.5rem;
    }

    .portfolio-p3-visual-item {
        font-size: 0.8rem;
    }

    .portfolio-p3-visual-highlight {
        position: relative;

        right: auto;
        bottom: auto;

        margin: 0 1rem 1rem;
        max-width: none;
    }

    .portfolio-steps-four {
        grid-template-columns: 1fr;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P4
   FORMACIÓN CONTINUA
   ========================================================= */

/* ==========================================
   HERO - COMPOSICIÓN VISUAL
   ========================================== */

.portfolio-p4-visual {
    position: relative;
    margin-bottom: 1.5rem;

    border: 1px solid #dfe5f2;
    border-radius: 24px;

    background: #ffffff;

    box-shadow: 0 20px 50px rgba(24, 30, 109, 0.10);
}

.portfolio-p4-visual-top {
    min-height: 310px;
    padding: 2.5rem 2rem;

    border-radius: 23px 23px 0 0;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.14),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #181e6d 0%,
            #34469c 100%
        );

    color: #ffffff;
}

.portfolio-p4-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 1.7rem;

    color: #ff7a00;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portfolio-p4-visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-bottom: 1.35rem;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.8rem;
}

.portfolio-p4-visual-top h3 {
    max-width: 370px;
    margin-bottom: 0.8rem;

    color: #ffffff;

    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
}

.portfolio-p4-visual-top p {
    max-width: 370px;
    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   EJES DE FORMACIÓN
   ========================================== */

.portfolio-p4-visual-bottom {
    display: grid;
    gap: 0.8rem;

    padding: 1.5rem 1.75rem 2.5rem;
}

.portfolio-p4-visual-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 0.8rem 1rem;

    border: 1px solid #e7eaf3;
    border-radius: 11px;

    background: #f8f9fd;
}

.portfolio-p4-visual-item > i {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1.1rem;
}

.portfolio-p4-visual-item strong,
.portfolio-p4-visual-item span {
    display: block;
}

.portfolio-p4-visual-item strong {
    margin-bottom: 0.2rem;

    color: #181e6d;

    font-size: 0.84rem;
    font-weight: 700;
}

.portfolio-p4-visual-item span {
    color: #626b7e;

    font-size: 0.74rem;
    line-height: 1.5;
}

/* ==========================================
   DESTACADO INFERIOR
   ========================================== */

.portfolio-p4-visual-highlight {
    position: absolute;
    right: -0.5rem;
    bottom: -1.5rem;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    max-width: 330px;
    padding: 1rem 1.2rem;

    border: 1px solid #e5e9f2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow: 0 12px 30px rgba(24, 30, 109, 0.12);
}

.portfolio-p4-visual-highlight > i {
    flex-shrink: 0;

    color: #181e6d;
    font-size: 1.6rem;
}

.portfolio-p4-visual-highlight strong,
.portfolio-p4-visual-highlight span {
    display: block;
}

.portfolio-p4-visual-highlight strong {
    margin-bottom: 0.25rem;

    color: #181e6d;
    font-size: 0.83rem;
    font-weight: 700;
}

.portfolio-p4-visual-highlight span {
    color: #626b7e;
    font-size: 0.74rem;
    line-height: 1.45;
}

/* ==========================================
   DESAFÍO INSTITUCIONAL DESTACADO
   ========================================== */

.portfolio-p4-problem-wide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-p4-problem-wide p {
    max-width: 850px;
    margin-bottom: 0;
}

/* ==========================================
   ENLACES DE CURSOS Y EVENTOS
   ========================================== */

.portfolio-p4 .portfolio-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-p4-service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    margin-top: auto;
    padding-top: 1.15rem;

    color: #181e6d;

    font-size: 0.83rem;
    font-weight: 700;

    text-decoration: none;

    transition: color 0.2s ease;
}

.portfolio-p4-service-link:hover {
    color: #e66d00;
    text-decoration: none;
}

.portfolio-p4-service-link:focus-visible {
    outline: 2px solid #181e6d;
    outline-offset: 4px;
    border-radius: 3px;
}

/* ==========================================
   METODOLOGÍA ACREDUCA
   ========================================== */

.portfolio-p4-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.portfolio-p4-method-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 245px;

    padding: 1.6rem 1.4rem;

    border: 1px solid #e0e5ef;
    border-radius: 16px;

    background: #ffffff;

    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.portfolio-p4-method-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(24, 30, 109, 0.07);
}

.portfolio-p4-method-letter {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 1rem;

    border-radius: 12px;

    background: #181e6d;
    color: #ffffff;

    font-size: 1.4rem;
    font-weight: 800;
}

.portfolio-p4-method-step {
    display: block;
    margin-bottom: 0.45rem;

    color: #df6900;

    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portfolio-p4-method-card h3 {
    margin-bottom: 0.65rem;

    color: #181e6d;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-p4-method-card p {
    margin: 0;

    color: #626b7e;

    font-size: 0.82rem;
    line-height: 1.65;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 1199.98px) {

    .portfolio-p4-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 991.98px) {

    .portfolio-p4-visual {
        max-width: 620px;
        margin: 0 auto 1.5rem;
    }

}

@media (max-width: 575.98px) {

    .portfolio-p4-visual-top {
        min-height: auto;
        padding: 1.75rem 1.4rem;
    }

    .portfolio-p4-visual-top h3 {
        font-size: 1.4rem;
    }

    .portfolio-p4-visual-bottom {
        padding: 1rem 1rem 1.4rem;
    }

    .portfolio-p4-visual-highlight {
        position: relative;
        right: auto;
        bottom: auto;

        margin: 0 1rem 1rem;
        max-width: none;
    }

    .portfolio-p4-method-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-p4-method-card {
        min-height: 0;
        padding: 1.4rem;
    }

    .portfolio-p4-problem-wide {
        padding: 1.5rem;
    }

}


/* =========================================================
   ACREDUCA - PORTAFOLIO P5
   INVESTIGACIÓN, INNOVACIÓN Y BUENAS PRÁCTICAS
   ========================================================= */

/* ==========================================
   HERO - COMPOSICIÓN VISUAL
   ========================================== */

.portfolio-p5-visual {
    position: relative;
    margin-bottom: 1.5rem;

    border: 1px solid #dfe5f2;
    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 20px 50px rgba(24, 30, 109, 0.10);
}

.portfolio-p5-visual-top {
    min-height: 310px;
    padding: 2.5rem 2rem;

    border-radius: 23px 23px 0 0;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 255, 255, 0.14),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #181e6d 0%,
            #34469c 100%
        );

    color: #ffffff;
}

.portfolio-p5-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    margin-bottom: 1.7rem;

    color: #ff7a00;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.portfolio-p5-visual-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-bottom: 1.35rem;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;

    font-size: 1.8rem;
}

.portfolio-p5-visual-top h3 {
    max-width: 380px;
    margin-bottom: 0.8rem;

    color: #ffffff;

    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
}

.portfolio-p5-visual-top p {
    max-width: 380px;
    margin: 0;

    color: rgba(255, 255, 255, 0.85);

    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   EJES PRINCIPALES
   ========================================== */

.portfolio-p5-visual-bottom {
    display: grid;
    gap: 0.8rem;

    padding: 1.5rem 1.75rem 2.5rem;
}

.portfolio-p5-visual-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 0.8rem 1rem;

    border: 1px solid #e7eaf3;
    border-radius: 11px;

    background: #f8f9fd;
}

.portfolio-p5-visual-item > i {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 38px;
    height: 38px;

    border-radius: 9px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1.1rem;
}

.portfolio-p5-visual-item strong,
.portfolio-p5-visual-item span {
    display: block;
}

.portfolio-p5-visual-item strong {
    margin-bottom: 0.2rem;

    color: #181e6d;

    font-size: 0.84rem;
    font-weight: 700;
}

.portfolio-p5-visual-item span {
    color: #626b7e;

    font-size: 0.74rem;
    line-height: 1.5;
}

/* ==========================================
   DESTACADO INFERIOR
   ========================================== */

.portfolio-p5-visual-highlight {
    position: absolute;
    right: -0.5rem;
    bottom: -1.5rem;

    display: flex;
    align-items: center;
    gap: 0.9rem;

    max-width: 330px;
    padding: 1rem 1.2rem;

    border: 1px solid #e5e9f2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 12px 30px rgba(24, 30, 109, 0.12);
}

.portfolio-p5-visual-highlight > i {
    flex-shrink: 0;

    color: #181e6d;
    font-size: 1.6rem;
}

.portfolio-p5-visual-highlight strong,
.portfolio-p5-visual-highlight span {
    display: block;
}

.portfolio-p5-visual-highlight strong {
    margin-bottom: 0.25rem;

    color: #181e6d;

    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-p5-visual-highlight span {
    color: #626b7e;

    font-size: 0.74rem;
    line-height: 1.45;
}

/* ==========================================
   DESAFÍO INSTITUCIONAL DESTACADO
   ========================================== */

.portfolio-p5-problem-wide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-p5-problem-wide p {
    max-width: 920px;
    margin-bottom: 0;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-p5-visual {
        max-width: 620px;
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 575.98px) {

    .portfolio-p5-visual-top {
        min-height: auto;
        padding: 1.75rem 1.4rem;
    }

    .portfolio-p5-visual-top h3 {
        font-size: 1.4rem;
    }

    .portfolio-p5-visual-eyebrow {
        margin-bottom: 1.4rem;
        font-size: 0.64rem;
    }

    .portfolio-p5-visual-bottom {
        padding: 1rem 1rem 1.4rem;
    }

    .portfolio-p5-visual-highlight {
        position: relative;

        right: auto;
        bottom: auto;

        margin: 0 1rem 1rem;
        max-width: none;
    }

    .portfolio-p5-problem-wide {
        padding: 1.5rem;
    }
}


/* =========================================================
   ACREDUCA - PORTAFOLIO P1
   SISTEMAS Y MODELOS DE CALIDAD EDUCATIVA
   ========================================================= */

/* HERO INSTITUCIONAL */

.portfolio-p1-visual {
    overflow: hidden;
    border: 1px solid #dfe5f2;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(24,30,109,.10);
}

.portfolio-p1-visual-top {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, #181e6d, #34469c);
    color: #fff;
}

.portfolio-p1-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    color: #ff7a00;
    font-size: .90rem;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 1.5rem;
}

.portfolio-p1-visual-symbol {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(255,255,255,.13);
    font-size: 1.9rem;
    margin-bottom: 1.3rem;
}

.portfolio-p1-visual-top h3 {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.3;
}

.portfolio-p1-visual-top p {
    color: rgba(255,255,255,.85);
    line-height: 1.7;
    margin-bottom: 0;
}

.portfolio-p1-visual-bottom {
    display: grid;
    gap: .8rem;
    padding: 1.5rem;
}

.portfolio-p1-visual-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e7eaf3;
    border-radius: 12px;
    background: #f8f9fd;
}

.portfolio-p1-visual-item > i {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #eef0fa;
    color: #181e6d;
    font-size: 1.15rem;
}

.portfolio-p1-visual-item strong,
.portfolio-p1-visual-item span {
    display: block;
}

.portfolio-p1-visual-item strong {
    color: #181e6d;
    font-size: .88rem;
}

.portfolio-p1-visual-item span {
    color: #626b7e;
    font-size: .76rem;
}

/* INTRODUCCIÓN */

.portfolio-p1-intro {
    background: #fff;
    padding-bottom: 3.8rem;
}

.portfolio-p1-highlights {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.portfolio-p1-highlight {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1.3rem;
    border-radius: 50px;
    background: #eef0fa;
    color: #181e6d;
    font-size: .85rem;
    font-weight: 600;
}

/* TARJETAS DE SERVICIOS */

.portfolio-p1-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 1.4rem;
}

.portfolio-p1-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.7rem;
    border: 1px solid #e0e5ef;
    border-radius: 20px;
    background: #fff;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.portfolio-p1-service-card:hover {
    transform: translateY(-4px);
    border-color: #c5cde6;
    box-shadow: 0 14px 35px rgba(24,30,109,.08);
}

.portfolio-p1-service-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.4rem;
    border-radius: 14px;
    background: #eef0fa;
    color: #181e6d;
    font-size: 1.5rem;
}

.portfolio-p1-service-category {
    margin-bottom: .7rem;
    color: #ff7a00;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
}

.portfolio-p1-service-card h3 {
    margin-bottom: 1rem;
    color: #181e6d;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.portfolio-p1-service-card > p {
    color: #626b7e;
    font-size: .89rem;
    line-height: 1.75;
}

.portfolio-p1-service-features {
    display: grid;
    gap: .7rem;
    width: 100%;
    margin: 1rem 0 1.6rem;
}

.portfolio-p1-service-features span {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: #343849;
    font-size: .83rem;
    line-height: 1.5;
}

.portfolio-p1-service-features i {
    color: #348c28;
    flex-shrink: 0;
}

.portfolio-p1-service-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin-top: auto;
    padding: .85rem 1.3rem;
    border: 1px solid #181e6d;
    border-radius: 50px;
    background: #181e6d;
    color: #fff;
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
}

a.portfolio-p1-service-button:hover {
    background: #e66d00;
    border-color: #e66d00;
    color: #fff;
}

.portfolio-p1-service-button.is-pending {
    background: #e9ecf4;
    border-color: #e9ecf4;
    color: #747c90;
    cursor: not-allowed;
}

/* RESPONSIVE */

@media (max-width: 1199.98px) {
    .portfolio-p1-services-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 767.98px) {
    .portfolio-p1-services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-p1-service-card {
        padding: 1.6rem;
    }

    .portfolio-p1-visual-top {
        padding: 1.8rem 1.4rem;
    }

    .portfolio-p1-visual-top h3 {
        font-size: 1.45rem;
    }

    .portfolio-p1-highlight {
        width: 100%;
        border-radius: 12px;
    }
}

/* =========================================================
   ACREDUCA - P1 / SERVICIO ISO 21001:2025
   ========================================================= */

/* ==========================================
   BREADCRUMB
   ========================================== */

.portfolio-iso21001 .portfolio-service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;

    margin-bottom: 3rem;

    color: #626b7e;
    font-size: 0.81rem;
}

.portfolio-iso21001 .portfolio-service-breadcrumb a {
    color: #181e6d;
    font-weight: 600;
    text-decoration: none;
}

.portfolio-iso21001 .portfolio-service-breadcrumb a:hover {
    color: #df6900;
}

.portfolio-iso21001 .portfolio-service-breadcrumb i {
    font-size: 0.6rem;
    color: #9aa3b6;
}

/* ==========================================
   COMPOSICIÓN VISUAL HERO
   ========================================== */

.portfolio-iso-visual {
    overflow: hidden;

    border: 1px solid #dfe5f2;
    border-radius: 24px;

    background: #ffffff;

    box-shadow: 0 20px 50px rgba(24, 30, 109, 0.10);
}

.portfolio-iso-visual-top {
    padding: 2.4rem 2rem;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(255,255,255,0.14),
            transparent 45%
        ),
        linear-gradient(
            135deg,
            #181e6d,
            #34469c
        );

    color: #ffffff;
}

.portfolio-iso-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    margin-bottom: 1.7rem;

    color: #ff7a00;

    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.portfolio-iso-visual-symbol {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    margin-bottom: 1.4rem;

    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.2);

    background: rgba(255,255,255,0.12);

    color: #ffffff;
    font-size: 1.8rem;
}

.portfolio-iso-standard {
    display: inline-flex;

    margin-bottom: 1rem;
    padding: 0.45rem 0.9rem;

    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.3);

    background: rgba(255,255,255,0.1);
    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 700;
}

.portfolio-iso-visual-top h3 {
    max-width: 380px;
    margin-bottom: 0.8rem;

    color: #ffffff;

    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.35;
}

.portfolio-iso-visual-top p {
    max-width: 380px;
    margin: 0;

    color: rgba(255,255,255,0.85);

    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================
   EJES DE GESTIÓN
   ========================================== */

.portfolio-iso-visual-bottom {
    display: grid;
    gap: 0.8rem;

    padding: 1.5rem;
}

.portfolio-iso-visual-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    padding: 0.9rem;

    border: 1px solid #e7eaf3;
    border-radius: 11px;

    background: #f8f9fd;
}

.portfolio-iso-visual-item > i {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    width: 40px;
    height: 40px;

    border-radius: 10px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1.15rem;
}

.portfolio-iso-visual-item strong,
.portfolio-iso-visual-item span {
    display: block;
}

.portfolio-iso-visual-item strong {
    margin-bottom: 0.2rem;

    color: #181e6d;

    font-size: 0.86rem;
    font-weight: 700;
}

.portfolio-iso-visual-item span {
    color: #626b7e;

    font-size: 0.76rem;
    line-height: 1.5;
}

/* ==========================================
   INTRODUCCIÓN INSTITUCIONAL
   ========================================== */

.portfolio-iso-intro {
    background: #ffffff;
}

.portfolio-iso-section-title {
    margin-bottom: 1.3rem;

    color: #181e6d;

    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.25;
}

.portfolio-iso-intro-lead {
    margin: 0;

    color: #626b7e;

    font-size: 1rem;
    line-height: 1.8;
}

.portfolio-iso-intro-panel {
    padding: 2rem;

    border: 1px solid #e0e5ef;
    border-radius: 20px;

    background: #f7f8fc;
}

.portfolio-iso-intro-panel p {
    margin-bottom: 1rem;

    color: #414b61;

    font-size: 0.92rem;
    line-height: 1.8;
}

.portfolio-iso-intro-panel p:last-of-type {
    margin-bottom: 0;
}

.portfolio-iso-intro-panel strong {
    color: #181e6d;
}

.portfolio-iso-intro-note {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;

    margin-top: 1.5rem;
    padding: 1rem;

    border-left: 3px solid #181e6d;
    border-radius: 8px;

    background: #ffffff;

    color: #4f586d;

    font-size: 0.82rem;
    line-height: 1.65;
}

.portfolio-iso-intro-note i {
    flex-shrink: 0;

    color: #181e6d;
    font-size: 1.1rem;
}

/* ==========================================
   ENLACE DE RETORNO
   ========================================== */

.portfolio-iso21001 .portfolio-service-back {
    padding-bottom: 4rem;
}

.portfolio-service-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;

    color: #181e6d;

    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.5;

    text-decoration: none;
}

.portfolio-service-back-link:hover {
    color: #df6900;
    text-decoration: none;
}

.portfolio-service-back-link:focus-visible {
    outline: 2px solid #181e6d;
    outline-offset: 4px;
}

/* ==========================================
   DESPLAZAMIENTO POR ANCLAS
   ========================================== */

.portfolio-iso21001 section[id] {
    scroll-margin-top: 135px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-iso-visual {
        max-width: 620px;
        margin: 0 auto;
    }

    .portfolio-iso21001
    .portfolio-service-breadcrumb {
        margin-bottom: 2rem;
    }

}

@media (max-width: 575.98px) {

    .portfolio-iso-visual-top {
        padding: 1.8rem 1.4rem;
    }

    .portfolio-iso-visual-top h3 {
        font-size: 1.4rem;
    }

    .portfolio-iso-visual-bottom {
        padding: 1rem;
    }

    .portfolio-iso-visual-item {
        padding: 0.8rem;
    }

    .portfolio-iso-intro-panel {
        padding: 1.4rem;
    }

    .portfolio-iso21001
    .portfolio-service-breadcrumb {
        font-size: 0.74rem;
    }

}

/* =========================================================
   P1 - ISO 21001
   AJUSTE DE POSICIÓN DEL HERO
   ========================================================= */

/* Reducir espacio superior del Hero */
.portfolio-iso21001 .portfolio-hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Mantener breadcrumb próximo al contenido */
.portfolio-iso21001 .portfolio-service-breadcrumb {
    margin-bottom: 1.5rem;
}

/* ==========================================
   ISO 21001 - ALINEACIÓN DEL HERO
   ========================================== */

/* Mantener la tarjeta derecha en su posición */
.portfolio-iso21001 .portfolio-hero .row {
    align-items: flex-start !important;
}

/* Bajar moderadamente el contenido izquierdo */
.portfolio-iso21001 .portfolio-hero-content {
    padding-top: 5rem;
}

/* Tablet y móvil */
@media (max-width: 991.98px) {
    .portfolio-iso21001 .portfolio-hero-content {
        padding-top: 0;
    }
}

/* Responsive */
@media (max-width: 991.98px) {

    .portfolio-iso21001 .portfolio-hero {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .portfolio-iso21001 .portfolio-hero-content {
        padding-top: 0;
    }

    .portfolio-iso21001 .portfolio-service-breadcrumb {
        margin-bottom: 1.5rem;
    }
}

/* =========================================================
   ACREDUCA - P1 / SERVICIO 2
   CONDICIONES BÁSICAS - MINEDU
   ========================================================= */

/* ==========================================
   HERO
   ========================================== */

/* Ajuste vertical equivalente al Servicio 1 */
.portfolio-condiciones-basicas
.portfolio-hero-content {
    padding-top: 5rem;
}

/* ==========================================
   TARJETAS DESTACADAS
   ========================================== */

.portfolio-condiciones-basicas
.portfolio-minedu-wide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-condiciones-basicas
.portfolio-minedu-wide p {
    max-width: 900px;
    margin-bottom: 0;
}

/* ==========================================
   ÁREAS DE EVALUACIÓN
   ========================================== */

.portfolio-minedu-areas {
    background: #ffffff;
}

.portfolio-minedu-areas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.portfolio-minedu-area-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    height: 100%;

    padding: 2rem;

    border: 1px solid #e0e5ef;
    border-radius: 18px;

    background: #f8f9fd;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-minedu-area-card:hover {
    transform: translateY(-4px);

    border-color: #c5cde6;

    box-shadow:
        0 14px 32px rgba(24, 30, 109, 0.07);
}

/* ÍCONO */

.portfolio-minedu-area-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 54px;
    height: 54px;

    margin-bottom: 1.4rem;

    border-radius: 14px;

    background: #e9ecf8;
    color: #181e6d;

    font-size: 1.45rem;
}

/* CÓDIGO CB */

.portfolio-minedu-area-code {
    display: inline-flex;
    align-items: center;

    margin-bottom: 0.75rem;

    color: #df6900;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

/* TÍTULO */

.portfolio-minedu-area-card h3 {
    margin-bottom: 0.85rem;

    color: #181e6d;

    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.45;
}

/* DESCRIPCIÓN */

.portfolio-minedu-area-card p {
    margin-bottom: 0;

    color: #626b7e;

    font-size: 0.88rem;
    line-height: 1.7;
}

/* ==========================================
   SEPARACIÓN ENTRE SECCIONES
   ========================================== */

.portfolio-condiciones-basicas
.portfolio-services-section {
    background: #f7f8fc;
}

.portfolio-condiciones-basicas
.portfolio-services-section
.portfolio-service-card {
    background: #ffffff;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-minedu-areas-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-condiciones-basicas
    .portfolio-hero-content {
        padding-top: 0;
    }

}

/* ==========================================
   RESPONSIVE - MÓVIL
   ========================================== */

@media (max-width: 575.98px) {

    .portfolio-minedu-areas-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-minedu-area-card {
        padding: 1.5rem;
    }

    .portfolio-minedu-area-icon {
        width: 46px;
        height: 46px;

        margin-bottom: 1rem;

        font-size: 1.2rem;
    }

    .portfolio-minedu-area-card h3 {
        font-size: 1rem;
    }

}

/* =========================================================
   ACREDUCA - P1 / SERVICIO 3
   ACREDITACIÓN EDUCATIVA SINEACE
   ========================================================= */

/* ==========================================
   HERO
   ========================================== */

/*
 * Hereda los estilos del servicio ISO 21001.
 * Se mantiene el ajuste vertical aprobado.
 */

.portfolio-sineace .portfolio-hero-content {
    padding-top: 5rem;
}

/* ==========================================
   TARJETA INSTITUCIONAL DESTACADA
   ========================================== */

.portfolio-sineace .portfolio-sineace-wide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-sineace .portfolio-sineace-wide p {
    max-width: 920px;
    margin-bottom: 0;
}

/* ==========================================
   SECCIÓN DE ESTÁNDARES
   ========================================== */

.portfolio-sineace-standards {
    background: #ffffff;
}

.portfolio-sineace-standard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

/* TARJETA DE DIMENSIÓN */

.portfolio-sineace-standard-card {
    min-width: 0;

    padding: 2rem;

    border: 1px solid #e0e5ef;
    border-radius: 18px;

    background: #f8f9fd;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-sineace-standard-card:hover {
    transform: translateY(-4px);

    border-color: #c5cde6;

    box-shadow:
        0 12px 30px rgba(24, 30, 109, 0.07);
}

/* CABECERA */

.portfolio-sineace-standard-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    min-height: 106px;
    margin-bottom: 1.4rem;
    padding-bottom: 1.3rem;

    border-bottom: 1px solid #e0e5ef;
}

.portfolio-sineace-standard-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 54px;
    height: 54px;

    border-radius: 14px;

    background: #e9ecf8;
    color: #181e6d;

    font-size: 1.4rem;
}

.portfolio-sineace-standard-heading span {
    display: block;

    margin-bottom: 0.45rem;

    color: #df6900;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.portfolio-sineace-standard-heading h3 {
    margin-bottom: 0.45rem;

    color: #181e6d;

    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-sineace-standard-heading small {
    color: #626b7e;

    font-size: 0.77rem;
    font-weight: 500;
}

/* LISTA DE ESTÁNDARES */

.portfolio-sineace-standard-card ol {
    display: grid;
    gap: 0.9rem;

    margin: 0;
    padding-left: 1.7rem;

    color: #343849;
}

.portfolio-sineace-standard-card li {
    padding-left: 0.3rem;

    font-size: 0.89rem;
    line-height: 1.6;
}

.portfolio-sineace-standard-card li::marker {
    color: #181e6d;
    font-weight: 700;
}

/* NOTA INFORMATIVA */

.portfolio-sineace-standard-note {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;

    margin-top: 1.6rem;
    padding: 1.25rem 1.5rem;

    border-left: 3px solid #181e6d;
    border-radius: 10px;

    background: #eef1f8;
}

.portfolio-sineace-standard-note > i {
    flex-shrink: 0;

    color: #181e6d;
    font-size: 1.2rem;
}

.portfolio-sineace-standard-note p {
    margin: 0;

    color: #4f586d;

    font-size: 0.85rem;
    line-height: 1.7;
}

/* ==========================================
   METODOLOGÍA DE SEIS FASES
   ========================================== */

.portfolio-sineace-method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.portfolio-sineace-method-grid .portfolio-step {
    min-height: 220px;
}

/* ==========================================
   FONDOS Y SEPARACIÓN
   ========================================== */

.portfolio-sineace .portfolio-services-section {
    background: #f7f8fc;
}

.portfolio-sineace
.portfolio-services-section
.portfolio-service-card {
    background: #ffffff;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-sineace .portfolio-hero-content {
        padding-top: 0;
    }

    .portfolio-sineace-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-sineace-standard-heading {
        min-height: 0;
    }

}

/* ==========================================
   RESPONSIVE - MÓVIL
   ========================================== */

@media (max-width: 767.98px) {

    .portfolio-sineace-standard-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-sineace-standard-card {
        padding: 1.5rem;
    }

}

@media (max-width: 575.98px) {

    .portfolio-sineace-method-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-sineace-method-grid .portfolio-step {
        min-height: 0;
    }

    .portfolio-sineace-standard-heading {
        flex-direction: column;
        gap: 0.85rem;
    }

    .portfolio-sineace-standard-note {
        padding: 1rem;
    }

}

/* =========================================================
   ACREDUCA - P4 FORMACIÓN CONTINUA
   AJUSTE DE POSICIÓN DEL HERO
   ========================================================= */

/* Reducir el espacio superior del Hero */
.portfolio-p4 .portfolio-hero {
    padding-top: 3rem;
    padding-bottom: 4rem;
}

/* Evitar el centrado vertical de Bootstrap */
.portfolio-p4 .portfolio-hero > .container > .row {
    align-items: flex-start !important;
}

/* Posicionar el contenido izquierdo de forma equilibrada */
.portfolio-p4 .portfolio-hero-content {
    padding-top: 5rem;
}

/* Mantener la tarjeta visual en su posición */
.portfolio-p4 .portfolio-p4-visual {
    margin-top: 0;
}

/* ==========================================
   TABLET Y MÓVIL
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-p4 .portfolio-hero {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .portfolio-p4 .portfolio-hero-content {
        padding-top: 0;
    }

}


/* =========================================================
   ACREDUCA - P3
   CORRECCIÓN DE DISTRIBUCIÓN VERTICAL DEL HERO
   ========================================================= */

@media (min-width: 992px) {

    /* Reducir el espacio superior excesivo */
    .portfolio-p3 .portfolio-hero {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    /* Centrar ambas columnas naturalmente */
    .portfolio-p3 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Eliminar desplazamientos manuales */
    .portfolio-p3 .portfolio-hero-content {
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Mantener la tarjeta derecha sin desplazamientos */
    .portfolio-p3 .portfolio-p3-visual {
        transform: none;
    }

}

/* Tablets y móviles */
@media (max-width: 991.98px) {

    .portfolio-p3 .portfolio-hero {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .portfolio-p3 .portfolio-hero-content {
        transform: none;
    }

}

/* =========================================================
   ACREDUCA - P5
   CORRECCIÓN DE DISTRIBUCIÓN VERTICAL DEL HERO
   ========================================================= */

@media (min-width: 992px) {

    /* Reducir el espacio superior */
    .portfolio-p5 .portfolio-hero {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    /* Centrar ambas columnas verticalmente */
    .portfolio-p5 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Mantener el contenido izquierdo sin desplazamientos */
    .portfolio-p5 .portfolio-hero-content {
        transform: none;
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Mantener la composición visual derecha */
    .portfolio-p5 .portfolio-p5-visual {
        transform: none;
    }

}

/* Tablets y móviles */
@media (max-width: 991.98px) {

    .portfolio-p5 .portfolio-hero {
        padding-top: 3.5rem;
        padding-bottom: 4rem;
    }

    .portfolio-p5 .portfolio-hero-content {
        transform: none;
    }

}

@media (min-width: 992px) {

    .portfolio-p5 .portfolio-p5-visual {
        margin-bottom: 1.5rem;
    }

}

/* =========================================================
   ACREDUCA - IMÁGENES EN CAJAS AZULES
   ESTILO REUTILIZABLE PARA TODOS LOS SERVICIOS
   ========================================================= */

/* Contenedor azul */

.acreduca-portfolio-page .portfolio-visual-media-host {
    position: relative;
    isolation: isolate;
}

/* Imagen superior derecha */
.acreduca-portfolio-page .portfolio-visual-media {
    position: absolute;

    top: 58px;
    right: 22px;

    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 6px;

    overflow: hidden;
    border-radius: 16px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #ffffff;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);

    z-index: 1;
}

/* Imagen */

.acreduca-portfolio-page .portfolio-visual-media img {
    display: block;

    width: 100%;
    height: 100%;

    /* Mantiene toda la imagen visible */
    object-fit: contain;
    object-position: center;
}

/* Evitar que el icono principal invada la imagen */

.acreduca-portfolio-page
.portfolio-visual-media-host
.portfolio-iso-visual-symbol {
    position: relative;
    z-index: 2;
}


/* =========================================================
   ACREDUCA - BOTÓN MATERIALES DE PONENCIAS
   ========================================================= */

.acreduca-portfolio-page .portfolio-btn-resources {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;

    padding: 0.85rem 1.35rem;

    border: 1px solid #ff7a00;
    border-radius: 50px;

    background: #ff7a00;
    color: #ffffff;

    font-size: 0.87rem;
    font-weight: 700;
    line-height: 1.45;

    text-decoration: none;

    box-shadow: 0 5px 15px rgba(255, 122, 0, 0.18);

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.acreduca-portfolio-page .portfolio-btn-resources:hover {
    background: #e66d00;
    border-color: #e66d00;
    color: #ffffff;

    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 122, 0, 0.26);
}

.acreduca-portfolio-page .portfolio-btn-resources i {
    font-size: 1rem;
}

.acreduca-portfolio-page .portfolio-btn-resources:focus-visible {
    outline: 3px solid #181e6d;
    outline-offset: 3px;
}


/* ==========================================
   TABLETS
   ========================================== */

@media (max-width: 991.98px) {

    .acreduca-portfolio-page .portfolio-visual-media {
        width: 105px;
        height: 105px;

        top: 55px;
        right: 18px;
    }

}

/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 575.98px) {

    .acreduca-portfolio-page .portfolio-visual-media {
        width: 80px;
        height: 80px;

        top: 55px;
        right: 14px;

        padding: 4px;
        border-radius: 12px;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P1
   CORRECCIÓN DE POSICIÓN DE IMAGEN EN HERO
   ========================================================= */

/* Imagen alineada con la zona superior derecha */
.portfolio-p1 .portfolio-p1-visual-top .portfolio-visual-media {
    top: 36px;
    right: 24px;

    width: 110px;
    height: 110px;

    padding: 0;
    border-radius: 14px;

    overflow: hidden;
}

/* Mantener la fotografía sin deformarla */
.portfolio-p1 .portfolio-p1-visual-top .portfolio-visual-media img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Reservar espacio para que el título no choque con la imagen */
.portfolio-p1 .portfolio-p1-visual-top h3,
.portfolio-p1 .portfolio-p1-visual-top p {
    position: relative;
    z-index: 2;
}

/* TABLETS */
@media (max-width: 991.98px) {

    .portfolio-p1 .portfolio-p1-visual-top .portfolio-visual-media {
        top: 28px;
        right: 20px;

        width: 100px;
        height: 100px;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p1 .portfolio-p1-visual-top .portfolio-visual-media {
        top: 24px;
        right: 16px;

        width: 85px;
        height: 85px;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P3
   IMAGEN EN LA CAJA AZUL
   ========================================================= */

.portfolio-p3 .portfolio-p3-visual-header {
    position: relative;
}

/* Imagen superior derecha */
.portfolio-p3 .portfolio-p3-visual-header .portfolio-visual-media {
    position: absolute;

    top: 36px;
    right: 24px;

    width: 110px;
    height: 110px;

    padding: 0;
    overflow: hidden;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);

    background: #ffffff;

    z-index: 1;
}

/* Fotografía */
.portfolio-p3 .portfolio-p3-visual-header .portfolio-visual-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Conservar el contenido por delante */
.portfolio-p3 .portfolio-p3-visual-header > span,
.portfolio-p3 .portfolio-p3-visual-symbol {
    position: relative;
    z-index: 2;
}

/* TABLETS */
@media (max-width: 991.98px) {

    .portfolio-p3 .portfolio-p3-visual-header .portfolio-visual-media {
        top: 28px;
        right: 20px;

        width: 100px;
        height: 100px;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p3 .portfolio-p3-visual-header .portfolio-visual-media {
        top: 24px;
        right: 16px;

        width: 80px;
        height: 80px;

        border-radius: 10px;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P4
   IMAGEN EN CAJA AZUL DE FORMACIÓN CONTINUA
   ========================================================= */

.portfolio-p4 .portfolio-p4-visual-top {
    position: relative;
}

/* Fotografía superior derecha */
.portfolio-p4 .portfolio-p4-visual-top .portfolio-visual-media {
    position: absolute;

    top: 36px;
    right: 24px;

    width: 110px;
    height: 110px;

    padding: 0;
    overflow: hidden;

    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: #ffffff;

    z-index: 1;
}

/* Mostrar fotografía completa dentro del recuadro */
.portfolio-p4 .portfolio-p4-visual-top .portfolio-visual-media img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Mantener encabezado e icono por delante */
.portfolio-p4 .portfolio-p4-visual-eyebrow,
.portfolio-p4 .portfolio-p4-visual-icon {
    position: relative;
    z-index: 2;
}

/* TABLETS */
@media (max-width: 991.98px) {

    .portfolio-p4 .portfolio-p4-visual-top .portfolio-visual-media {
        top: 28px;
        right: 20px;

        width: 100px;
        height: 100px;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p4 .portfolio-p4-visual-top .portfolio-visual-media {
        top: 24px;
        right: 16px;

        width: 80px;
        height: 80px;

        border-radius: 10px;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P5
   IMAGEN EN CAJA AZUL
   ========================================================= */

.portfolio-p5 .portfolio-p5-visual-top {
    position: relative;
}

/* Fotografía superior derecha */

.portfolio-p5 .portfolio-p5-visual-top .portfolio-visual-media {
    position: absolute;

    top: 36px;
    right: 24px;

    width: 110px;
    height: 110px;

    padding: 0;
    overflow: hidden;

    border-radius: 14px;
    border: 3px solid #ffffff;
    background: #ffffff;

    z-index: 1;
}

/* Fotografía */

.portfolio-p5 .portfolio-p5-visual-top .portfolio-visual-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* Mantener encabezado e icono visibles */

.portfolio-p5 .portfolio-p5-visual-eyebrow,
.portfolio-p5 .portfolio-p5-visual-icon {
    position: relative;
    z-index: 2;
}

/* TABLETS */

@media (max-width: 991.98px) {

    .portfolio-p5 .portfolio-p5-visual-top .portfolio-visual-media {
        top: 28px;
        right: 20px;

        width: 100px;
        height: 100px;
    }

}

/* MÓVILES */

@media (max-width: 575.98px) {

    .portfolio-p5 .portfolio-p5-visual-top .portfolio-visual-media {
        top: 24px;
        right: 16px;

        width: 80px;
        height: 80px;

        border-radius: 10px;
    }

}

/* =========================================================
   ACREDUCA - P4
   CENTRADO VERTICAL DEL CONTENIDO DEL HERO
   ========================================================= */

@media (min-width: 992px) {

    /* Centrar las columnas del hero */
    .portfolio-p4 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Mantener el contenido izquierdo centrado */
    .portfolio-p4 .portfolio-hero-content {
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* Tablets y móviles: flujo normal */
@media (max-width: 991.98px) {

    .portfolio-p4 .portfolio-hero-content {
        transform: none !important;
    }

}

/* =========================================================
   ACREDUCA - P3
   PROYECTO DESTACADO EDUTEN
   ========================================================= */

.portfolio-p3 .acreduca-eduten-section {
    padding: 4rem 0 5rem;
    background: #f7f8fd;
    scroll-margin-top: 90px;
}

.portfolio-p3 .acreduca-eduten-card {
    position: relative;
    overflow: hidden;

    padding: 2.8rem 3rem 2rem;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 26px;

    background: linear-gradient(
        125deg,
        #181e6d 0%,
        #293783 65%,
        #394997 100%
    );

    color: #ffffff;

    box-shadow: 0 18px 46px rgba(24, 30, 109, 0.14);
}

/* ENCABEZADO */

.portfolio-p3 .acreduca-eduten-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-bottom: 2rem;
}

.portfolio-p3 .acreduca-eduten-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;

    color: #ffab67;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.portfolio-p3 .acreduca-eduten-category {
    padding: 0.5rem 0.9rem;

    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 50px;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.09);

    font-size: 0.78rem;
    font-weight: 600;
}

/* TÍTULOS */

.portfolio-p3 .acreduca-eduten-content h2 {
    margin: 0 0 0.7rem;

    color: #ffffff;

    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
}

.portfolio-p3 .acreduca-eduten-content h2 span {
    color: #ff962f;
}

.portfolio-p3 .acreduca-eduten-content h3 {
    margin: 0 0 1.4rem;

    color: #ffffff;

    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    line-height: 1.4;
}

/* PÁRRAFOS */

.portfolio-p3 .acreduca-eduten-content p {
    margin-bottom: 1.05rem;

    color: rgba(255, 255, 255, 0.85);

    font-size: 0.97rem;
    line-height: 1.8;
}

.portfolio-p3 .acreduca-eduten-content .acreduca-eduten-lead {
    color: #ffffff;
    font-weight: 500;
}

/* BOTÓN CTA */

.portfolio-p3 .acreduca-eduten-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;

    margin-top: 1rem;
    padding: 0.9rem 1.5rem;

    border: 1px solid #ff7a00;
    border-radius: 50px;

    background: #ff7a00;
    color: #ffffff;

    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-p3 .acreduca-eduten-button:hover {
    background: #e66d00;
    color: #ffffff;

    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 122, 0, 0.25);
}

.portfolio-p3 .acreduca-eduten-button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 4px;
}

/* ==========================================
   TARJETAS DE BENEFICIOS
   ========================================== */

.portfolio-p3 .acreduca-eduten-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.portfolio-p3 .acreduca-eduten-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;

    padding: 1.1rem 1.2rem;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.09);
}

.portfolio-p3 .acreduca-eduten-benefit-icon {
    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    border-radius: 11px;

    background: rgba(255, 122, 0, 0.14);
    color: #ffac64;

    font-size: 1.2rem;
}

.portfolio-p3 .acreduca-eduten-benefit h4 {
    margin: 0 0 0.35rem;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

.portfolio-p3 .acreduca-eduten-benefit p {
    margin: 0;

    color: rgba(255, 255, 255, 0.77);

    font-size: 0.84rem;
    line-height: 1.6;
}

/* ==========================================
   FRASE INSTITUCIONAL
   ========================================== */

.portfolio-p3 .acreduca-eduten-footer {
    display: flex;
    align-items: center;
    gap: 0.85rem;

    margin-top: 2.2rem;
    padding-top: 1.35rem;

    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.portfolio-p3 .acreduca-eduten-footer > i {
    color: #ffac64;
    font-size: 1.45rem;
}

.portfolio-p3 .acreduca-eduten-footer p {
    margin: 0;

    color: #ffffff;

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {

    .portfolio-p3 .acreduca-eduten-card {
        padding: 2.2rem;
    }

    .portfolio-p3 .acreduca-eduten-section {
        padding: 3rem 0;
    }

}

@media (max-width: 575.98px) {

    .portfolio-p3 .acreduca-eduten-card {
        padding: 1.6rem 1.25rem;
        border-radius: 18px;
    }

    .portfolio-p3 .acreduca-eduten-heading {
        margin-bottom: 1.4rem;
    }

    .portfolio-p3 .acreduca-eduten-content p {
        font-size: 0.9rem;
    }

    .portfolio-p3 .acreduca-eduten-benefit {
        padding: 0.9rem;
    }

    .portfolio-p3 .acreduca-eduten-button {
        width: 100%;
    }

    .portfolio-p3 .acreduca-eduten-footer {
        align-items: flex-start;
    }

}

/* BOTÓN EDUTEN EN EL HERO DE P3 */

.portfolio-p3 .portfolio-btn-eduten {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;

    border: 1px solid #ff7a00;
    border-radius: 50px;

    background: #fff3e8;
    color: #a74b00;

    font-weight: 700;
    text-decoration: none;
}

.portfolio-p3 .portfolio-btn-eduten:hover {
    background: #ff7a00;
    border-color: #ff7a00;
    color: #ffffff;
}

/* =========================================================
   ACREDUCA - IMÁGENES MÁS GRANDES EN CAJAS AZULES
   APLICA A PORTAFOLIOS Y SERVICIOS
   ========================================================= */

/* ESCRITORIO */

@media (min-width: 992px) {

    .acreduca-portfolio-page .portfolio-visual-media {
        top: 34px;
        right: 24px;

        width: 150px;
        height: 150px;

        border-radius: 16px;
    }

}

/* TABLETS */

@media (min-width: 576px) and (max-width: 991.98px) {

    .acreduca-portfolio-page .portfolio-visual-media {
        top: 28px;
        right: 20px;

        width: 125px;
        height: 125px;

        border-radius: 14px;
    }

}

/* MÓVILES */

@media (max-width: 575.98px) {

    .acreduca-portfolio-page .portfolio-visual-media {
        top: 24px;
        right: 16px;

        width: 95px;
        height: 95px;

        border-radius: 12px;
    }

}

/* MANTENER LAS PROPORCIONES */

.acreduca-portfolio-page .portfolio-visual-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-position: center;
}

/* LOGOTIPOS INSTITUCIONALES: NO RECORTAR */

.acreduca-portfolio-page .portfolio-iso-visual-top
.portfolio-visual-media img {
    object-fit: contain;
}

/* FOTOGRAFÍAS DE LOS PORTAFOLIOS */

.acreduca-portfolio-page .portfolio-p1-visual-top
.portfolio-visual-media img,

.acreduca-portfolio-page .portfolio-p3-visual-header
.portfolio-visual-media img,

.acreduca-portfolio-page .portfolio-p4-visual-top
.portfolio-visual-media img,

.acreduca-portfolio-page .portfolio-p5-visual-top
.portfolio-visual-media img {
    object-fit: cover;
}

/* =========================================================
   ESPACIO PARA IMÁGENES AMPLIADAS
   ========================================================= */

@media (min-width: 992px) {

    .portfolio-p1 .portfolio-p1-visual-top,
    .portfolio-p3 .portfolio-p3-visual-header,
    .portfolio-p4 .portfolio-p4-visual-top,
    .portfolio-p5 .portfolio-p5-visual-top {
        padding-top: 2.5rem;
    }

    /* Separación entre icono y título */
    .portfolio-p1 .portfolio-p1-visual-top h3,
    .portfolio-p3 .portfolio-p3-visual-header h3,
    .portfolio-p4 .portfolio-p4-visual-top h3,
    .portfolio-p5 .portfolio-p5-visual-top h3 {
        margin-top: 2.5rem;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIOS P1, P3, P4 Y P5
   FOTOGRAFÍA EN COLUMNA IZQUIERDA
   ICONO EN ESQUINA SUPERIOR DERECHA
   ========================================================= */

/* ==========================================
   FOTO ENCIMA DEL TÍTULO PRINCIPAL
   ========================================== */

.acreduca-portfolio-page .portfolio-hero-photo {
    width: 190px;
    height: 135px;

    margin-bottom: 1.5rem;

    border: 3px solid #ffffff;
    border-radius: 16px;

    overflow: hidden;

    background: #ffffff;

    box-shadow: 0 8px 24px rgba(24, 30, 109, 0.12);
}

.acreduca-portfolio-page .portfolio-hero-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* ==========================================
   CAJAS AZULES COMPACTAS
   ========================================== */

.acreduca-portfolio-page.portfolio-p1 .portfolio-p1-visual-top,
.acreduca-portfolio-page.portfolio-p3 .portfolio-p3-visual-header,
.acreduca-portfolio-page.portfolio-p4 .portfolio-p4-visual-top,
.acreduca-portfolio-page.portfolio-p5 .portfolio-p5-visual-top {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 0 !important;
    height: auto !important;

    padding: 1.8rem 2rem !important;
}

/* ==========================================
   ETIQUETAS NARANJAS
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-eyebrow,
.portfolio-p3 .portfolio-p3-visual-header > span,
.portfolio-p4 .portfolio-p4-visual-eyebrow,
.portfolio-p5 .portfolio-p5-visual-eyebrow {
    order: 1;

    display: inline-flex;
    align-items: center;

    max-width: calc(100% - 85px);

    margin: 0 0 1.6rem !important;
}

/* ==========================================
   ICONOS SUPERIORES DERECHOS
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-symbol,
.portfolio-p3 .portfolio-p3-visual-symbol,
.portfolio-p4 .portfolio-p4-visual-icon,
.portfolio-p5 .portfolio-p5-visual-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;

    position: absolute !important;

    top: 24px;
    right: 24px;

    width: 58px;
    height: 58px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.65rem;

    z-index: 2;
}

/* ==========================================
   TÍTULOS SIN ESPACIOS SOBRANTES
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-top h3,
.portfolio-p3 .portfolio-p3-visual-header h3,
.portfolio-p4 .portfolio-p4-visual-top h3,
.portfolio-p5 .portfolio-p5-visual-top h3 {
    order: 2;

    width: 100%;
    max-width: 100%;

    margin: 0 0 0.7rem !important;

    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
}

/* ==========================================
   DESCRIPCIÓN
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-top > p,
.portfolio-p3 .portfolio-p3-visual-header > p,
.portfolio-p4 .portfolio-p4-visual-top > p,
.portfolio-p5 .portfolio-p5-visual-top > p {
    order: 3;

    width: 100%;
    max-width: 100%;

    margin: 0 !important;

    line-height: 1.6;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991.98px) {

    .acreduca-portfolio-page .portfolio-hero-photo {
        width: 175px;
        height: 125px;
    }
}

@media (max-width: 575.98px) {

    .acreduca-portfolio-page .portfolio-hero-photo {
        width: 155px;
        height: 110px;
        margin-bottom: 1.25rem;
    }

    .acreduca-portfolio-page.portfolio-p1 .portfolio-p1-visual-top,
    .acreduca-portfolio-page.portfolio-p3 .portfolio-p3-visual-header,
    .acreduca-portfolio-page.portfolio-p4 .portfolio-p4-visual-top,
    .acreduca-portfolio-page.portfolio-p5 .portfolio-p5-visual-top {
        padding: 1.5rem 1.3rem !important;
    }

    .portfolio-p1 .portfolio-p1-visual-symbol,
    .portfolio-p3 .portfolio-p3-visual-symbol,
    .portfolio-p4 .portfolio-p4-visual-icon,
    .portfolio-p5 .portfolio-p5-visual-icon {
        top: 18px;
        right: 18px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }

    .portfolio-p1 .portfolio-p1-visual-eyebrow,
    .portfolio-p3 .portfolio-p3-visual-header > span,
    .portfolio-p4 .portfolio-p4-visual-eyebrow,
    .portfolio-p5 .portfolio-p5-visual-eyebrow {
        max-width: calc(100% - 65px);
    }
}


/* =========================================================
   ACREDUCA - P1
   AJUSTE DEFINITIVO DEL HERO
   ========================================================= */

/* ==========================================
   FOTOGRAFÍA ARRIBA DEL TÍTULO
   ========================================== */

.portfolio-p1 .portfolio-hero-photo {
    display: block;

    width: 190px;
    height: 135px;

    margin: 0 0 1.5rem;

    overflow: hidden;

    border: 3px solid #ffffff;
    border-radius: 16px;

    background: #ffffff;

    box-shadow: 0 8px 24px rgba(24, 30, 109, 0.12);
}

.portfolio-p1 .portfolio-hero-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

/* TÍTULO PRINCIPAL */

.portfolio-p1 .portfolio-hero-title {
    margin-top: 0;
    margin-bottom: 1.35rem;
}

/* ==========================================
   CAJA AZUL COMPACTA
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-top {
    display: block !important;

    position: relative;

    min-height: 0 !important;
    height: auto !important;

    padding: 1.9rem 2rem 2rem !important;
}

/* ==========================================
   ENCABEZADO HORIZONTAL
   ========================================== */

.portfolio-p1 .portfolio-visual-top-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.6rem;
}

/* ETIQUETA NARANJA */

.portfolio-p1 .portfolio-visual-top-heading
.portfolio-p1-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;

    max-width: none;

    margin: 0 !important;

    line-height: 1.4;
}

/* ICONO SUPERIOR DERECHO */

.portfolio-p1 .portfolio-visual-top-heading
.portfolio-p1-visual-symbol {
    position: static !important;

    display: flex !important;

    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.7rem;
}

/* ==========================================
   TÍTULO Y DESCRIPCIÓN
   ========================================== */

.portfolio-p1 .portfolio-p1-visual-top h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 0.8rem !important;

    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
}

.portfolio-p1 .portfolio-p1-visual-top > p {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;

    line-height: 1.65;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 575.98px) {

    .portfolio-p1 .portfolio-hero-photo {
        width: 155px;
        height: 110px;

        margin-bottom: 1.25rem;
    }

    .portfolio-p1 .portfolio-p1-visual-top {
        padding: 1.5rem 1.3rem !important;
    }

    .portfolio-p1 .portfolio-visual-top-heading {
        gap: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .portfolio-p1 .portfolio-visual-top-heading
    .portfolio-p1-visual-symbol {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P4
   ENCABEZADO COMPACTO DE LA CAJA AZUL
   ========================================================= */

/* Contenedor superior */

.portfolio-p4 .portfolio-p4-visual-top {
    display: block !important;

    position: relative;

    min-height: 0 !important;
    height: auto !important;

    padding: 1.9rem 2rem 2rem !important;
}

/* Etiqueta naranja e icono en una misma fila */

.portfolio-p4 .portfolio-visual-top-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    margin-bottom: 1.6rem;
}

/* Etiqueta */

.portfolio-p4 .portfolio-visual-top-heading
.portfolio-p4-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;
    max-width: none;

    margin: 0 !important;

    line-height: 1.4;
}

/* Icono derecho */

.portfolio-p4 .portfolio-visual-top-heading
.portfolio-p4-visual-icon {
    position: static !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.7rem;
}

/* Título */

.portfolio-p4 .portfolio-p4-visual-top h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 0.8rem !important;

    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
}

/* Descripción */

.portfolio-p4 .portfolio-p4-visual-top > p {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;

    line-height: 1.65;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 575.98px) {

    .portfolio-p4 .portfolio-p4-visual-top {
        padding: 1.5rem 1.3rem !important;
    }

    .portfolio-p4 .portfolio-visual-top-heading {
        gap: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .portfolio-p4 .portfolio-visual-top-heading
    .portfolio-p4-visual-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P5
   HERO CON FOTOGRAFÍA IZQUIERDA
   Y ENCABEZADO AZUL COMPACTO
   ========================================================= */

/* CAJA AZUL SUPERIOR */

.portfolio-p5 .portfolio-p5-visual-top {
    display: block !important;
    position: relative;

    min-height: 0 !important;
    height: auto !important;

    padding: 1.9rem 2rem 2rem !important;
}

/* FILA DE ETIQUETA E ICONO */

.portfolio-p5 .portfolio-visual-top-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
    margin-bottom: 1.6rem;
}

/* ETIQUETA NARANJA */

.portfolio-p5 .portfolio-visual-top-heading
.portfolio-p5-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;
    max-width: none;

    margin: 0 !important;
    line-height: 1.4;
}

/* ICONO SUPERIOR DERECHO */

.portfolio-p5 .portfolio-visual-top-heading
.portfolio-p5-visual-icon {
    position: static !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.7rem;
}

/* TÍTULO */

.portfolio-p5 .portfolio-p5-visual-top h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 0.8rem !important;

    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
}

/* DESCRIPCIÓN */

.portfolio-p5 .portfolio-p5-visual-top > p {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;
    line-height: 1.65;
}

/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 575.98px) {

    .portfolio-p5 .portfolio-p5-visual-top {
        padding: 1.5rem 1.3rem !important;
    }

    .portfolio-p5 .portfolio-visual-top-heading {
        gap: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .portfolio-p5 .portfolio-visual-top-heading
    .portfolio-p5-visual-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P3
   HERO CON FOTOGRAFÍA IZQUIERDA
   Y ENCABEZADO AZUL COMPACTO
   ========================================================= */

/* CAJA AZUL SUPERIOR */

.portfolio-p3 .portfolio-p3-visual-header {
    display: block !important;
    position: relative;

    min-height: 0 !important;
    height: auto !important;

    padding: 1.9rem 2rem 2rem !important;
}

/* FILA DE ETIQUETA E ICONO */

.portfolio-p3 .portfolio-visual-top-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
    margin-bottom: 1.6rem;
}

/* ETIQUETA NARANJA */

.portfolio-p3 .portfolio-visual-top-heading
.portfolio-p3-visual-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;
    max-width: none;

    margin: 0 !important;
    line-height: 1.4;
}

/* ICONO SUPERIOR DERECHO */

.portfolio-p3 .portfolio-visual-top-heading
.portfolio-p3-visual-symbol {
    position: static !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
    font-size: 1.7rem;
}

/* TÍTULO */

.portfolio-p3 .portfolio-p3-visual-header h3 {
    width: 100%;
    max-width: 100%;

    margin: 0 0 0.8rem !important;

    font-size: clamp(1.4rem, 2vw, 1.75rem);
    line-height: 1.3;
}

/* DESCRIPCIÓN */

.portfolio-p3 .portfolio-p3-visual-header > p {
    width: 100%;
    max-width: 100%;

    margin: 0 !important;
    line-height: 1.65;
}

/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 575.98px) {

    .portfolio-p3 .portfolio-p3-visual-header {
        padding: 1.5rem 1.3rem !important;
    }

    .portfolio-p3 .portfolio-visual-top-heading {
        gap: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .portfolio-p3 .portfolio-visual-top-heading
    .portfolio-p3-visual-symbol {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }

}

/* =========================================================
   ACREDUCA - P3
   UNIFICAR ENCABEZADO AZUL CON P1, P4 Y P5
   ========================================================= */

/* ENCABEZADO HORIZONTAL */
.portfolio-p3 .portfolio-p3-visual-header
.portfolio-visual-top-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;
    margin-bottom: 1.6rem;
}

/* ETIQUETA NARANJA: TRANSFORMACIÓN EDUCATIVA */
.portfolio-p3 .portfolio-p3-visual-header
.portfolio-visual-top-heading
.portfolio-p3-visual-eyebrow {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;

    flex: 1 1 auto;
    max-width: none;

    margin: 0 !important;

    color: #ff7a00 !important;

    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.4;
}

/* ICONO PEQUEÑO JUNTO AL TEXTO NARANJA */
.portfolio-p3 .portfolio-p3-visual-header
.portfolio-visual-top-heading
.portfolio-p3-visual-eyebrow i {
    color: #ff7a00 !important;
    font-size: 0.9rem;
}

/* ICONO GRANDE SUPERIOR DERECHO */
.portfolio-p3 .portfolio-p3-visual-header
.portfolio-visual-top-heading
.portfolio-p3-visual-symbol {
    position: static !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 15px;

    background: rgba(255, 255, 255, 0.12);

    color: #ffffff !important;
    font-size: 1.7rem;
}

/* CONSERVAR EL ICONO GRANDE BLANCO */
.portfolio-p3 .portfolio-p3-visual-symbol i {
    color: #ffffff !important;
}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p3 .portfolio-p3-visual-header
    .portfolio-visual-top-heading {
        gap: 0.8rem;
        margin-bottom: 1.3rem;
    }

    .portfolio-p3 .portfolio-p3-visual-header
    .portfolio-visual-top-heading
    .portfolio-p3-visual-symbol {
        flex-basis: 48px;

        width: 48px;
        height: 48px;

        font-size: 1.35rem;
    }
}

/* =========================================================
   ACREDUCA - P3
   ICONO IZQUIERDO Y ESPACIADO DEL ENCABEZADO
   ========================================================= */

.portfolio-p3 .portfolio-p3-visual-header {
    padding: 2.5rem 2rem 2rem !important;
}

/* Encabezado horizontal */
.portfolio-p3 .portfolio-visual-top-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    gap: 1rem !important;
    margin-bottom: 1.8rem !important;
}

/* Icono a la izquierda */
.portfolio-p3 .portfolio-visual-top-heading
.portfolio-p3-visual-symbol {
    position: static !important;

    order: 0;

    display: flex !important;
    align-items: center;
    justify-content: center;

    flex: 0 0 60px;

    width: 60px;
    height: 60px;

    margin: 0 !important;
}

/* Etiqueta naranja a la derecha del icono */
.portfolio-p3 .portfolio-visual-top-heading
.portfolio-p3-visual-eyebrow {
    order: 1;

    flex: 0 1 auto;

    margin: 0 !important;
    max-width: none;

    color: #ff7a00 !important;
}

/* Espacio entre encabezado y título */
.portfolio-p3 .portfolio-p3-visual-header h3 {
    margin-top: 0 !important;
    margin-bottom: 0.85rem !important;
}

/* Móviles */
@media (max-width: 575.98px) {

    .portfolio-p3 .portfolio-p3-visual-header {
        padding: 2rem 1.3rem 1.6rem !important;
    }

    .portfolio-p3 .portfolio-visual-top-heading {
        gap: 0.75rem !important;
        margin-bottom: 1.4rem !important;
    }

    .portfolio-p3 .portfolio-visual-top-heading
    .portfolio-p3-visual-symbol {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }
}

/* =========================================================
   ACREDUCA - P3
   ALTURA Y CENTRADO VERTICAL DEL HERO
   ========================================================= */

@media (min-width: 992px) {

    .portfolio-p3 .portfolio-hero {
        display: flex;
        align-items: center;

        min-height: calc(100svh - 76px);

        padding-top: 110px !important;
        padding-bottom: 130px !important;
    }

    .portfolio-p3 .portfolio-hero > .container {
        width: 100%;
    }

    .portfolio-p3 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    .portfolio-p3 .portfolio-hero-content {
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 991.98px) {

    .portfolio-p3 .portfolio-hero {
        min-height: auto;
        padding-top: 65px !important;
        padding-bottom: 80px !important;
    }

    .portfolio-p3 .portfolio-hero-content {
        transform: none !important;
    }
}

@media (max-width: 575.98px) {

    .portfolio-p3 .portfolio-hero {
        padding-top: 45px !important;
        padding-bottom: 65px !important;
    }
}

/* =========================================================
   ACREDUCA - P3
   REESTRUCTURACIÓN DE PROYECTOS EDUCATIVOS
   ========================================================= */

/* ANCLAS Y ESPACIADO */

.portfolio-p3 .acreduca-p3-projects,
.portfolio-p3 .acreduca-p3-models-section {
    scroll-margin-top: 90px;
}

.portfolio-p3 #revision-modelos-p3 {
    scroll-margin-top: 110px;
}

/* ==========================================
   SECCIÓN DOS PROYECTOS
   ========================================== */

.portfolio-p3 .acreduca-p3-projects {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: #f7f8fd;
}

.portfolio-p3 .acreduca-p3-project-card {
    display: flex;
    flex-direction: column;

    height: 100%;
    padding: 2.2rem;

    border: 1px solid #dce3f2;
    border-radius: 22px;

    background: #ffffff;
    box-shadow: 0 10px 28px rgba(24, 30, 109, 0.035);
}

.portfolio-p3 .acreduca-p3-project-card-eduten {
    border-color: rgba(255, 122, 0, 0.3);
    background: #fffaf6;
}

.portfolio-p3 .acreduca-p3-project-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

    margin-bottom: 1.5rem;
}

.portfolio-p3 .acreduca-p3-project-label {
    color: #ee7100;

    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.07em;
}

.portfolio-p3 .acreduca-p3-project-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    border-radius: 14px;

    background: #eef0fa;
    color: #181e6d;

    font-size: 1.5rem;
}

.portfolio-p3 .acreduca-p3-project-card h3 {
    margin: 0 0 1rem;

    color: #181e6d;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
}

.portfolio-p3 .acreduca-p3-project-card p {
    margin-bottom: 1rem;

    color: #53617e;
    font-size: 0.96rem;
    line-height: 1.8;
}

.portfolio-p3 .acreduca-p3-project-subtitle {
    color: #181e6d !important;
    font-weight: 700;
}

.portfolio-p3 .acreduca-p3-project-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;

    margin-top: auto;
    padding-top: 1.3rem;

    color: #586585;

    font-size: 0.83rem;
    font-weight: 600;
}

.portfolio-p3 .acreduca-p3-project-meta i {
    color: #ff7a00;
    font-size: 1.1rem;
}

.portfolio-p3 .acreduca-p3-project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;

    align-self: flex-start;

    margin-top: 1.5rem;
    padding: 0.85rem 1.35rem;

    border-radius: 50px;

    background: #181e6d;
    color: #ffffff;

    font-size: 0.89rem;
    font-weight: 700;
    text-decoration: none;

    transition: background-color 0.2s ease;
}

.portfolio-p3 .acreduca-p3-project-link:hover {
    background: #303b91;
    color: #ffffff;
}

.portfolio-p3 .acreduca-p3-project-card-eduten
.acreduca-p3-project-link {
    background: #ff7a00;
}

.portfolio-p3 .acreduca-p3-project-card-eduten
.acreduca-p3-project-link:hover {
    background: #df6a00;
}

.portfolio-p3 .acreduca-p3-project-link:focus-visible {
    outline: 3px solid #ff7a00;
    outline-offset: 4px;
}

/* ==========================================
   PROYECTO REVISIÓN DE MODELOS
   ========================================== */

.portfolio-p3 .acreduca-p3-models-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.portfolio-p3 .acreduca-p3-models-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;

    margin-bottom: 4rem;
    padding: 2.2rem 2.5rem;

    border: 1px solid #dce3f2;
    border-left: 5px solid #ff7a00;
    border-radius: 18px;

    background: #f7f8fd;
}

.portfolio-p3 .acreduca-p3-models-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    flex: 0 0 64px;

    border-radius: 15px;

    background: #181e6d;
    color: #ffffff;
    font-size: 1.65rem;
}

.portfolio-p3 .acreduca-p3-models-intro-content {
    flex: 1;
    min-width: 0;
}

.portfolio-p3 .acreduca-p3-models-intro h2 {
    margin: 0.7rem 0 1rem;

    color: #181e6d;

    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.3;
}

.portfolio-p3 .acreduca-p3-models-intro p {
    margin: 0;

    color: #53617e;
    font-size: 0.97rem;
    line-height: 1.8;
}

.portfolio-p3 .acreduca-p3-models-heading {
    margin-bottom: 2.5rem;
}

/* ==========================================
   MÓVILES
   ========================================== */

@media (max-width: 767.98px) {

    .portfolio-p3 .acreduca-p3-projects,
    .portfolio-p3 .acreduca-p3-models-section {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .portfolio-p3 .acreduca-p3-project-card {
        padding: 1.6rem;
        border-radius: 17px;
    }

    .portfolio-p3 .acreduca-p3-models-intro {
        flex-direction: column;
        gap: 1rem;

        margin-bottom: 2.5rem;
        padding: 1.5rem;
    }

    .portfolio-p3 .acreduca-p3-project-link {
        width: 100%;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P4
   ALTURA Y CENTRADO VERTICAL DEL HERO
   ========================================================= */

/* ESCRITORIO */
@media (min-width: 992px) {

    .portfolio-p4 .portfolio-hero {
        display: flex;
        align-items: center;

        /* Evitar que la siguiente sección aparezca tan pronto */
        min-height: calc(100svh - 76px);

        /* Mayor espacio alrededor de las dos columnas */
        padding-top: 110px !important;
        padding-bottom: 130px !important;
    }

    /* Mantener el contenedor ocupando el ancho disponible */
    .portfolio-p4 .portfolio-hero > .container {
        width: 100%;
    }

    /* Centrar ambas columnas verticalmente */
    .portfolio-p4 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Eliminar desplazamientos anteriores */
    .portfolio-p4 .portfolio-hero-content {
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* TABLETS */
@media (min-width: 576px) and (max-width: 991.98px) {

    .portfolio-p4 .portfolio-hero {
        min-height: auto;

        padding-top: 65px !important;
        padding-bottom: 80px !important;
    }

    .portfolio-p4 .portfolio-hero-content {
        transform: none !important;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p4 .portfolio-hero {
        min-height: auto;

        padding-top: 45px !important;
        padding-bottom: 65px !important;
    }

    .portfolio-p4 .portfolio-hero-content {
        transform: none !important;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P5
   ALTURA Y CENTRADO VERTICAL DEL HERO
   ========================================================= */

/* ESCRITORIO */
@media (min-width: 992px) {

    .portfolio-p5 .portfolio-hero {
        display: flex;
        align-items: center;

        /* Altura mínima considerando el navbar */
        min-height: calc(100svh - 76px);

        /* Más espacio arriba y abajo del contenido */
        padding-top: 110px !important;
        padding-bottom: 130px !important;
    }

    /* Contenedor con ancho completo */
    .portfolio-p5 .portfolio-hero > .container {
        width: 100%;
    }

    /* Centrado vertical de ambas columnas */
    .portfolio-p5 .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Eliminar desplazamientos anteriores */
    .portfolio-p5 .portfolio-hero-content {
        transform: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* TABLETS */
@media (min-width: 576px) and (max-width: 991.98px) {

    .portfolio-p5 .portfolio-hero {
        min-height: auto;

        padding-top: 65px !important;
        padding-bottom: 80px !important;
    }

    .portfolio-p5 .portfolio-hero-content {
        transform: none !important;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .portfolio-p5 .portfolio-hero {
        min-height: auto;

        padding-top: 45px !important;
        padding-bottom: 65px !important;
    }

    .portfolio-p5 .portfolio-hero-content {
        transform: none !important;
    }

}

/* =========================================================
   ACREDUCA - PORTAFOLIO P2
   ALTURA Y CENTRADO VERTICAL DEL HERO
   ========================================================= */

/* ESCRITORIO */
@media (min-width: 992px) {

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero {
        display: flex;
        align-items: center;

        /* Altura mínima descontando el navbar */
        min-height: calc(100svh - 76px);

        /* Espaciado vertical */
        padding-top: 110px !important;
        padding-bottom: 130px !important;
    }

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero > .container {
        width: 100%;
    }

    /* Centrar ambas columnas */
    .acreduca-portfolio-page.portfolio-p2
    .portfolio-hero > .container > .row {
        align-items: center !important;
    }

    /* Eliminar desplazamientos del contenido izquierdo */
    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero-content {
        transform: none !important;

        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

}

/* TABLETS */
@media (min-width: 576px) and (max-width: 991.98px) {

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero {
        min-height: auto;

        padding-top: 65px !important;
        padding-bottom: 80px !important;
    }

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero-content {
        transform: none !important;
    }

}

/* MÓVILES */
@media (max-width: 575.98px) {

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero {
        min-height: auto;

        padding-top: 45px !important;
        padding-bottom: 65px !important;
    }

    .acreduca-portfolio-page.portfolio-p2 .portfolio-hero-content {
        transform: none !important;
    }

}
