/* ==========================================================
   SECCIÓN PRINCIPAL
   ========================================================== */

.dr__consultas_personal--ph {
    position: relative;

    isolation: isolate;

    width: 100%;
    max-width: calc(100% - 200px);

    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);

    display: flex;
    align-items: center;

    overflow: hidden;
    padding-top: 30px;

    border: 1px solid rgb(220 232 241 / 85%);
    border-radius: 20px;

    background-color: #F9FAFA;

    background-image:
        linear-gradient(
            90deg,
            rgb(250 251 251 / 99%) 0%,
            rgb(250 251 251 / 97%) 29%,
            rgb(250 251 251 / 91%) 40%,
            rgb(250 251 251 / 70%) 49%,
            rgb(250 251 251 / 25%) 60%,
            rgb(250 251 251 / 0%) 72%
        ),
        url("../../img/imgs/fnd__consultas__ph.webp");

    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: cover, cover;

    box-shadow: var(--shadow);

    animation: consultas-appear 0.9s ease both;
}

/* ==========================================================
   ILUMINACIÓN Y PROFUNDIDAD
   ========================================================== */

.dr__consultas_personal--ph::before {
    content: "";

    position: absolute;
    z-index: -1;

    width: 520px;
    height: 520px;

    top: -260px;
    left: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgb(50 153 220 / 13%),
            transparent 70%
        );

    filter: blur(15px);

    pointer-events: none;
}

.dr__consultas_personal--ph::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgb(23 63 95 / 5%),
            transparent 35%
        );

    pointer-events: none;
}

/* ==========================================================
   CONTENIDO
   ========================================================== */

.consultas__content {
    position: relative;
    z-index: 2;

    width: 50%;
    max-width: 650px;

    padding:
        clamp(45px, 6vw, 85px)
        clamp(30px, 5vw, 75px);

    animation: consultas-content-appear 1s ease 0.15s both;
}

/* ==========================================================
   IDENTIFICADOR SUPERIOR
   ========================================================== */

.consultas__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 100px;

    color: var(--blue);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.consultas__eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 5px;

    background: var(--blue-light);
}

/* ==========================================================
   SERVICIOS
   ========================================================== */

.consultas__services {
    display: flex;
    flex-direction: column;

    gap: 32px;
}

.consultas__service {
    position: relative;

    padding: 0 0 27px;

    border-bottom: 1px solid rgb(33 97 140 / 13%);

    transition: transform var(--transition);
}

.consultas__service:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.consultas__service:hover {
    transform: translateX(5px);
}

/* Encabezado */

.consultas__service-heading {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 10px;
}

.consultas__service-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    flex-shrink: 0;

    color: var(--blue);

    background: rgb(50 153 220 / 10%);

    border: 1px solid rgb(50 153 220 / 17%);
    border-radius: 9px;

    font-size: 11px;
    font-weight: 800;
}

.consultas__service-heading h3 {
    margin: 0;

    color: #172F45;

    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.consultas__service-heading h3 span {
    color: var(--blue-light);
}

/* Descripción */

.consultas__service-description {
    margin: 0 0 16px 44px;

    color: #62778A;

    font-size: 13px;
    line-height: 1.6;
}

/* ==========================================================
   BOTONES
   ========================================================== */

.consultas__button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 13px;

    min-height: 47px;

    margin-left: 44px;
    padding: 11px 30px;

    border: 1px solid transparent;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    text-align: center;
    text-decoration: none;

    overflow: hidden;

    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.consultas__button svg {
    flex-shrink: 0;

    transition: transform var(--transition);
}

/* Botón Consulta Virtual */

.consultas__button--primary {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #3299DC,
            #21618C
        );

    border-color: #21618C;

    box-shadow:
        0 6px 16px rgb(33 97 140 / 20%);
}

