/* =========================================================
   CIDMED - CONTACTO
   Diseño aislado para no modificar style.css
   ========================================================= */

#contact.contact {
    position: relative;
    padding: 100px 0;
    background:
        linear-gradient(
            135deg,
            #f4f8f7 0%,
            #eef4f3 50%,
            #f1f4f8 100%
        );
    overflow: hidden;
}

/* =========================================================
   DECORACIÓN DE FONDO
   ========================================================= */

#contact.contact::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    left: -260px;
    top: 10%;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(88, 171, 149, 0.10) 0%,
            rgba(88, 171, 149, 0.035) 45%,
            transparent 72%
        );
    pointer-events: none;
}

#contact.contact::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -250px;
    bottom: -180px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(52, 74, 108, 0.09) 0%,
            rgba(52, 74, 108, 0.025) 48%,
            transparent 72%
        );
    pointer-events: none;
}

/* =========================================================
   CONTENEDOR
   ========================================================= */

#contact.contact .container {
    position: relative;
    z-index: 2;
}

/* =========================================================
   TÍTULO
   ========================================================= */

#contact.contact .section-title {
    position: relative;
    margin-bottom: 55px;
    text-align: center;
}

#contact.contact .section-title h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 18px;
    color: #2d405f;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.4px;
    text-transform: none;
}

/* Línea verde */

#contact.contact .section-title h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58px;
    height: 3px;
    border-radius: 10px;
    background: #58ab95;
    transform: translateX(-50%);
}

/* Detalle azul */

#contact.contact .section-title h2::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 3px;
    border-radius: 10px;
    background: #344a6c;
    transform: translateX(-50%);
    z-index: 1;
}

/* =========================================================
   BLOQUES DE INFORMACIÓN
   ========================================================= */

#contact.contact .info-box {
    position: relative;
    min-height: 150px;
    padding: 30px 25px 25px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(52, 74, 108, 0.08);
    border-radius: 18px;
    text-align: center;
    box-shadow:
        0 10px 30px rgba(45, 64, 95, 0.055);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Hover */

#contact.contact .info-box:hover {
    transform: translateY(-4px);
    border-color: rgba(88, 171, 149, 0.20);
    box-shadow:
        0 16px 35px rgba(45, 64, 95, 0.09);
}

/* =========================================================
   ICONOS
   ========================================================= */

#contact.contact .info-box > i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 58px;
    height: 58px;

    margin: 0 auto 17px;

    border-radius: 50%;

    color: #344a6c;
    background:
        radial-gradient(
            circle,
            rgba(52, 74, 108, 0.13) 0%,
            rgba(52, 74, 108, 0.055) 58%,
            rgba(52, 74, 108, 0.015) 75%,
            transparent 76%
        );

    border: 1px solid rgba(52, 74, 108, 0.10);

    font-size: 25px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

/* Icono al pasar */

#contact.contact .info-box:hover > i {
    color: #ffffff;
    background: #58ab95;
    border-color: #58ab95;
    transform: scale(1.05);
}

/* =========================================================
   TÍTULOS DE INFORMACIÓN
   ========================================================= */

#contact.contact .info-box h3 {
    margin: 0 0 7px;

    color: #344a6c;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;

    letter-spacing: 0.1px;
}

/* =========================================================
   ENLACES
   ========================================================= */

#contact.contact .info-box a {
    color: #58ab95;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.25s ease;
}

#contact.contact .info-box a:hover {
    color: #344a6c;
}

/* =========================================================
   WHATSAPP
   ========================================================= */

#contact.contact .info-box .bxl-whatsapp {
    color: #58ab95;
}

#contact.contact .info-box:hover .bxl-whatsapp {
    color: #ffffff;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

#contact.contact .php-email-form {
    height: 100% !important;

    padding: 35px;

    background: rgba(255, 255, 255, 0.98);

    border: 1px solid rgba(52, 74, 108, 0.09);
    border-radius: 20px;

    box-shadow:
        0 14px 40px rgba(45, 64, 95, 0.075);

    transition:
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

