/* ======================================================
   PLANS PAGE
====================================================== */

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


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

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

.plans-hero-grid {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: center;
    min-height: 520px;
    gap: 2rem;
}

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

.plans-hero-content h1 span {
    display: block;
    color: #009640;
}

.plans-hero-content p {
    max-width: 560px;
    font-size: 1.12rem;
    line-height: 1.8;
    color: #061933;
    font-weight: 600;
    margin-bottom: 2rem;
}

.plans-hero-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 620px;
}

.plans-hero-features article {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}

.hero-feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.hero-feature-icon i {
    font-size: 1.55rem;
    color: #fff;
}

.plans-hero-features span {
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.25;
    color: #061f16;
    max-width: none;
}

.hero-feature-icon.green {
    background: #009640;
}

.hero-feature-icon.yellow {
    background: #f6b800;
}

.hero-feature-icon.purple {
    background: #7c3aed;
}
.plans-hero-features span {
    max-width: 150px;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.3;
    color: #061f16;
}

.plans-hero-image {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.plans-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* ======================================================
   PLANES
====================================================== */

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

.plans-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.plans-heading > div:first-child {
    flex: 1;
}

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

.plans-heading h2 i,
.plans-table-section h2 i {
    color: #009640;
}

.plans-heading p {
    margin: 0;
    color: #061933;
    font-weight: 600;
}

.billing-switch {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-weight: 700;
    color: #061933;
}

.billing-switch button {
    width: 46px;
    height: 24px;
    border: 0;
    border-radius: 999px;
    background: #16a34a;
    padding: 3px;
}

.billing-switch button span {
    display: block;
    width: 18px;
    height: 18px;
    margin-left: auto;
    border-radius: 50%;
    background: #fff;
}

.billing-switch strong {
    background: #dcfce7;
    color: #15803d;
    padding: .45rem .7rem;
    border-radius: 999px;
    font-size: .85rem;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.plan-card {
    min-height: 600px;
    background: #fff;
    border: 1px solid #dfe6ee;
    border-radius: 22px;
    padding: 2.4rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .04);
}

.plan-card.pro {
    border-color: #009640;
    box-shadow: 0 18px 45px rgba(0, 150, 64, .12);
}

.plan-label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #009640;
    color: #fff;
    font-weight: 900;
    padding: .45rem;
    font-size: .85rem;
}

.plan-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 1.2rem;
}

.plan-icon i {
    font-size: 2rem;
}

.green-light {
    background: #e7f8ea;
    color: #15803d;
}

.yellow-light {
    background: #fff4cf;
    color: #f6a700;
}

.purple-light {
    background: #ede2ff;
    color: #7c3aed;
}

.plan-card h3 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #009640;
    margin-bottom: .8rem;
}

.plan-card.institution h3,
.plan-card.institution .custom-price {
    color: #7c3aed;
}

.plan-desc {
    color: #061933;
    font-weight: 600;
    line-height: 1.6;
    min-height: 50px;
}

.plan-price {
    font-size: 2.6rem;
    font-weight: 900;
    color: #009640;
    margin: 1rem 0 .4rem;
}

.plan-price span {
    display: block;
    font-size: .9rem;
    color: #061933;
}

.custom-price {
    font-size: 1.8rem;
}

.plan-small,
.trial-text {
    color: #061933;
    font-size: .9rem;
    font-weight: 600;
}

.plan-badge {
    display: inline-block;
    background: #dcfce7;
    color: #15803d;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
}

.btn-plan-outline,
.btn-plan-primary,
.btn-plan-purple {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    min-height: 48px;
    border-radius: 10px;
    margin: 1.3rem auto 1.5rem;
    font-weight: 900;
    text-decoration: none;
}

.btn-plan-outline {
    border: 1px solid #009640;
    color: #009640;
}

.btn-plan-primary {
    background: #009640;
    color: #fff;
}

.btn-plan-purple {
    border: 1px solid #7c3aed;
    color: #7c3aed;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}

.plan-card li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: .85rem;
    color: #061933;
    font-weight: 600;
}

.plan-card li::before {
    content: "\F26A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .1rem;
    color: #009640;
}

.plan-card.institution li::before {
    color: #7c3aed;
}


/* ======================================================
   TABLA COMPARATIVA
====================================================== */

.plans-table-section {
    padding: 1rem 0 2rem;
}

.plans-table-section h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #072b1c;
    margin-bottom: 1rem;
}

.plans-table-wrapper {
    overflow-x: auto;
    border: 1px solid #dfe6ee;
    border-radius: 18px;
    background: #fff;
}

.plans-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.plans-table th,
.plans-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e8edf3;
    text-align: center;
    font-weight: 600;
    color: #061933;
}

.plans-table th:first-child,
.plans-table td:first-child {
    text-align: left;
    font-weight: 900;
}

.plans-table thead {
    background: #f5faf6;
}

.plans-table tr:last-child td {
    border-bottom: 0;
}

.check.green {
    color: #009640;
}

.check.purple {
    color: #7c3aed;
}


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

.plans-help-section {
    padding: 1rem 0 4rem;
}

.plans-help-card {
    background: linear-gradient(135deg, #f0fff4 0%, #f8fff6 100%);
    border: 1px solid #d8eadc;
    border-radius: 24px;
    display: grid;
    grid-template-columns: 170px 1fr auto 260px;
    align-items: center;
    gap: 1.5rem;
    padding: 0 2rem;
    overflow: hidden;
}

.help-image {
    height: 150px;
    align-self: end;
}

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

.help-content h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: #072b1c;
    margin-bottom: .5rem;
}

.help-content p {
    margin: 0;
    color: #061933;
    font-weight: 600;
    line-height: 1.6;
}

.btn-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    border: 1px solid #007a3d;
    color: #007a3d;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.4rem;
    font-weight: 900;
    text-decoration: none;
}

.guarantee-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: .9rem;
}

.guarantee-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e7f8ea;
    color: #009640;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.guarantee-icon i {
    font-size: 1.5rem;
}

.guarantee-card h3 {
    font-size: 1rem;
    font-weight: 900;
    margin-bottom: .25rem;
    color: #061933;
}

.guarantee-card p {
    margin: 0;
    font-size: .82rem;
    line-height: 1.5;
    color: #061933;
}


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

@media (max-width: 1200px) {
    .plans-hero-grid,
    .plans-grid,
    .plans-help-card {
        grid-template-columns: 1fr;
    }

    .plans-hero-image {
        min-height: 420px;
    }

    .plans-heading {
        flex-direction: column;
    }

    .plans-help-card {
        text-align: center;
        padding: 1.5rem;
    }

    .help-image {
        height: 160px;
    }

    .guarantee-card {
        justify-content: center;
    }
}

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

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

    .plans-hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .plans-hero-features {
        justify-content: center;
    }

    .plans-grid {
        gap: 1.2rem;
    }

    .plan-card {
        padding: 1.7rem;
    }

    .billing-switch {
        flex-wrap: wrap;
        justify-content: center;
    }

    .plans-help-card {
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .plans-hero-content h1 {
        font-size: 2.6rem;
    }

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

    .plans-hero-features article {
        width: 100%;
        justify-content: center;
    }

    .plan-price {
        font-size: 2.2rem;
    }

    .plans-table-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .plans-hero-features {
        grid-template-columns: 1fr;
        max-width: 360px;
        margin: 0 auto;
    }

    .plans-hero-features article {
        justify-content: flex-start;
    }
}