/* =========================================================
   HERO
========================================================= */

.servicios-hero {

    position: relative;

    background:
        linear-gradient(
            135deg,
            #0b1120 0%,
            #111827 50%,
            #0f172a 100%
        );

    color: #fff;

    padding: 120px 0 110px;

    overflow: hidden;
}

.servicios-hero::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(212,175,55,0.12),
            transparent 35%
        );

    pointer-events: none;
}

.servicios-hero h1 {

    position: relative;

    font-family: 'Playfair Display', serif;

    font-size: clamp(2.5rem, 5vw, 4rem);

    margin-bottom: 20px;
}

.servicios-hero p {

    position: relative;

    max-width: 760px;

    margin: auto;

    font-size: 1.05rem;

    line-height: 1.8;

    color: rgba(255,255,255,0.72);
}

/* =========================================================
   DETALLE
========================================================= */

.servicios-detalle {

    position: relative;

    background:
        linear-gradient(
            to bottom,
            #f8fafc,
            #ffffff
        );

    padding: 90px 0;
}

/* =========================================================
   TABS
========================================================= */

.servicios-tabs-wrapper {

    display: flex;
    justify-content: center;

    margin-bottom: 70px;
}

.servicios-tabs {

    display: inline-flex;

    gap: 18px;

    padding: 14px;

    border-radius: 28px;

    background:
        rgba(15,23,42,0.92);

    backdrop-filter: blur(18px);

    border:
        1px solid rgba(255,255,255,0.06);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.12);
}

/* TAB */

.servicio-tab {

    position: relative;

    display: flex;
    align-items: center;

    gap: 16px;

    min-width: 260px;

    padding: 18px 22px;

    border: none;

    border-radius: 22px;

    background: transparent;

    color: #fff;

    transition: all .35s ease;

    cursor: pointer;

    overflow: hidden;
}

/* GLOW */

.servicio-tab::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(212,175,55,0.18),
            rgba(212,175,55,0)
        );

    opacity: 0;

    transition: .35s ease;
}

.servicio-tab:hover {

    transform: translateY(-4px);

    background:
        rgba(255,255,255,0.04);
}

.servicio-tab:hover::before {
    opacity: 1;
}

/* ACTIVE */

.servicio-tab.active {

    background:
        linear-gradient(
            135deg,
            #d4af37,
            #b89220
        );

    color: #0f172a;

    box-shadow:
        0 20px 40px rgba(212,175,55,0.22);
}

.servicio-tab.active .tab-content small {
    color: rgba(15,23,42,0.72);
}

/* ICON */

.tab-icon {

    width: 56px;
    height: 56px;

    flex-shrink: 0;

    border-radius: 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(255,255,255,0.08);

    font-size: 1.2rem;
}

.servicio-tab.active .tab-icon {

    background:
        rgba(15,23,42,0.12);
}

/* TEXT */

.tab-content {

    display: flex;
    flex-direction: column;

    text-align: left;
}

.tab-content small {

    font-size: .76rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    color:
        rgba(255,255,255,0.5);

    margin-bottom: 4px;
}

.tab-content strong {

    font-size: 1rem;

    font-weight: 700;
}

/* =========================================================
   GROUPS
========================================================= */

.servicios-group {
    display: none;
}

.servicios-group.active {
    display: block;
}

/* =========================================================
   CARDS
========================================================= */

.servicio-box {

    position: relative;

    height: 100%;

    padding: 34px;

    border-radius: 24px;

    background:
        rgba(255,255,255,0.82);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(255,255,255,0.8);

    overflow: hidden;

    transition: all .35s ease;

    box-shadow:
        0 15px 45px rgba(15,23,42,0.06);
}

/* TOP BORDER */

.servicio-box::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #d4af37,
            #f5d76e
        );

    opacity: 0;

    transition: .35s ease;
}

.servicio-box:hover {

    transform: translateY(-8px);

    box-shadow:
        0 30px 60px rgba(15,23,42,0.10);
}

