/* ======================================================
   FEATURES PAGE
====================================================== */

.features-page {
    background: #fffdf8;
    color: #061f16;
}

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

.features-hero {
    padding: 4rem 0 2rem;
    overflow: hidden;
}

.features-hero-grid {
    display: grid;
    grid-template-columns: 43% 57%;
    align-items: center;
    min-height: 700px;
    gap: 1rem;
}

.features-hero-content {
    position: relative;
    z-index: 5;
}

/* TITULO */

.features-hero-content h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.02;
    font-weight: 900;
    color: #072b1c;
    letter-spacing: -0.05em;
    margin-bottom: 1.3rem;
}

.features-hero-content h1 span {
    display: block;
    color: #087c3b;
}

/* TEXTO */

.features-hero-content p {
    max-width: 570px;
    font-size: 1.08rem;
    line-height: 1.85;
    font-weight: 600;
    color: #061933;
    margin-bottom: 1.4rem;
}

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

.features-hero-image {
    position: relative;
    min-height: 700px;

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

    overflow: visible;
}

.features-hero-image img {
    width: 110%;
    height: auto;
    max-width: none;

    object-fit: contain;
    object-position: center;

    transform: translateX(10px) scale(1.08);
}

/* ======================================================
   MINI FEATURES
====================================================== */

.features-mini-card {
    position: relative;
    z-index: 9;

    width: calc(100% + 160px);

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(232, 237, 243, .9);

    border-radius: 26px;

    backdrop-filter: blur(16px);

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .10),
        0 10px 25px rgba(15, 23, 42, .06);

    margin: 2rem 0 1.6rem;
    overflow: hidden;
}

.features-mini-card article {
    display: flex;
    align-items: center;
    gap: .9rem;

    padding: 1.2rem;

    border-right: 1px solid #edf1f5;
}

.features-mini-card article:last-child {
    border-right: 0;
}

/* IMAGENES MINI FEATURES */

.mini-img {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

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

/* TEXTO MINI FEATURES */

.features-mini-card h3 {
    font-size: .92rem;
    font-weight: 900;
    color: #072b1c;
    margin: 0 0 .2rem;
}

.features-mini-card p {
    font-size: .78rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}

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

.features-actions {
    position: relative;
    z-index: 10;

    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-feature-primary,
.btn-feature-outline,
.btn-show-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;

    border-radius: 12px;
    padding: 1rem 1.5rem;

    font-weight: 900;
    text-decoration: none;

    transition: .25s ease;
}

.btn-feature-primary {
    background: #007a3d;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 122, 61, .22);
}

.btn-feature-primary:hover {
    background: #006631;
    color: #fff;
    transform: translateY(-2px);
}

.btn-feature-outline {
    background: #fff;
    color: #007a3d;
    border: 1px solid #007a3d;
}

.btn-feature-outline:hover {
    background: #f0fff5;
    color: #006631;
    transform: translateY(-2px);
}

.btn-feature-primary i,
.btn-feature-outline i {
    font-size: 1.05rem;
}

/* ======================================================
   FUNCIONALIDADES PRINCIPALES
====================================================== */

.main-features-section {
    padding: 2rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 900;
    color: #072b1c;
    margin-bottom: .5rem;
}

.section-heading p {
    color: #061933;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.7;
}

.main-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.3rem;
}

.feature-card {
    min-height: 260px;
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 20px;
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.feature-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;

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

    margin-bottom: 1rem;
}

.feature-icon i {
    font-size: 1.9rem;
}

/* COLORES */

.feature-icon.green {
    background: #dcfce7;
}

.feature-icon.green i {
    color: #15803d;
}

.feature-icon.yellow {
    background: #fef3c7;
}

.feature-icon.yellow i {
    color: #d97706;
}

.feature-icon.purple {
    background: #efe5ff;
}

.feature-icon.purple i {
    color: #7c3aed;
}

.feature-icon.blue {
    background: #dbeafe;
}

.feature-icon.blue i {
    color: #2563eb;
}

.feature-icon.pink {
    background: #ffe4ef;
}

.feature-icon.pink i {
    color: #db2777;
}

.feature-icon.orange {
    background: #ffedd5;
}

.feature-icon.orange i {
    color: #ea580c;
}

