@import url("./base.css");

/* =========================
   HERO CONVENIOS SIMPLE
========================= */

.agreements-simple-hero {
    position: relative;
    width: 100%;
    height: clamp(630px, 72vw, 930px);
    overflow: hidden;
    background: var(--isatec-light);
}

.agreements-simple-picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.agreements-simple-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: fill;
    object-position: center;
}

/* =========================
   BENEFICIOS DE LOS CONVENIOS
========================= */

.agreements-benefits-section {
    position: relative;
    width: 100%;
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at top right, rgba(33, 212, 248, 0.13), transparent 30%),
        radial-gradient(circle at bottom left, rgba(30, 34, 255, 0.08), transparent 34%),
        linear-gradient(180deg, var(--isatec-white), var(--isatec-light));
    overflow: hidden;
}

.agreements-benefits-section::before {
    content: "";
    position: absolute;
    top: -150px;
    left: -150px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
}

.agreements-benefits-section::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
}

.agreements-benefits-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* Encabezado */

.agreements-benefits-heading {
    width: min(880px, 100%);
    margin: 0 auto 3.2rem;
}

.agreements-benefits-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agreements-benefits-label::before,
.agreements-benefits-label::after {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--isatec-primary), var(--isatec-secondary));
}

.agreements-benefits-heading h2 {
    margin: 0;
    color: var(--isatec-dark);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.agreements-benefits-heading p {
    max-width: 780px;
    margin: 1rem auto 0;
    color: rgba(31, 41, 55, 0.72);
    font-size: 1rem;
    line-height: 1.75;
}

/* Cards */

.agreements-benefits-wrapper {
    position: relative;
}

.agreements-benefit-card {
    position: relative;
    height: 100%;
    min-height: 280px;
    padding: 1.5rem;
    border-radius: 30px;
    background: var(--isatec-white);
    border: 1px solid rgba(10, 27, 94, 0.06);
    box-shadow: 0 18px 45px rgba(10, 27, 94, 0.08);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agreements-benefit-card::before {
    content: "";
    position: absolute;
    top: -75px;
    right: -75px;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    background: rgba(33, 212, 248, 0.14);
    transition: transform 0.3s ease;
}

.agreements-benefit-card:hover {
    transform: translateY(-7px);
    border-color: rgba(30, 34, 255, 0.16);
    box-shadow: 0 28px 70px rgba(10, 27, 94, 0.15);
}

.agreements-benefit-card:hover::before {
    transform: scale(1.18);
}

.agreements-benefit-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    color: var(--isatec-white);
    background: linear-gradient(135deg, var(--isatec-primary), var(--isatec-secondary));
    font-size: 1.45rem;
    box-shadow: 0 16px 34px rgba(30, 34, 255, 0.18);
}

.agreements-benefit-card h3 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: var(--isatec-dark);
    font-size: 1.12rem;
    line-height: 1.28;
    font-weight: 800;
}

.agreements-benefit-card p {
    position: relative;
    z-index: 2;
    margin: 0.85rem 0 0;
    color: rgba(31, 41, 55, 0.68);
    font-size: 0.92rem;
    line-height: 1.65;
}

/* =========================
   GRID DE CONVENIOS
========================= */

.agreements-grid-section {
    position: relative;
    width: 100%;
    padding: 5.5rem 0;
    background:
        radial-gradient(circle at top left, rgba(33, 212, 248, 0.12), transparent 30%),
        linear-gradient(180deg, var(--isatec-light), var(--isatec-white));
    overflow: hidden;
}

.agreements-grid-section::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
}

.agreements-grid-section::after {
    content: "";
    position: absolute;
    left: -180px;
    bottom: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
}

.agreements-grid-section .container-fluid {
    position: relative;
    z-index: 2;
}

/* Encabezado */

.agreements-grid-heading {
    width: min(900px, 100%);
    margin: 0 auto 3.2rem;
}

.agreements-grid-label {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1rem;
    color: var(--isatec-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agreements-grid-label::before,
.agreements-grid-label::after {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--isatec-primary), var(--isatec-secondary));
}

