
/* === PÁGINA CONTACTO ===
   Medidas 1:1 del artboard "Web 1920 – 4" del XD:
   fondo de torres a página completa · panel #203B4D al 85% de y=253 a y=1039 ·
   caja con borde blanco 0,75px y radio 26px, 1751x578 en x=85,6 y=288,4 ·
   etiquetas TT Hoves Bold 24px · campos 1684x46 · botón dorado 147x53          */

.dfyc-contacto {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 1069px;
    background: #101821 url('https://dfyc.cl/wp-content/uploads/2026/08/fondo-contacto.jpg') center top / cover no-repeat;
    display: flex;
    align-items: flex-start;
}

.dfyc-contacto__panel {
    width: 100%;
    margin-top: 253px;
    background: rgba(32, 59, 77, 0.85);
    padding: 14px 0 92px;
}

.dfyc-contacto__wrap {
    max-width: 1751px;
    margin: 0 auto;
    padding: 0 40px;
}

.dfyc-contacto__titulo {
    margin: 0 0 21px;
    font-family: 'TT Norms', sans-serif;
    font-weight: 400;
    font-size: 21px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
}

.dfyc-contacto__caja {
    border: 0.75px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    padding: 55px 34px 51px;
}

/* ---- campos del formulario (Contact Form 7) ---- */
.dfyc-contacto .dfyc-form__campo {
    margin-bottom: 17px;
}

.dfyc-contacto .dfyc-form__campo label {
    display: block;
    margin: 0 0 8px;
    font-family: 'TT Hoves', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    color: #ffffff;
}

.dfyc-contacto input[type="text"],
.dfyc-contacto input[type="email"],
.dfyc-contacto textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: transparent !important;
    border: 0.75px solid rgba(255, 255, 255, 0.85) !important;
    border-radius: 0;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: 'TT Hoves', sans-serif;
    font-weight: 300;
    font-size: 18px;
    padding: 0 16px;
    margin: 0;
}

.dfyc-contacto input[type="text"],
.dfyc-contacto input[type="email"] {
    height: 46px;
    line-height: 46px;
}

.dfyc-contacto textarea {
    height: 156px;
    border-radius: 26px !important;
    padding: 14px 16px;
    line-height: 1.5;
    resize: vertical;
}

.dfyc-contacto input::placeholder,
.dfyc-contacto textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.dfyc-contacto input:focus,
.dfyc-contacto textarea:focus {
    outline: none;
    border-color: #967E58 !important;
}

.dfyc-contacto .dfyc-form__campo--mensaje {
    margin-bottom: 0;
}

/* ---- consentimiento (Ley 21.719: parte desmarcado y bloquea el envío) ---- */
.dfyc-contacto .dfyc-form__consentimiento {
    margin: 26px 0 0;
}

.dfyc-contacto .dfyc-form__consentimiento .wpcf7-list-item {
    margin: 0;
}

.dfyc-contacto .dfyc-form__consentimiento label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'TT Norms', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
}

.dfyc-contacto .dfyc-form__consentimiento input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: #967E58;
}

/* ---- botón enviar ---- */
.dfyc-contacto .dfyc-form__enviar {
    text-align: center;
    margin-top: 28px;
}

.dfyc-contacto input[type="submit"] {
    min-width: 147px;
    height: 53px;
    padding: 0 34px;
    background: #967E58 !important;
    border: 0 !important;
    border-radius: 26px !important;
    color: #ffffff !important;
    font-family: 'TT Hoves', sans-serif;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background .25s ease;
}

.dfyc-contacto input[type="submit"]:hover {
    background: #7d6845 !important;
}

/* ---- avisos de CF7 ---- */
.dfyc-contacto .wpcf7-not-valid-tip {
    font-family: 'TT Norms', sans-serif;
    font-size: 14px;
    color: #E7B7B7;
    margin-top: 5px;
}

.dfyc-contacto .wpcf7-response-output {
    margin: 24px 0 0 !important;
    border-width: 1px !important;
    border-radius: 6px;
    font-family: 'TT Norms', sans-serif;
    font-size: 15px;
    color: #ffffff;
    padding: 14px 18px !important;
}

