/* =====================================================
   PORTAFOLIO PYMEVI
===================================================== */


/* =====================================================
   HERO
===================================================== */

.portfolio-hero {
    position: relative;
    overflow: hidden;
    padding: 160px 0 130px;
    background:
        linear-gradient(
            135deg,
            #f4f9ff 0%,
            #ffffff 50%,
            #eef7ff 100%
        );
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
}


/* =====================================================
   FONDOS DECORATIVOS
===================================================== */

.portfolio-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.glow-1 {
    width: 650px;
    height: 650px;
    top: -350px;
    right: -180px;
    background: rgba(13, 98, 173, 0.08);
}

.glow-2 {
    width: 450px;
    height: 450px;
    bottom: -260px;
    left: -180px;
    background: rgba(29, 155, 240, 0.07);
}


/* =====================================================
   ETIQUETAS
===================================================== */

.portfolio-tag,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #0d62ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.portfolio-tag span,
.section-label span {
    width: 38px;
    height: 3px;
    background: #0d62ad;
    border-radius: 10px;
}


/* =====================================================
   HERO TITULO
===================================================== */

.portfolio-hero h1 {
    max-width: 850px;
    margin-bottom: 25px;
    color: #172a3d;
    font-size: clamp(3rem, 6vw, 5.3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2.5px;
}

.portfolio-hero h1 strong {
    display: block;
    color: #0d62ad;
}

.portfolio-hero p {
    max-width: 700px;
    margin-bottom: 38px;
    color: #64748b;
    font-size: 17px;
    line-height: 1.9;
}


/* =====================================================
   BOTONES HERO
===================================================== */

.portfolio-hero-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.portfolio-primary-btn,
.portfolio-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 28px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.portfolio-primary-btn {
    gap: 14px;
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        #0d62ad,
        #084b85
    );
    box-shadow: 0 15px 30px rgba(13, 98, 173, 0.20);
}

.portfolio-primary-btn span {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.portfolio-primary-btn:hover {
    color: #ffffff !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(13, 98, 173, 0.28);
}

.portfolio-primary-btn:hover span {
    transform: translateY(4px);
}

.portfolio-secondary-btn {
    color: #0d62ad !important;
    background: #ffffff;
    border: 1px solid #dce8f3;
}

.portfolio-secondary-btn:hover {
    color: #0d62ad !important;
    background: #f6fbff;
    border-color: #0d62ad;
    transform: translateY(-3px);
}


/* =====================================================
   INTRODUCCION
===================================================== */

.portfolio-intro {
    padding: 130px 0;
    background: #ffffff;
}

.portfolio-intro h2,
.portfolio-section-header h2 {
    margin-bottom: 25px;
    color: #1e293b;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.portfolio-intro h2 strong,
.portfolio-section-header h2 strong {
    display: block;
    color: #0d62ad;
}

.portfolio-intro p {
    max-width: 620px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
}


/* =====================================================
   ESTADISTICAS
===================================================== */

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.portfolio-stat {
    position: relative;
    min-height: 190px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e7eef5;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-stat::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    right: -70px;
    bottom: -70px;
    background: rgba(13, 98, 173, 0.05);
    border-radius: 50%;
}

.portfolio-stat:hover {
    border-color: rgba(13, 98, 173, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

.portfolio-stat strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-bottom: 15px;
    color: #0d62ad;
    font-size: 45px;
    font-weight: 800;
    line-height: 1;
}

.portfolio-stat span {
    position: relative;
    z-index: 2;
    display: block;
    max-width: 140px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}


/* =====================================================
   PROYECTOS
===================================================== */

.portfolio-projects {
    padding: 130px 0;
    background: #f6f9fc;
}

.portfolio-section-header {
    max-width: 780px;
    margin: 0 auto 70px;
    text-align: center;
}

.portfolio-section-header .section-label {
    justify-content: center;
}

.portfolio-section-header > p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.85;
}


/* GRID */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}


/* =====================================================
   TARJETAS PROYECTOS
===================================================== */

.portfolio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.35s ease;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -150px;
    bottom: -150px;
    background: rgba(13, 98, 173, 0.04);
    border-radius: 50%;
    transition: transform 0.5s ease;
}

.portfolio-card:hover {
    border-color: rgba(13, 98, 173, 0.28);
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.10);
}

.portfolio-card:hover::after {
    transform: scale(1.7);
}


/* PROYECTO DESTACADO */

.featured-project {
    color: #ffffff;
    background: linear-gradient(
        145deg,
        #0d62ad,
        #063c6c
    );
    border-color: transparent;
}

.featured-project::after {
    background: rgba(255, 255, 255, 0.06);
}

.featured-project .project-category,
.featured-project p {
    color: rgba(255, 255, 255, 0.70);
}

.featured-project h3 {
    color: #ffffff;
}