.agreements-grid-heading h2 {
    margin: 0;
    color: var(--isatec-dark);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.agreements-grid-heading p {
    max-width: 800px;
    margin: 1rem auto 0;
    color: rgba(31, 41, 55, 0.72);
    font-size: 1rem;
    line-height: 1.75;
}

/* Bloques */

.agreements-type-block {
    position: relative;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(10, 27, 94, 0.06);
    box-shadow: 0 22px 60px rgba(10, 27, 94, 0.09);
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.agreements-type-block + .agreements-type-block {
    margin-top: 2rem;
}

.agreements-type-block::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -110px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(33, 212, 248, 0.12);
    pointer-events: none;
}

.agreements-type-heading {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.agreements-type-heading span {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    color: var(--isatec-primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.agreements-type-heading span::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--isatec-primary), var(--isatec-secondary));
}

.agreements-type-heading h3 {
    margin: 0;
    color: var(--isatec-dark);
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.agreements-type-block .row {
    position: relative;
    z-index: 2;
}

/* Card compacta */

.agreement-logo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 210px;
    padding: 0.9rem;
    border-radius: 24px;
    background: var(--isatec-white);
    border: 1px solid rgba(10, 27, 94, 0.06);
    box-shadow: 0 14px 34px rgba(10, 27, 94, 0.08);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.agreement-logo-card:hover {
    transform: translateY(-6px);
    border-color: rgba(30, 34, 255, 0.16);
    box-shadow: 0 24px 55px rgba(10, 27, 94, 0.15);
}

.agreement-logo-card-static {
    cursor: default;
}

/* Logo */

.agreement-logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 135px;
    padding: 1rem;
    border-radius: 20px;
    background:
        radial-gradient(circle at top right, rgba(33, 212, 248, 0.12), transparent 35%),
        var(--isatec-light);
    border: 1px solid rgba(10, 27, 94, 0.05);
}

.agreement-logo {
    display: block;
    max-width: 100%;
    max-height: 105px;
    object-fit: contain;
    filter: grayscale(0.08);
    transition: transform 0.28s ease, filter 0.28s ease;
}

.agreement-logo-card:hover .agreement-logo {
    transform: scale(1.12);
    filter: grayscale(0);
}

/* Vigencia */

.agreement-logo-info {
    margin-top: 0.85rem;
    text-align: center;
}

.agreement-logo-info span {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    color: rgba(31, 41, 55, 0.68);
    font-size: 0.8rem;
    line-height: 1.35;
    font-weight: 800;
}

/* Icono de link */

.agreement-open-icon {
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: var(--isatec-white);
    background: var(--isatec-primary);
    font-size: 0.82rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

a.agreement-logo-card:hover .agreement-open-icon {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991.98px) {
    .agreements-simple-hero {
        height: 810px;
    }

    .agreements-benefits-section {
        padding: 4.5rem 0;
    }

    .agreements-benefits-heading {
        margin-bottom: 2.5rem;
    }

    .agreements-benefit-card {
        min-height: 240px;
        border-radius: 26px;
    }

    .agreements-grid-section {
        padding: 4.5rem 0;
    }

    .agreements-grid-heading {
        margin-bottom: 2.5rem;
    }

    .agreements-type-block {
        border-radius: 30px;
    }

    .agreement-logo-card {
        min-height: 205px;
    }

    .agreement-logo-box {
        min-height: 130px;
    }

    .agreement-logo {
        max-height: 100px;
    }
}

@media (max-width: 767.98px) {
    .agreements-simple-hero {
        height: 320px;
    }

    .agreements-simple-picture {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    .agreements-simple-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 575.98px) {
    .agreements-simple-hero {
        height: 280px;
    }

    .agreements-benefits-section {
        padding: 3.25rem 0;
    }

    .agreements-benefits-label {
        font-size: 0.7rem;
    }

    .agreements-benefits-label::before,
    .agreements-benefits-label::after {
        width: 22px;
    }

    .agreements-benefits-heading h2 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .agreements-benefits-heading p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .agreements-benefit-card {
        min-height: auto;
        padding: 1.25rem;
        border-radius: 24px;
    }

    .agreements-benefit-icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        font-size: 1.2rem;
    }

    .agreements-benefit-card h3 {
        font-size: 1rem;
    }

    .agreements-benefit-card p {
        font-size: 0.88rem;
    }

    .agreements-grid-section {
        padding: 3.25rem 0;
    }

    .agreements-grid-label {
        font-size: 0.7rem;
    }

    .agreements-grid-label::before,
    .agreements-grid-label::after {
        width: 22px;
    }

    .agreements-grid-heading h2 {
        font-size: 1.85rem;
        line-height: 1.12;
    }

    .agreements-grid-heading p {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .agreements-type-block {
        padding: 1rem;
        border-radius: 24px;
    }

    .agreements-type-block + .agreements-type-block {
        margin-top: 1.5rem;
    }

    .agreements-type-heading {
        margin-bottom: 1.15rem;
    }

    .agreements-type-heading span {
        font-size: 0.68rem;
    }

    .agreements-type-heading span::before {
        width: 22px;
    }

    .agreements-type-heading h3 {
        font-size: 1.35rem;
    }

    .agreement-logo-card {
        min-height: 185px;
        padding: 0.75rem;
        border-radius: 20px;
    }

    .agreement-logo-box {
        min-height: 110px;
        padding: 0.85rem;
        border-radius: 16px;
    }

    .agreement-logo {
        max-height: 82px;
    }

    .agreement-logo-info span {
        font-size: 0.72rem;
    }

    .agreement-open-icon {
        opacity: 1;
        transform: none;
        width: 28px;
        height: 28px;
        font-size: 0.76rem;
    }
}