/* ================================
   MEDICORP - SERVICIOS
================================ */

.services-hero {
    position: relative;
    padding: 120px 0 95px;
    background:
        radial-gradient(circle at top right, rgba(14, 77, 146, 0.16), transparent 34%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 55%, #eef6ff 100%);
    overflow: hidden;
}

.services-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -160px;
    bottom: -190px;
    background: rgba(14, 77, 146, 0.08);
    border-radius: 50%;
}

.services-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    left: -70px;
    top: 80px;
    background: rgba(46, 160, 210, 0.10);
    border-radius: 50%;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.services-hero-content {
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.services-badge,
.pre-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(14, 77, 146, 0.10);
    color: #0E4D92;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.services-hero h1 {
    margin: 0;
    color: #102A43;
    font-size: clamp(2.2rem, 5vw, 4.35rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.services-hero p {
    max-width: 720px;
    margin: 24px auto 0;
    color: #52616B;
    font-size: 1.12rem;
    line-height: 1.8;
}

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

.services-grid-section {
    padding: 95px 0;
    background: #ffffff;
}

.section-header {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.section-header h2 {
    margin: 0;
    color: #102A43;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-header p {
    margin: 18px auto 0;
    color: #5B6770;
    font-size: 1.05rem;
    line-height: 1.75;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 385px;
    padding: 34px 28px 30px;
    background: #ffffff;
    border: 1px solid rgba(14, 77, 146, 0.10);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14, 77, 146, 0.065), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 77, 146, 0.24);
    box-shadow: 0 26px 60px rgba(16, 42, 67, 0.13);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    position: relative;
    z-index: 1;
    width: 62px;
    height: 62px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #0E4D92, #2EA0D2);
    color: #ffffff;
    font-size: 1.55rem;
    box-shadow: 0 14px 30px rgba(14, 77, 146, 0.22);
}

.service-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #102A43;
    font-size: 1.22rem;
    line-height: 1.35;
    font-weight: 850;
}

.service-card p {
    position: relative;
    z-index: 1;
    margin: 16px 0 24px;
    color: #5B6770;
    font-size: 0.98rem;
    line-height: 1.72;
}

.service-card a {
    position: relative;
    z-index: 1;
    margin-top: auto;
    color: #0E4D92;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.service-card a::after {
    content: " →";
    transition: margin-left 0.2s ease;
}

.service-card a:hover::after {
    margin-left: 5px;
}

/* ================================
   BENEFICIOS
================================ */

.services-benefits {
    position: relative;
    padding: 95px 0;
    background: linear-gradient(135deg, #0E4D92 0%, #123E6F 100%);
    overflow: hidden;
}

.services-benefits::before {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -220px;
    top: -180px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.services-benefits::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    left: -150px;
    bottom: -150px;
    border-radius: 50%;
    background: rgba(46, 160, 210, 0.18);
}

.services-benefits .container {
    position: relative;
    z-index: 2;
}

.services-benefits .pre-title {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.services-benefits .section-header h2,
.services-benefits .benefit-item h3 {
    color: #ffffff;
}

.services-benefits .section-header p {
    color: rgba(255, 255, 255, 0.78);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.benefit-item {
    padding: 30px 26px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.benefit-item i {
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #ffffff;
    color: #0E4D92;
    font-size: 1.35rem;
}

.benefit-item h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 850;
}

.benefit-item p {
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

.services-cta {
    padding: 95px 0;
    background: #f7fbff;
}

.cta-box {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 58px 42px;
    text-align: center;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(46, 160, 210, 0.16), transparent 35%),
        #ffffff;
    border: 1px solid rgba(14, 77, 146, 0.10);
    box-shadow: 0 24px 65px rgba(16, 42, 67, 0.10);
    overflow: hidden;
}

.cta-box h2 {
    margin: 0;
    color: #102A43;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.cta-box p {
    max-width: 650px;
    margin: 18px auto 30px;
    color: #5B6770;
    font-size: 1.05rem;
    line-height: 1.75;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0E4D92, #2EA0D2);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(14, 77, 146, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(14, 77, 146, 0.30);
}

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

@media (max-width: 1180px) {

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

}

@media (max-width: 768px) {

    .services-hero {
        padding: 92px 0 72px;
    }

    .services-grid-section,
    .services-benefits,
    .services-cta {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 38px;
    }

    .services-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        min-height: auto;
        padding: 30px 24px;
        border-radius: 22px;
    }

    .benefit-item {
        padding: 28px 24px;
        border-radius: 22px;
    }

    .cta-box {
        padding: 42px 24px;
        border-radius: 26px;
    }

}

@media (max-width: 480px) {

    .services-hero {
        padding: 78px 0 62px;
    }

    .services-hero p,
    .section-header p,
    .cta-box p {
        font-size: 1rem;
    }

    .services-badge,
    .pre-title {
        font-size: 0.74rem;
        padding: 8px 14px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }

    .btn-primary {
        width: 100%;
    }

}