/* Header sobre el fondo: mismo velo que en las fichas, si no el menú blanco
   queda ilegible. El logo viene con opacity 0 desde el theme (bug global). */
html body:has(.dfyc-contacto) #header-outer,
html body:has(.dfyc-contacto) #header-outer.transparent {
    background-color: rgba(32, 59, 77, 0.65) !important;
}

html body:has(.dfyc-contacto) #header-outer.transparent .container {
    background-color: transparent !important;
}

html body:has(.dfyc-contacto) #header-outer #logo img.dark-version,
html body:has(.dfyc-contacto) #header-outer img.stnd {
    opacity: 1 !important;
}

html body:has(.dfyc-contacto) #header-outer.transparent #top nav > ul > li > a {
    color: #ffffff !important;
}

html body:has(.dfyc-contacto) .container.main-content > .row > p.yoast {
    display: none !important;
}

html body:has(.dfyc-contacto) .container-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ---- responsive ---- */
@media (max-width: 1200px) {
    .dfyc-contacto {
        min-height: 0;
    }
    .dfyc-contacto__panel {
        margin-top: 200px;
        padding-bottom: 70px;
    }
    .dfyc-contacto .dfyc-form__campo label {
        font-size: 20px;
    }
}

@media (max-width: 990px) {
    .dfyc-contacto__panel {
        margin-top: 170px;
        padding-bottom: 60px;
    }
    .dfyc-contacto__wrap {
        padding: 0 26px;
    }
    .dfyc-contacto__caja {
        padding: 38px 26px 36px;
    }
    .dfyc-contacto .dfyc-form__campo label {
        font-size: 18px;
    }
}

@media (max-width: 690px) {
    .dfyc-contacto__panel {
        margin-top: 130px;
        padding: 14px 0 46px;
    }
    .dfyc-contacto__wrap {
        padding: 0 18px;
    }
    .dfyc-contacto__caja {
        padding: 28px 18px 26px;
        border-radius: 18px;
    }
    .dfyc-contacto .dfyc-form__campo label {
        font-size: 17px;
    }
    .dfyc-contacto input[type="text"],
    .dfyc-contacto input[type="email"] {
        height: 42px;
        line-height: 42px;
        font-size: 16px;
    }
    .dfyc-contacto textarea {
        height: 130px;
        border-radius: 18px !important;
    }
    .dfyc-contacto input[type="submit"] {
        width: 100%;
    }
}

/* --- ajustes de contacto medidos en navegador contra el XD --- */

/* El padding lateral quedaba dentro del ancho máximo y encogía la caja
   (1671 en vez de 1751). Se suma al max-width. */
.dfyc-contacto__wrap {
    max-width: 1831px;
    padding: 0 40px;
}

/* El título ocupaba 55px entre el borde del panel y la caja; en el XD son 35. */
.dfyc-contacto__titulo {
    line-height: 1;
    margin: 0 0 0;
    padding-bottom: 0;
}

.dfyc-contacto__caja {
    margin-top: 0;
}

/* Salient y CF7 metían interlineado y márgenes extra: cada campo se iba 47px
   por debajo de su posición del XD. Se fija el ritmo a mano. */
.dfyc-contacto .dfyc-form__campo label {
    line-height: 1.2 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
}

.dfyc-contacto .wpcf7-form-control-wrap,
.dfyc-contacto .dfyc-form__campo p,
.dfyc-contacto .wpcf7-form p {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0;
}

.dfyc-contacto .wpcf7-form br {
    display: none;
}

.dfyc-contacto .dfyc-form__campo {
    margin-bottom: 17px !important;
}

@media (max-width: 1200px) {
    .dfyc-contacto__wrap {
        max-width: 1200px;
    }
}

/* El borde va en la caja de campos y el botón queda fuera y debajo, como en el XD. */
.dfyc-contacto__caja {
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
}

.dfyc-contacto .dfyc-form__caja {
    border: 0.75px solid rgba(255, 255, 255, 0.85);
    border-radius: 26px;
    padding: 55px 34px 51px;
}