.servicio-box:hover::before {
    opacity: 1;
}

/* TITULO */

.servicio-box h3 {

    font-size: 1.15rem;

    line-height: 1.5;

    color: #0f172a;

    margin-bottom: 14px;

    font-weight: 700;
}

/* TEXTO */

.servicio-box p {

    color: #6b7280;

    line-height: 1.8;

    margin-bottom: 0;
}

/* LISTAS */

.servicio-box ul {

    padding-left: 18px;

    margin-top: 18px;
}

.servicio-box li {

    color: #4b5563;

    margin-bottom: 8px;
}

/* =========================================================
   CTA
========================================================= */

.servicios-cta {

    background:
        linear-gradient(
            135deg,
            #0b1120,
            #111827
        );

    color: #fff;

    padding: 90px 0;
}

.servicios-cta h2 {

    font-family: 'Playfair Display', serif;

    font-size: clamp(2rem, 4vw, 3rem);

    margin-bottom: 20px;
}

.servicios-cta p {

    color:
        rgba(255,255,255,0.7);

    margin-bottom: 30px;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 992px) {

    .servicios-tabs {

        width: 100%;

        flex-direction: column;
    }

    .servicio-tab {
        min-width: 100%;
    }

}

@media (max-width: 768px) {

    .servicios-hero {
        padding: 90px 0;
    }

    .servicios-detalle {
        padding: 70px 0;
    }

    .servicio-box {
        padding: 28px;
    }

}

/* =========================================================
   CARD MINIMAL
========================================================= */

.servicio-box-minimal {

    position: relative;

    height: 100%;

    padding: 34px 30px;

    border-radius: 26px;

    background:
        linear-gradient(
            180deg,
            #111827,
            #0f172a
        );

    border:
        1px solid rgba(255,255,255,0.06);

    overflow: hidden;

    transition: all .35s ease;

    display: flex;
    flex-direction: column;

    justify-content: center;

    min-height: 220px;

    box-shadow:
        0 15px 40px rgba(15,23,42,0.06);
}

/* GLOW */

.servicio-box-minimal::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(212,175,55,0.16),
            transparent 40%
        );

    opacity: 0;

    transition: .35s ease;
}

/* TOP BORDER */

.servicio-box-minimal::after {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #d4af37,
            #f5d76e
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: .35s ease;
}

/* HOVER */

.servicio-box-minimal:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(212,175,55,0.28);

    box-shadow:
        0 25px 60px rgba(15,23,42,0.14);
}

.servicio-box-minimal:hover::before {
    opacity: 1;
}

.servicio-box-minimal:hover::after {
    transform: scaleX(1);
}

/* ICON */

.servicio-icon {

    width: 70px;
    height: 70px;

    margin-bottom: 24px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.45rem;

    color: #d4af37;

    background:
        rgba(212,175,55,0.08);

    border:
        1px solid rgba(212,175,55,0.15);
}

/* TITULO */

.servicio-box-minimal h3 {

    font-size: 1.2rem;

    line-height: 1.6;

    color: #fff;

    margin: 0;

    font-weight: 600;
}

/* =========================================================
   MEDICAL LEGAL CARDS
========================================================= */

.servicio-medico-card {

    position: relative;

    height: 100%;

    padding: 34px;

    border-radius: 30px;

    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #0f172a,
            #111827
        );

    border:
        1px solid rgba(59,130,246,0.10);

    transition: all .4s ease;

    min-height: 260px;

    display: flex;
    flex-direction: column;

    justify-content: center;

    box-shadow:
        0 20px 50px rgba(15,23,42,0.08);
}

/* GLOW */

.servicio-medico-card::before {

    content: '';

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at top right,
            rgba(59,130,246,0.18),
            transparent 35%
        );

    opacity: 0;

    transition: .4s ease;
}

/* LINE */