.feature-icon img,
.feature-image img,
.integrated-img img,
.cta-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #061933;
    margin-bottom: .7rem;
}

.feature-card p {
    max-width: 60%;
    color: #061933;
    font-size: .9rem;
    line-height: 1.6;
    font-weight: 500;
}

.feature-card a {
    color: #007a3d;
    font-weight: 900;
    text-decoration: none;
}

.feature-image {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 38%;
    height: 150px;
}


/* ======================================================
   MOSTRAR MÁS
====================================================== */

.show-more-box {
    margin: 2rem auto;
    max-width: 760px;
    text-align: center;
    background: #f0fff4;
    border: 1px solid #cfe9d7;
    border-radius: 22px;
    padding: 2rem;
}

.show-more-box h3 {
    font-size: 1.6rem;
    font-weight: 900;
    color: #072b1c;
}

.show-more-box p {
    color: #061933;
    font-weight: 600;
    line-height: 1.6;
}

.btn-show-more {
    background: #007a3d;
    color: #fff;
    border: 0;
    cursor: pointer;
}

/* ======================================================
   TODO INTEGRADO
====================================================== */

.integrated-section {
    padding: 2rem 0;
}

.integrated-box {
    background: #f5faf6;
    border-radius: 20px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.integrated-box article {
    display: flex;
    align-items: center;
    gap: .9rem;

    padding: 1rem;
    border-radius: 16px;

    transition: .25s ease;
}

.integrated-box article:hover {
    background: rgba(255, 255, 255, .7);
    transform: translateY(-3px);
}

.integrated-img {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    border-radius: 16px;
    background: #eaf7ed;

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

.integrated-img i {
    font-size: 1.8rem;
    color: #007a3d;
    line-height: 1;
}

.integrated-box h3 {
    font-size: .9rem;
    font-weight: 900;
    margin-bottom: .25rem;
}

.integrated-box p {
    font-size: .82rem;
    margin: 0;
    color: #061933;
}


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

.features-cta-section {
    padding: 1rem 0 4rem;
}

.features-cta {
    background: linear-gradient(135deg, #f0fff4 0%, #f8fff6 100%);
    border-radius: 40px;
    display: grid;
    grid-template-columns: 260px 1fr auto;
    align-items: center;
    gap: 2rem;
    padding: 0 3rem;
    overflow: hidden;
}

.cta-img {
    height: 170px;
    align-self: end;
}

.cta-text h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 900;
    color: #072b1c;
    margin-bottom: .6rem;
}

.cta-text p {
    color: #061933;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
    margin: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}


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

@media (max-width: 1400px) {
    .features-mini-card {
        width: calc(100% + 100px);
    }

    .features-hero-image img {
        width: 106%;
    }
}

@media (max-width: 1200px) {

    .features-hero-grid,
    .main-features-grid,
    .features-cta {
        grid-template-columns: 1fr;
    }

    .features-hero-grid {
        min-height: auto;
    }

    .features-mini-card {
        width: 100%;
    }

    .features-hero-image {
        min-height: 520px;
    }

    .features-hero-image img {
        width: 100%;
        transform: none;
    }

    .integrated-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-hero {
        padding: 2.5rem 0 1.5rem;
    }

    .features-hero-content {
        text-align: center;
    }

    .features-hero-content h1 {
        font-size: 3rem;
    }

    .features-mini-card {
        grid-template-columns: 1fr;
    }

    .features-mini-card article {
        border-right: 0;
        border-bottom: 1px solid #edf1f5;
    }

    .features-mini-card article:last-child {
        border-bottom: 0;
    }

    .features-actions {
        justify-content: center;
    }

    .features-hero-image {
        min-height: 360px;
    }

    .feature-card p {
        max-width: 100%;
    }

    .feature-image {
        position: static;
        width: 100%;
        height: 160px;
        margin-top: 1rem;
    }

    .integrated-box,
    .cta-buttons {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .features-cta {
        text-align: center;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .features-hero {
        padding: 2rem 0 1rem;
    }

    .features-hero-content h1 {
        font-size: 2.6rem;
    }

    .features-hero-image {
        min-height: 300px;
    }

    .integrated-box {
        grid-template-columns: 1fr;
    }
}