/* Velo del header (el XD lo lleva a #203B4D 65%). Salient gana la pelea de CSS
   sobre #header-outer, así que la franja se pinta desde la propia página, por
   debajo del header pero encima de la foto. Vale para fichas y contacto. */
.dfyc-ficha::before,
.dfyc-contacto::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 133px;
    background: rgba(32, 59, 77, 0.65);
    z-index: 3;
    pointer-events: none;
}

/* El logo del theme viene con opacity 0 en todo el sitio (bug de configuración).
   Se fuerza visible donde el header va sobre fondo oscuro. */
html body:has(.dfyc-ficha) #header-outer img,
html body:has(.dfyc-contacto) #header-outer img {
    opacity: 1 !important;
}

@media (max-width: 990px) {
    .dfyc-ficha::before,
    .dfyc-contacto::before {
        display: none;
    }
}

/* --- Contacto: escalar con el ancho de pantalla ---
   El XD está dibujado sobre un lienzo de 1920. Al fijar las medidas en píxeles,
   en una pantalla de 1400-1500 el formulario se veía enorme y descuadrado: las
   etiquetas de 24px y los campos de 46px mantenían su tamaño absoluto mientras
   el ancho se encogía. Ahora todo va en vw con tope, así que a 1920 calza exacto
   con el diseño y más abajo baja en la misma proporción.                        */

.dfyc-contacto__wrap {
    max-width: min(1831px, 95.4vw);
    padding: 0 clamp(18px, 2.08vw, 40px);
}

.dfyc-contacto__panel {
    margin-top: clamp(120px, 13.2vw, 253px);
    padding-top: clamp(10px, 0.73vw, 14px);
    padding-bottom: clamp(44px, 4.8vw, 92px);
}

.dfyc-contacto__titulo {
    font-size: clamp(15px, 1.09vw, 21px);
    letter-spacing: 0.1em;
}

.dfyc-contacto .dfyc-form__caja {
    padding: clamp(26px, 2.86vw, 55px) clamp(18px, 1.77vw, 34px) clamp(24px, 2.66vw, 51px);
    border-radius: clamp(16px, 1.35vw, 26px);
}

.dfyc-contacto .dfyc-form__campo {
    margin-bottom: clamp(10px, 0.89vw, 17px) !important;
}

.dfyc-contacto .dfyc-form__campo label {
    font-size: clamp(15px, 1.25vw, 24px) !important;
    margin-bottom: clamp(5px, 0.42vw, 8px) !important;
}

.dfyc-contacto input[type="text"],
.dfyc-contacto input[type="email"] {
    height: clamp(38px, 2.4vw, 46px);
    line-height: clamp(38px, 2.4vw, 46px);
    font-size: clamp(14px, 0.94vw, 18px);
    padding: 0 clamp(10px, 0.83vw, 16px);
}

.dfyc-contacto textarea {
    height: clamp(110px, 8.13vw, 156px);
    font-size: clamp(14px, 0.94vw, 18px);
    padding: clamp(9px, 0.73vw, 14px) clamp(10px, 0.83vw, 16px);
    border-radius: clamp(16px, 1.35vw, 26px) !important;
}

.dfyc-contacto .dfyc-form__consentimiento {
    margin-top: clamp(16px, 1.35vw, 26px);
}

.dfyc-contacto .dfyc-form__consentimiento label {
    font-size: clamp(12px, 0.78vw, 15px);
    gap: clamp(8px, 0.63vw, 12px);
}

.dfyc-contacto .dfyc-form__enviar {
    margin-top: clamp(18px, 1.46vw, 28px);
}

.dfyc-contacto input[type="submit"] {
    min-width: clamp(120px, 7.66vw, 147px);
    height: clamp(42px, 2.76vw, 53px);
    font-size: clamp(14px, 0.89vw, 17px);
    border-radius: clamp(16px, 1.35vw, 26px) !important;
}

/* La franja del header también debe encoger con la pantalla. */
.dfyc-ficha::before,
.dfyc-contacto::before {
    height: clamp(78px, 6.93vw, 133px);
}