.servicio-medico-card::after {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #3b82f6,
            #60a5fa,
            #d4af37
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: .35s ease;
}

/* HOVER */

.servicio-medico-card:hover {

    transform:
        translateY(-10px);

    border-color:
        rgba(59,130,246,0.25);

    box-shadow:
        0 30px 70px rgba(15,23,42,0.16);
}

.servicio-medico-card:hover::before {
    opacity: 1;
}

.servicio-medico-card:hover::after {
    transform: scaleX(1);
}

/* ICON */

.servicio-medico-icon {

    width: 74px;
    height: 74px;

    margin-bottom: 24px;

    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5rem;

    color: #60a5fa;

    background:
        linear-gradient(
            135deg,
            rgba(59,130,246,0.18),
            rgba(59,130,246,0.06)
        );

    border:
        1px solid rgba(59,130,246,0.18);
}

/* BADGE */

.servicio-medico-badge {

    display: inline-flex;

    width: fit-content;

    padding: 8px 14px;

    border-radius: 999px;

    margin-bottom: 18px;

    background:
        rgba(59,130,246,0.10);

    border:
        1px solid rgba(59,130,246,0.18);

    color: #93c5fd;

    font-size: .72rem;

    letter-spacing: .08em;

    text-transform: uppercase;

    font-weight: 700;
}

/* TITULO */

.servicio-medico-card h3 {

    font-size: 1.18rem;

    line-height: 1.6;

    color: #ffffff;

    margin: 0;

    font-weight: 600;
}

/* =========================================================
   CORPORATIVO
========================================================= */

.servicio-corp-card {

    position: relative;

    height: 100%;

    padding: 36px;

    border-radius: 30px;

    background: #ffffff;

    border:
        1px solid rgba(15,23,42,0.08);

    overflow: hidden;

    transition: all .35s ease;

    min-height: 250px;

    display: flex;
    flex-direction: column;

    box-shadow:
        0 15px 45px rgba(15,23,42,0.04);
}

/* TOP LINE */

.servicio-corp-card::before {

    content: '';

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #d4af37,
            #f5d76e
        );

    transform: scaleX(0);

    transform-origin: left;

    transition: .35s ease;
}

/* HOVER */

.servicio-corp-card:hover {

    transform:
        translateY(-8px);

    border-color:
        rgba(212,175,55,0.18);

    box-shadow:
        0 30px 60px rgba(15,23,42,0.08);
}

.servicio-corp-card:hover::before {
    transform: scaleX(1);
}

/* ICON */

.servicio-corp-icon {

    width: 72px;
    height: 72px;

    margin-bottom: 28px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            rgba(212,175,55,0.12),
            rgba(212,175,55,0.04)
        );

    color: #b89220;

    font-size: 1.4rem;

    border:
        1px solid rgba(212,175,55,0.15);
}

/* TOP */

.servicio-corp-top {

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

/* LINE */

.servicio-corp-line {

    width: 40px;
    height: 2px;

    background: #d4af37;
}

/* TAG */

.servicio-corp-tag {

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: .08em;

    color: #9ca3af;

    font-weight: 700;
}

/* TITLE */

.servicio-corp-card h3 {

    font-size: 1.28rem;

    line-height: 1.55;

    color: #0f172a;

    margin: 0;

    font-weight: 700;
}

/* DESCRIPTION */

.servicio-corp-card p {

    color: #6b7280;

    line-height: 1.8;

    margin-top: 18px;

    margin-bottom: 24px;
}

/* LIST */

.servicio-corp-card ul {

    list-style: none;

    padding: 0;

    margin: 0;

    display: flex;
    flex-direction: column;

    gap: 12px;
}

.servicio-corp-card li {

    display: flex;
    align-items: center;

    gap: 10px;

    color: #374151;

    font-size: .95rem;
}

/* ICON */

.servicio-corp-card li i {

    width: 24px;
    height: 24px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(212,175,55,0.12);

    color: #b89220;

    font-size: .7rem;
}