#contact.contact .php-email-form:hover {
    border-color: rgba(88, 171, 149, 0.16);

    box-shadow:
        0 18px 45px rgba(45, 64, 95, 0.10);
}

/* =========================================================
   CAMPOS
   ========================================================= */

#contact.contact .php-email-form .form-control {
    width: 100%;

    min-height: 50px;

    padding: 13px 16px;

    color: #344a6c;

    background: #f9fbfb;

    border: 1px solid rgba(52, 74, 108, 0.12);
    border-radius: 10px;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 400;

    box-shadow: none;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

/* Placeholder */

#contact.contact .php-email-form .form-control::placeholder {
    color: #8993a1;
    opacity: 1;
}

/* Focus */

#contact.contact .php-email-form .form-control:focus {
    background: #ffffff;

    border-color: #58ab95;

    box-shadow:
        0 0 0 3px rgba(88, 171, 149, 0.10);
}

/* Textarea */

#contact.contact .php-email-form textarea.form-control {
    min-height: 145px;
    resize: vertical;
}

/* =========================================================
   ESPACIADO DE CAMPOS
   ========================================================= */

#contact.contact .php-email-form .form-group {
    margin-bottom: 0;
}

/* =========================================================
   MENSAJES DEL FORMULARIO
   ========================================================= */

#contact.contact .php-email-form .loading,
#contact.contact .php-email-form .error-message,
#contact.contact .php-email-form .sent-message {
    border-radius: 8px;
    font-size: 13px;
}

/* =========================================================
   BOTÓN
   ========================================================= */

#contact.contact .php-email-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;
    min-height: 50px;

    padding: 13px 28px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #344a6c 0%,
            #2d405f 100%
        );

    border: 0;
    border-radius: 10px;

    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    font-weight: 700;

    letter-spacing: 0.2px;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(52, 74, 108, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

/* Hover */

#contact.contact .php-email-form button[type="submit"]:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #58ab95 0%,
            #4d9d88 100%
        );

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(88, 171, 149, 0.25);
}

/* Active */

#contact.contact .php-email-form button[type="submit"]:active {
    transform: translateY(0);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199px) {

    #contact.contact {
        padding: 85px 0;
    }

    #contact.contact .section-title {
        margin-bottom: 45px;
    }

    #contact.contact .php-email-form {
        padding: 30px;
    }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    #contact.contact {
        padding: 70px 0;
    }

    #contact.contact .section-title {
        margin-bottom: 35px;
    }

    #contact.contact .section-title h2 {
        font-size: 30px;
    }

    #contact.contact .info-box {
        min-height: auto;
        padding: 27px 20px 24px;
    }

    #contact.contact .php-email-form {
        height: auto !important;
        margin-top: 25px;
        padding: 25px 20px;
        border-radius: 16px;
    }

    #contact.contact .php-email-form button[type="submit"] {
        width: 100%;
    }

}

/* =========================================================
   MOBILE PEQUEÑO
   ========================================================= */

@media (max-width: 575px) {

    #contact.contact {
        padding: 55px 0;
    }

    #contact.contact .section-title h2 {
        font-size: 27px;
    }

    #contact.contact .info-box h3 {
        font-size: 15px;
    }

    #contact.contact .info-box a {
        font-size: 14px;
    }

    #contact.contact .php-email-form {
        padding: 22px 17px;
    }

    #contact.contact .php-email-form .form-control {
        font-size: 13.5px;
    }

}

/* =========================================================
   REDUCIR ANIMACIONES
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #contact.contact .info-box,
    #contact.contact .info-box > i,
    #contact.contact .php-email-form,
    #contact.contact .php-email-form .form-control,
    #contact.contact .php-email-form button[type="submit"] {
        transition: none;
    }

}