.consultas__button--primary:hover {
    color: var(--white);

    background:
        linear-gradient(
            135deg,
            #267FB8,
            #17496C
        );

    box-shadow:
        0 10px 24px rgb(33 97 140 / 28%);

    transform: translateY(-3px);
}

.consultas__button--primary:hover svg {
    transform: rotate(-8deg) scale(1.08);
}

/* Botón Mipres */

.consultas__button--secondary {
    color: var(--blue-dark);

    background: rgb(255 255 255 / 80%);

    border-color: rgb(33 97 140 / 30%);

    box-shadow:
        0 4px 14px rgb(23 63 95 / 5%);
}

.consultas__button--secondary:hover {
    color: var(--white);

    background: var(--blue-dark);

    border-color: var(--blue-dark);

    box-shadow:
        0 10px 24px rgb(23 63 95 / 20%);

    transform: translateY(-3px);
}

.consultas__button--secondary:hover svg {
    transform: translate(3px, -3px);
}

/* Accesibilidad */

.consultas__button:focus-visible {
    outline: 3px solid #72A8CF;
    outline-offset: 4px;
}

/* ==========================================================
   INFORMACIÓN INFERIOR
   ========================================================== */

.consultas__security {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-top: 100px;

    color: #60778A;

    font-size: 12px;
    font-weight: 600;
}

.consultas__security-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    color: #319B75;

    background: rgb(49 155 117 / 10%);

    border-radius: 50%;
}

/* ==========================================================
   ANIMACIONES
   ========================================================== */

@keyframes consultas-appear {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes consultas-content-appear {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================
   TABLETAS
   ========================================================== */

@media (max-width: 1024px) {

    .site-main {
        padding: 20px;
    }

     .dr__consultas_personal--ph {
        width: 100% !important;
        max-width: 100%;
    }

    .dr__consultas_personal--ph {
        width: 100%;

        background-position:
            center,
            65% center;
    }

    .consultas__content {
        width: 60%;
        padding: 55px 40px;
    }

}

/* ==========================================================
   MÓVILES
   ========================================================== */

@media (max-width: 780px) {

    body {
        background: #F5F9FC;
    }

    .site-main {
        padding: 10px;
        width: 100%;
    }

    .dr__consultas_personal--ph {
        width: 100% !important;
        max-width: 100%;

        align-items: flex-start;

        border-radius: 12px;

        background-image:
            linear-gradient(
                180deg,
                rgb(250 251 251 / 99%) 0%,
                rgb(250 251 251 / 97%) 40%,
                rgb(250 251 251 / 83%) 65%,
                rgb(250 251 251 / 25%) 100%
            ),
            url("../img/imgs/fnd__consultas__ph.webp");

        background-position:
            center,
            65% bottom;

        background-size:
            cover,
            auto 100%;

        box-shadow:
            0 12px 35px rgb(23 63 95 / 9%);
    }

    .consultas__content {
        width: 100%;
        max-width: none;

        padding: 38px 24px 290px;
    }

    .consultas__eyebrow {
        margin-bottom: 32px;

        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .consultas__services {
        gap: 22px;
    }

    .consultas__service-heading h3 {
        font-size: 19px;
    }

    .consultas__service-description {
        font-size: 12px;
    }

    .consultas__button {
        min-height: 46px;

        font-size: 13px;
    }

    .consultas__security {
        margin-top: 25px;

        font-size: 11px;
    }

    .consultas__decoration {
        display: none;
    }

}

/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 320px) {

    .site-main {
        width: 100%;
        padding: 5px;
    }

     .dr__consultas_personal--ph {
        max-width: 100%;
        margin: 0;
        border-radius: 8px;
    }

    .consultas__content {
        width: 100%;
        max-width: 650px;

        padding: 45px 35px;
    }

    .consultas__content {
        padding-right: 15px;
        padding-left: 15px;
    }

    .consultas__button {
        width: calc(100% - 54px);
    }

}

/* ==========================================================
   REDUCCIÓN DE MOVIMIENTO
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }

}