/* ==========================================================================
   COMPONENTE · Contacto con formulario (card) + tarjetas de info
   Enfoque Mobile-First. Colores adaptados a la marca (azul/navy).
   ========================================================================== */

.cform-block {
    padding: var(--pt-m, 32px) 0 var(--pb-m, 32px);
    background-color: #FFFFFF;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', system-ui, sans-serif;
}

.cform-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ---- Card del formulario ---- */
.cform-card {
    box-sizing: border-box;
    border: 1px solid #D7D9DB;
    border-radius: 24px;
    padding: 28px 24px;
}

.cform-title {
    margin: 0 0 28px;
    font-weight: 600;
    font-size: 24px;
    line-height: 120%;
    letter-spacing: -0.3px;
    color: #27292B;
}

/* ---- Formulario (Contact Form 7) ---- */
.cform-wrap .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cform-wrap .wpcf7-form p { margin: 0; }

/* Etiquetas del formulario */
.cform-wrap label {
    display: block;
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #27292B;
}

/* El wrapper de CF7 a bloque → el input va a ancho completo bajo la etiqueta */
.cform-wrap .wpcf7-form-control-wrap { display: block; }

/* Inputs y textarea */
.cform-wrap input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]),
.cform-wrap textarea.wpcf7-form-control {
    width: 100%;
    margin-top: 8px;
    padding: 16px 13px;
    box-sizing: border-box;
    background: #FFFFFF;
    border: 1px solid #D7D9DB;
    border-radius: 12px;
    font-family: 'Jost', system-ui, sans-serif;
    font-size: 14px;
    line-height: 140%;
    color: #27292B;
}

.cform-wrap .wpcf7-form-control::placeholder { color: #6C7981; }

.cform-wrap textarea.wpcf7-form-control {
    height: 98px;
    min-height: 98px;
    resize: vertical;
}

/* Fila de dos campos (Nombre/Email, Empresa/Sitio web): apilada en móvil */
.cform-wrap .cform-row {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    box-sizing: border-box;
}

.cform-wrap .cform-row br { display: none; }

/* Cada campo (su <label>) ocupa la mitad de la fila */
.cform-wrap .cform-row > label {
    flex: 1 1 0;
    min-width: 0;
}

/* Consentimiento RGPD */
.cform-consent {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.cform-wrap .wpcf7-acceptance .wpcf7-list-item { margin: 0; }

.cform-wrap .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.cform-wrap .wpcf7-acceptance input[type="checkbox"] {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    margin: 2px 0 0;
    accent-color: #0E2C45;
    cursor: pointer;
}

.cform-wrap .wpcf7-acceptance .wpcf7-list-item-label {
    font-size: 14px;
    line-height: 140%;
    color: #27292B;
}

.cform-legal {
    margin: 0;
    font-size: 12px;
    line-height: 130%;
    letter-spacing: -0.45px;
    color: #6C7981;
}

/* Botón de envío (navy de marca, en vez del degradado naranja original) */
.cform-wrap input.wpcf7-form-control[type="submit"] {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    box-sizing: border-box;
    background: #0E2C45;
    border: none;
    border-radius: 24px;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    cursor: pointer;
    transition: background-color .25s ease, transform .25s ease;
}

.cform-wrap input.wpcf7-form-control[type="submit"]:hover {
    background: #091D2E;
    transform: translateY(-1px);
}

.cform-wrap .wpcf7-not-valid-tip { font-size: 12px; color: #C0392B; margin-top: 4px; }
.cform-wrap .wpcf7-response-output { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; }

/* ---- Tarjetas de contacto (derecha) ---- */
.cform-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ccard {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #F6F7F9;
    box-shadow: 0 4px 8px rgba(22, 22, 35, 0.12);
    border-radius: 24px;
    text-decoration: none;
}

.ccard-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #006491;            /* azul de marca (en vez del degradado naranja) */
}

/* Icono subido por ACF, teñido de blanco vía máscara CSS */
.ccard-icon-img {
    display: block;
    width: 20px;
    height: 20px;
    background-color: #FFFFFF;
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
}

.ccard-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.ccard-label {
    font-weight: 500;
    font-size: 16px;
    line-height: 130%;
    color: #27292B;
}

.ccard-value {
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: #6C7981;
}

a.ccard { transition: box-shadow .2s ease, transform .2s ease; }
a.ccard:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(22, 22, 35, 0.14); }

/* ==========================================================================
   Escritorio (Mobile-First → min-width)
   ========================================================================== */
@media (min-width: 992px) {
    .cform-block {
        padding: var(--pt-d, 50px) 0 var(--pb-d, 50px);
    }

    .cform-grid {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 52px;
    }

    .cform-card {
        flex: 1 1 704px;
        min-width: 0;
        padding: 36px 60px;
    }

    .cform-cards {
        flex: 0 0 422px;
    }

    /* Filas de dos campos lado a lado */
    .cform-wrap .cform-row {
        flex-direction: row;
        gap: 20px;
    }
}
