/* ==========================================================
   DR. PEDRO HURTADO
   SECCIÓN CONTACTENOS
   ========================================================== */

.dr-contacto-ph {
    --contact-primary: #3299DC;
    --contact-primary-dark: #21618C;
    --contact-white: #ffffff;
    --contact-form-bg: #edf5fb;
    --contact-text: #173F5F;

    position: relative;
    width: 100%;
    padding: 65px 4.5% 55px;
    overflow: hidden;
    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%
        ),
}

/* CONTENEDOR */

.dr-contacto-ph__container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    margin-top: 45px;
    padding: 30px;
    background: var(--contact-primary-dark);
    border-radius: 30px;
}

/* ENCABEZADO */

.dr-contacto-ph__header {
    margin-bottom: 15px;
    text-align: center;
}

.dr-contacto-ph__header h2 {
    margin: 0;
    color: var(--contact-white);
    font-size: clamp(2.2rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
}

/* CONTENIDO PRINCIPAL */

.dr-contacto-ph__content {
    display: grid;
    grid-template-columns: minmax(0, 0.90fr) minmax(0, 1.10fr);
    align-items: center;
    gap: clamp(45px, 6vw, 65px);

    width: 100%;
    padding: 20px 3%;
    border: 3px double rgb(255 255 255 / 0.85);
}

/* FORMULARIO */

.dr-contacto-ph__form-wrapper {
    width: 100%;
    padding: 24px 32px 22px;
    border-radius: 12px;
    background: var(--contact-form-bg);
    box-shadow: 0 12px 35px rgb(0 0 0 / 0.14);
}

.dr-contacto-ph__form {
    width: 100%;
}

.dr-contacto-ph__form h3 {
    margin: 0 0 20px;
    color: var(--contact-text);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

/* CAMPOS */

.dr-contacto-ph__field {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 10px;
}

.dr-contacto-ph__field label {
    margin-bottom: 5px;
    color: #111111;
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
}

.dr-contacto-ph__field input,
.dr-contacto-ph__field textarea {
    display: block;
    width: 80%;
    margin: auto;
    padding: 8px 13px;
    border: 1px solid #d5e0e9;
    border-bottom: 2px solid #c5c5c5;
    border-radius: 3px;
    outline: none;
    background: #ffffff;
    color: #173F5F;
    font-family: inherit;
    font-size: 1.2rem;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.dr-contacto-ph__field input {
    height: 38px;
}

.dr-contacto-ph__field textarea {
    min-height: 125px;
    height: 125px;
    line-height: 1.2;
    resize: none;
}

.dr-contacto-ph__field input:focus,
.dr-contacto-ph__field textarea:focus {
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 3px rgb(50 153 220 / 0.13);
}

/* BOTÓN */

.dr-contacto-ph__form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.dr-contacto-ph__form-footer button {
    min-width: 180px;
    padding: 13px 30px;
    border: none;
    border-radius: 30px;
    background: #398fe5;
    color: #ffffff;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dr-contacto-ph__form-footer button:hover {
    background: #216fc2;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgb(0 0 0 / 0.15);
}

.dr-contacto-ph__form-footer button:focus-visible {
    outline: 3px solid #173F5F;
    outline-offset: 3px;
}


.dr-contacto-ph__form-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dr-contacto-ph__form-footer button i {
    font-size: 1.4rem;
    transition: transform 0.25s ease;
}

.dr-contacto-ph__form-footer button:hover i {
    transform: translate(4px, -3px);
}

/* CAMPO ANTISPAM */

.dr-contacto-ph__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* INFORMACIÓN DE CONTACTO */

.dr-contacto-ph__info {
    width: 100%;
    padding: 15px 0;
    color: var(--contact-white);
}

.dr-contacto-ph__info h3 {
    margin: 0 0 20px;
    color: var(--contact-white);
    font-family: inherit;
    font-size: clamp(1.6rem, 2vw, 2rem);
    font-weight: 400;
    text-align: center;
}

.dr-contacto-ph__description {
    max-width: 780px;
    margin: 0 auto 30px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

/* DATOS DE CONTACTO */

.dr-contacto-ph__details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.dr-contacto-ph__detail {
   display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: fit-content;
    max-width: 100%;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    text-align: left;
    transition: opacity 0.25s ease;
}

.dr-contacto-ph__detail i {
   flex: 0 0 25px;
    width: 30px;
    color: #ffffff;
    font-size: 2rem;
    text-align: center;
}

.dr-contacto-ph__detail:hover {
    opacity: 0.78;
}

/* REDES SOCIALES */

.dr-contacto-ph__social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin-top: 48px;
}

.dr-contacto-ph__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 2px solid rgb(255 255 255 / 0.8);
    border-radius: 10px;
    background: #ffffff;
    color: var(--contact-primary-dark);
    font-size: 1.7rem;
    text-decoration: none;
    box-shadow: 0 5px 12px rgb(0 0 0 / 0.12);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.dr-contacto-ph__social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 18px rgb(0 0 0 / 0.2);
}

.dr-contacto-ph__social a:nth-child(1) {
    color: #4267B2;
}

.dr-contacto-ph__social a:nth-child(2) {
    color: #D9468F;
}

.dr-contacto-ph__social a:nth-child(3) {
    color: #E62117;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1050px) {

    .dr-contacto-ph {
        padding-right: 3%;
        padding-left: 3%;
    }

    .dr-contacto-ph__content {
        gap: 35px;
        padding: 28px 2.5%;
    }

    .dr-contacto-ph__form-wrapper {
        padding: 25px;
    }

    .dr-contacto-ph__detail {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {

    .dr-contacto-ph {
        padding: 50px 20px;
    }

    .dr-contacto-ph__header {
        margin-bottom: 35px;
    }

    .dr-contacto-ph__content {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 22px;
    }

    .dr-contacto-ph__form-wrapper {
        max-width: 600px;
        margin: 0 auto;
    }

    .dr-contacto-ph__info {
        padding: 15px 5px 25px;
    }

    .dr-contacto-ph__description {
        margin-bottom: 30px;
    }

    .dr-contacto-ph__info h3 {
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {

    .dr-contacto-ph {
   padding: 5px;
    }

    .dr-contacto-ph__container {
        padding: 10px;
        border-radius: 20px;
    }

    .dr-contacto-ph__header h2 {
        font-size: 2.1rem;
    }

    .dr-contacto-ph__content {
        gap: 15px;
        padding: 5px;
        border-radius: 12px;
}

    .dr-contacto-ph__form-wrapper {
        padding: 20px 12px;
 }

    .dr-contacto-ph__form h3 {
        font-size: 1.6rem;
    }

    .dr-contacto-ph__field label {
        font-size: 1rem;
    }

    .dr-contacto-ph__field input,
    .dr-contacto-ph__field textarea {
        font-size: 1.2rem;
    }

    .dr-contacto-ph__form-footer button {
        width: 100%;
        font-size: 1rem;
    }

    .dr-contacto-ph__info h3 {
        font-size: 1.2rem;
    }

    .dr-contacto-ph__description {
        font-size: 1rem;
        text-align: justify;
    }

    .dr-contacto-ph__detail {
        justify-content: flex-start;
        width: 100%;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .dr-contacto-ph__social {
        gap: 10px;
        margin-top: 20px;
    }
}