.featured-project .project-number {
    color: rgba(255, 255, 255, 0.15);
}

.featured-project .project-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.featured-project .project-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.12);
}

.featured-project .project-link {
    color: #ffffff !important;
}


/* =====================================================
   HEADER TARJETA
===================================================== */

.portfolio-card-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #0d62ad;
    background: rgba(13, 98, 173, 0.09);
    border-radius: 17px;
    font-size: 22px;
    transition: all 0.3s ease;
}

.portfolio-card:hover .project-icon {
    color: #ffffff;
    background: #0d62ad;
    transform: rotate(-5deg) scale(1.05);
}

.project-number {
    color: #d5e4f1;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}


/* =====================================================
   CONTENIDO TARJETA
===================================================== */

.project-category {
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    color: #0d62ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.portfolio-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 16px;
    color: #1e293b;
    font-size: 25px;
    font-weight: 800;
}

.portfolio-card p {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}


/* TAGS */

.project-tags {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.project-tags span {
    padding: 7px 11px;
    color: #516579;
    background: #f6f9fc;
    border: 1px solid #e4edf5;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}


/* LINK */

.project-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    color: #0d62ad !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
}

.project-link span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.project-link:hover span {
    transform: translateX(6px);
}


/* =====================================================
   SECTORES
===================================================== */

.portfolio-sectors {
    padding: 130px 0;
    background: #ffffff;
}

.sectors-header {
    margin-bottom: 55px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.sector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e8eef5;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.sector-item i {
    margin-bottom: 18px;
    color: #0d62ad;
    font-size: 28px;
    transition: all 0.3s ease;
}

.sector-item span {
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.sector-item:hover {
    background: #ffffff;
    border-color: rgba(13, 98, 173, 0.30);
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.sector-item:hover i {
    transform: scale(1.15);
}


/* =====================================================
   CTA
===================================================== */

.portfolio-cta {
    padding: 100px 0;
    background: #ffffff;
}

.portfolio-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 70px;
    background: linear-gradient(
        135deg,
        #0d62ad,
        #063b69
    );
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(13, 98, 173, 0.22);
}

.portfolio-cta-content > div:first-child {
    max-width: 700px;
}

.portfolio-cta-content > div:first-child > span {
    display: block;
    margin-bottom: 15px;
    color: #9edcff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.portfolio-cta h2 {
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
}

.portfolio-cta h2 strong {
    display: block;
    color: #b7e7ff;
}

.portfolio-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    line-height: 1.85;
}


/* BOTONES CTA */

.portfolio-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.cta-main,
.cta-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    min-height: 55px;
    padding: 0 24px;
    border-radius: 13px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.cta-main {
    gap: 12px;
    color: #0d62ad !important;
    background: #ffffff;
}

.cta-main:hover {
    color: #0d62ad !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.cta-main span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-main:hover span {
    transform: translateX(5px);
}

.cta-secondary {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.cta-secondary:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}


/* =====================================================
   RESPONSIVE TABLET
===================================================== */

@media (max-width: 991px) {

    .portfolio-hero {
        padding: 140px 0 100px;
    }

    .portfolio-intro,
    .portfolio-projects,
    .portfolio-sectors {
        padding: 100px 0;
    }

    .portfolio-stats {
        margin-top: 50px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectors-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-cta-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

}


/* =====================================================
   RESPONSIVE MOBILE
===================================================== */

@media (max-width: 767px) {

    .portfolio-hero {
        padding: 115px 0 75px;
    }

    .portfolio-hero h1 {
        font-size: 2.7rem;
        letter-spacing: -1.5px;
    }

    .portfolio-hero p {
        font-size: 16px;
    }

    .portfolio-intro,
    .portfolio-projects,
    .portfolio-sectors {
        padding: 75px 0;
    }

    .portfolio-intro h2,
    .portfolio-section-header h2 {
        font-size: 2.3rem;
    }

    .portfolio-stats {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .portfolio-stat {
        min-height: 160px;
        padding: 24px;
    }

    .portfolio-stat strong {
        font-size: 36px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card {
        min-height: auto;
        padding: 30px 25px;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-cta {
        padding: 65px 0;
    }

    .portfolio-cta-content {
        padding: 45px 25px;
        gap: 35px;
        border-radius: 24px;
    }

    .portfolio-cta-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cta-main,
    .cta-secondary {
        width: 100%;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 480px) {

    .portfolio-hero h1 {
        font-size: 2.35rem;
    }

    .portfolio-tag,
    .section-label {
        font-size: 9px;
        letter-spacing: 1.3px;
    }

    .portfolio-hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .portfolio-primary-btn,
    .portfolio-secondary-btn {
        width: 100%;
    }

    .portfolio-stats {
        grid-template-columns: 1fr;
    }

    .portfolio-stat {
        min-height: 135px;
    }

    .portfolio-section-header {
        margin-bottom: 45px;
    }

}