
/*
 * JLC Portada v1.11 — Contacto
 * Tratamiento limpio/editorial para formularios y datos de contacto.
 * No modifica el formulario ni su funcionamiento.
 */

body.jlc-contacto-page {
    --jlc-contact-ivory: #f2eee6;
    --jlc-contact-brown: #51483e;
    --jlc-contact-charcoal: #262522;
    --jlc-contact-silver: #aaa9a3;
    --jlc-contact-muted: #746f67;
    --jlc-contact-line: rgba(81,72,62,.22);
    background: var(--jlc-contact-ivory) !important;
    color: var(--jlc-contact-charcoal);
}

body.jlc-contacto-page #page,
body.jlc-contacto-page .site-content,
body.jlc-contacto-page .site-main,
body.jlc-contacto-page .content-area,
body.jlc-contacto-page .ast-container {
    background: var(--jlc-contact-ivory) !important;
}

body.jlc-contacto-page .site-content > .ast-container,
body.jlc-contacto-page .ast-container {
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

body.jlc-contacto-page .site-content {
    padding-top: clamp(48px, 7vw, 92px);
    padding-bottom: clamp(90px, 11vw, 150px);
}

/* Título */
body.jlc-contacto-page .entry-header,
body.jlc-contacto-page header.entry-header {
    max-width: 760px;
    margin: 0 auto clamp(34px, 5vw, 58px);
    padding: 0 clamp(22px, 4vw, 56px);
}

body.jlc-contacto-page .entry-title,
body.jlc-contacto-page h1.entry-title,
body.jlc-contacto-page .wp-block-post-title,
body.jlc-contacto-page .entry-content > h1:first-child {
    color: var(--jlc-contact-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4vw, 56px) !important;
    font-weight: 400 !important;
    line-height: 1.08 !important;
    letter-spacing: -.02em !important;
    text-transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

body.jlc-contacto-page .entry-header::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 24px;
    background: var(--jlc-contact-silver);
}

/* Texto introductorio */
body.jlc-contacto-page .entry-content > p,
body.jlc-contacto-page .wp-block-post-content > p,
body.jlc-contacto-page .uagb-container-inner-blocks-wrap > p {
    max-width: 760px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-contact-charcoal) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(16px, 1.2vw, 18px) !important;
    line-height: 1.75 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Contenedor general para formularios frecuentes */
body.jlc-contacto-page form,
body.jlc-contacto-page .wpforms-container,
body.jlc-contacto-page .wpcf7,
body.jlc-contacto-page .frm_forms,
body.jlc-contacto-page .gform_wrapper {
    max-width: 760px !important;
    margin: clamp(42px, 6vw, 76px) auto 0 !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
}

/* Etiquetas */
body.jlc-contacto-page form label,
body.jlc-contacto-page .wpforms-field-label,
body.jlc-contacto-page .wpcf7 label,
body.jlc-contacto-page .gfield_label,
body.jlc-contacto-page .frm_primary_label {
    display: block;
    margin-bottom: 8px !important;
    color: var(--jlc-contact-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Campos: fondo casi invisible, línea fina, sin cajas pesadas */
body.jlc-contacto-page input[type="text"],
body.jlc-contacto-page input[type="email"],
body.jlc-contacto-page input[type="tel"],
body.jlc-contacto-page input[type="url"],
body.jlc-contacto-page input[type="number"],
body.jlc-contacto-page input[type="search"],
body.jlc-contacto-page select,
body.jlc-contacto-page textarea {
    width: 100% !important;
    min-height: 46px;
    padding: 10px 2px !important;
    background: transparent !important;
    color: var(--jlc-contact-charcoal) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--jlc-contact-silver) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

body.jlc-contacto-page textarea {
    min-height: 140px;
    resize: vertical;
    padding-top: 12px !important;
}

body.jlc-contacto-page input:focus,
body.jlc-contacto-page select:focus,
body.jlc-contacto-page textarea:focus {
    border-bottom-color: var(--jlc-contact-brown) !important;
    box-shadow: none !important;
}

/* Separación entre campos */
body.jlc-contacto-page .wpforms-field,
body.jlc-contacto-page .wpcf7-form-control-wrap,
body.jlc-contacto-page .gfield,
body.jlc-contacto-page .frm_form_field,
body.jlc-contacto-page form p {
    margin-bottom: 24px !important;
}

/* Placeholder */
body.jlc-contacto-page ::placeholder {
    color: var(--jlc-contact-muted);
    opacity: .65;
}

/* Botones: editorial y sobrio */
body.jlc-contacto-page button[type="submit"],
body.jlc-contacto-page input[type="submit"],
body.jlc-contacto-page .wpforms-submit,
body.jlc-contacto-page .wpcf7-submit,
body.jlc-contacto-page .gform_button,
body.jlc-contacto-page .frm_button_submit,
body.jlc-contacto-page .wp-block-button__link {
    appearance: none;
    border: 0 !important;
    border-bottom: 1px solid var(--jlc-contact-silver) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--jlc-contact-brown) !important;
    padding: 8px 0 6px !important;
    min-height: 0 !important;
    box-shadow: none !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    cursor: pointer;
}

body.jlc-contacto-page button[type="submit"]:hover,
body.jlc-contacto-page input[type="submit"]:hover,
body.jlc-contacto-page .wpforms-submit:hover,
body.jlc-contacto-page .wpcf7-submit:hover {
    color: var(--jlc-contact-brown) !important;
    opacity: .65;
}

/* Checkbox / privacidad */
body.jlc-contacto-page input[type="checkbox"],
body.jlc-contacto-page input[type="radio"] {
    accent-color: var(--jlc-contact-brown);
}

body.jlc-contacto-page .wpforms-field-description,
body.jlc-contacto-page .wpforms-field-sublabel,
body.jlc-contacto-page .wpcf7-not-valid-tip,
body.jlc-contacto-page .gfield_description,
body.jlc-contacto-page .frm_description {
    color: var(--jlc-contact-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-transform: none !important;
}

/* Mensajes de confirmación/error: discretos */
body.jlc-contacto-page .wpforms-confirmation-container,
body.jlc-contacto-page .wpcf7-response-output,
body.jlc-contacto-page .gform_confirmation_message,
body.jlc-contacto-page .frm_message,
body.jlc-contacto-page .frm_error_style {
    max-width: 760px;
    margin: 28px auto !important;
    padding: 16px 20px !important;
    background: transparent !important;
    color: var(--jlc-contact-brown) !important;
    border: 1px solid var(--jlc-contact-line) !important;
    border-radius: 0 !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

/* Enlaces de email / redes / privacidad */
body.jlc-contacto-page .entry-content a:not(.wp-block-button__link) {
    color: var(--jlc-contact-brown) !important;
    text-decoration: underline;
    text-decoration-color: var(--jlc-contact-silver);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

/* Separadores internos */
body.jlc-contacto-page .wp-block-separator,
body.jlc-contacto-page hr {
    max-width: 760px;
    margin: clamp(44px, 6vw, 78px) auto !important;
    border: 0 !important;
    border-top: 1px solid var(--jlc-contact-line) !important;
}

/* Móvil */
@media (max-width: 767px) {
    body.jlc-contacto-page .site-content {
        padding-top: 36px;
        padding-bottom: 78px;
    }

    body.jlc-contacto-page .entry-header,
    body.jlc-contacto-page header.entry-header {
        padding-left: 22px;
        padding-right: 22px;
        margin-bottom: 30px;
    }

    body.jlc-contacto-page .entry-title,
    body.jlc-contacto-page h1.entry-title,
    body.jlc-contacto-page .entry-content > h1:first-child {
        font-size: 36px !important;
    }

    body.jlc-contacto-page .entry-content > p,
    body.jlc-contacto-page .wp-block-post-content > p {
        padding-left: 22px;
        padding-right: 22px;
        font-size: 16px !important;
        line-height: 1.72 !important;
    }

    body.jlc-contacto-page form,
    body.jlc-contacto-page .wpforms-container,
    body.jlc-contacto-page .wpcf7,
    body.jlc-contacto-page .frm_forms,
    body.jlc-contacto-page .gform_wrapper {
        padding-left: 22px !important;
        padding-right: 22px !important;
        margin-top: 36px !important;
    }
}
