/* --- LA CAJA BLANCA (Recreando la columna de Elementor) --- */
.custom-marphil-wrapper {
    background-color: #ffffff; /* Ajusta este color si en Elementor no era blanco puro */
    border-radius: 10px;
    padding: 41px 53px 60px 50px;
    margin: -100px 0px 112px 0px; /* Hace que se superponga hacia la sección de arriba */
    position: relative;
    z-index: 99;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); /* Sombra sutil opcional */
}

/* --- TÍTULO --- */
.custom-marphil-form .titulo-formulario {
    /* font-family: var(--e-global-typography-65fb935-font-family, "Barlow", Sans-serif); */
    font-size: 28px;
    font-weight: 600;
    text-align: center;
    color: #000000AD;
    margin-bottom: 25px;
    line-height: 1.2;
}

/* --- GRILLA DEL FORMULARIO --- */
.custom-marphil-form .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: -32px;
}
.custom-marphil-form .elementor-field-group {
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 32px;
    box-sizing: border-box;
}
.custom-marphil-form .elementor-col-100 { width: 100%; }
.custom-marphil-form .elementor-col-50 { width: 50%; }

/* --- INPUTS Y SELECT --- */
.custom-marphil-form .elementor-field-textual {
    width: 100% !important;
    background-color: transparent !important;
    border-width: 0px 0px 1px 0px !important; /* Solo línea abajo */
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 !important;
    padding: 6px 5px !important;
    /* font-family: var(--e-global-typography-text-font-family, "Barlow", Sans-serif) !important; */
    font-size: 14px !important;
    color: var(--e-global-color-text, #333) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
}

/* --- ESTADO FOCUS (Al hacer clic en el campo) --- */
.custom-marphil-form .elementor-field-textual:focus,
.custom-marphil-form .elementor-field-textual:active,
.custom-marphil-form .elementor-field-textual:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #808080 !important; /* Solo pintamos la línea de abajo */
    background-color: transparent !important;
}

/* --- SELECT CUSTOM (Ancho y ocultar flecha nativa) --- */
.custom-marphil-form .elementor-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
}
.custom-marphil-form select.elementor-field-textual {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 30px !important;
    cursor: pointer;
    width: 100% !important; /* Fuerza a que ocupe todo el ancho */
}



/* Ocultar etiquetas */
.custom-marphil-form .elementor-screen-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* --- BOTÓN ENVIAR --- */
.custom-marphil-form .e-form__buttons {
    text-align: center;
    margin-top: 10px;
}
.custom-marphil-form .btn-enviar-marphil {
    background-color: #808080; /* Color exacto que sacamos de tu CSS */
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 12px 45px;
    /* font-family: "Barlow", Sans-serif; */
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}
.custom-marphil-form .btn-enviar-marphil:hover {
    background-color: #000000AD;
    color: #ffffff;
}

.custom-marphil-form .mt-2 { margin-top: 15px; }

/* --- RESPONSIVE DE LA CAJA (De tu código original) --- */
@media (max-width: 1024px) {
    .custom-marphil-wrapper {
        margin: -170px 130px 70px 130px;
        padding: 41px 53px 53px 50px;
    }
}
@media (max-width: 767px) {
    .custom-marphil-wrapper {
        margin: -80px 0px 50px 0px;
        padding: 20px 30px 40px 30px;
    }
    .custom-marphil-form .elementor-col-50 { width: 100%; }
}





/********************************************************/

/* --- LA CAJA CON FONDO BLANCO SEMI-TRANSPARENTE --- */
.custom-taller-wrapper {
    background-color: #FFFFFFD1; /* Color extraído de tu código (Blanco con transparencia) */
    border-radius: 10px;
    padding: 30px 41px 30px 41px;
}

/* --- TÍTULO --- */
.custom-taller-form .titulo-formulario {
    /* font-family: "Barlow", Sans-serif; */
    font-size: 29px;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    color: #000000AD;
    margin-bottom: 25px;
    line-height: 32px;
}

/* --- GRILLA DEL FORMULARIO --- */
.custom-taller-form .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: -24px; /* Margen ligeramente más pequeño que el de contacto según tu CSS */
}
.custom-taller-form .elementor-field-group {
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 24px;
    box-sizing: border-box;
}
.custom-taller-form .elementor-col-100 { width: 100%; }
.custom-taller-form .elementor-col-50 { width: 50%; }

/* --- INPUTS --- */
.custom-taller-form .elementor-field-textual {
    width: 100% !important;
    background-color: transparent !important;
    border-width: 0px 0px 1px 0px !important;
    border-style: solid !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    border-radius: 0 !important;
    padding: 6px 5px !important;
    /* font-family: var(--e-global-typography-text-font-family, "Barlow", Sans-serif) !important; */
    font-size: 14px !important;
    color: var(--e-global-color-text, #333) !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease;
}

/* --- ESTADO FOCUS (Al hacer clic) --- */
.custom-taller-form .elementor-field-textual:focus,
.custom-taller-form .elementor-field-textual:active,
.custom-taller-form .elementor-field-textual:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #808080 !important;
    background-color: transparent !important;
}

/* Ocultar etiquetas */
.custom-taller-form .elementor-screen-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* --- BOTÓN ENVIAR --- */
.custom-taller-form .e-form__buttons {
    text-align: center;
    margin-top: 10px;
}
.custom-taller-form .btn-enviar-taller {
    background-color: #808080;
    color: #ffffff;
    border: none;
    border-radius: 100px;
    padding: 12px 45px;
    /* font-family: "Barlow", Sans-serif; */
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
}
.custom-taller-form .btn-enviar-taller:hover {
    background-color: #000000;
    color: #ffffff;
}

.custom-taller-form .mt-2 { margin-top: 15px; }

/* --- RESPONSIVE DE LA CAJA (De tu código original) --- */
@media (max-width: 1024px) {
    .custom-taller-wrapper {
        margin: 70px 130px 70px 130px;
    }
}
@media (max-width: 767px) {
    .custom-taller-wrapper {
        margin: 0px 0px 50px 0px;
        padding: 20px 20px 40px 20px;
    }
    .custom-taller-form .elementor-col-50 { width: 100%; }
}



/************************************************************
/* --- CONTENEDOR PRINCIPAL DE LA CAJA BLANCA --- */
.custom-reserva-wrapper {
    background-color: #FFFFFFD1 !important;
    border-radius: 10px !important;
    padding: 41px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 480px; /* Para mantener una proporción elegante */
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- TÍTULO --- */
.custom-reserva-form .titulo-formulario {
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 36px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    line-height: 35px !important;
    color: #000000AD !important;
    text-align: center !important;
    margin-top: 11px !important;
    margin-bottom: 24px !important;
}

/* --- WRAPPER DE CAMPOS (Flexbox) --- */
.custom-reserva-form .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: -24px;
}

/* --- GRUPOS DE CAMPOS --- */
.custom-reserva-form .elementor-field-group {
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 24px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Anchos de columnas */
.custom-reserva-form .elementor-col-100 {
    width: 100%;
}
.custom-reserva-form .elementor-col-50 {
    width: 50%;
}

/* --- CAMPOS DE TEXTO E INPUTS (Estilo minimalista) --- */
.custom-reserva-form .elementor-field-textual {
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #1f2124 !important;
    background-color: transparent !important;
    border-width: 0px 0px 1px 0px !important;
    border-style: solid !important;
    border-color: #00000021 !important; /* Línea inferior sutil */
    border-radius: 0px !important;
    padding: 8px 0px !important;
    width: 100% !important;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Evitar autocompletado con fondos extraños */
.custom-reserva-form .elementor-field-textual:-webkit-autofill,
.custom-reserva-form .elementor-field-textual:-webkit-autofill:hover, 
.custom-reserva-form .elementor-field-textual:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2124 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- ESTADO FOCUS (Al hacer clic en un input) --- */
.custom-reserva-form .elementor-field-textual:focus,
.custom-reserva-form .elementor-field-textual:active,
.custom-reserva-form .elementor-field-textual:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #808080 !important; /* Subrayado marrón al hacer focus */
    background-color: transparent !important;
}

/* --- SELECT PERSONALIZADO --- */
.custom-reserva-form .elementor-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
}
.custom-reserva-form select.elementor-field-textual {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 30px !important;
    cursor: pointer;
    width: 100% !important;
}



/* Textarea scroll manual */
.custom-reserva-form textarea.elementor-field-textual {
    resize: vertical;
    min-height: 80px;
}

/* --- PRIVACIDAD --- */
.custom-reserva-form .privacidad-group {
    width: 100%;
    margin-top: 10px;
}
.custom-reserva-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    /* font-family: "Barlow", Sans-serif; */
    font-size: 14px;
    font-weight: 300;
    color: #000000AD;
    line-height: 1.4;
    text-align: left;
}
.custom-reserva-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}
.custom-reserva-form .checkbox-label a {
    color: #808080;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}
.custom-reserva-form .checkbox-label a:hover {
    color: #000000AD;
    text-decoration: underline;
}

/* --- BOTÓN DE ENVIAR --- */
.custom-reserva-form .submit-group {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}
.custom-reserva-form .btn-enviar-reserva {
    background-color: var(--e-global-color-primary, #808080) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 100px 100px 100px 100px !important;
    padding: 12px 45px !important;
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    width: auto;
}
.custom-reserva-form .btn-enviar-reserva:hover,
.custom-reserva-form .btn-enviar-reserva:focus {
    background-color: #000000AD !important;
    color: #ffffff !important;
}

/* Ocultar etiquetas del screen reader */
.custom-reserva-form .elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 767px) {
    .custom-reserva-wrapper {
        padding: 25px 20px !important;
    }
    .custom-reserva-form .elementor-col-50 {
        width: 100%; /* Pasan a 100% en pantallas móviles */
    }
}


/***********************************************************/

/* --- CONTENEDOR PRINCIPAL DE LA CAJA BLANCA --- */
.custom-cocciones-wrapper {
    background-color: #FFFFFFE6 !important; /* 90% opacity white as in the original */
    border-radius: 10px !important;
    padding: 30px 53px 30px 50px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    transition: background 0.3s, border 0.3s, border-radius 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* --- TÍTULO --- */
.custom-cocciones-form .titulo-formulario {
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 28px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    line-height: 35px !important;
    color: #000000AD !important;
    text-align: center !important;
    margin-top: 12px !important;
    margin-bottom: 24px !important;
}

/* --- WRAPPER DE CAMPOS (Flexbox) --- */
.custom-cocciones-form .elementor-form-fields-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-left: -5px;
    margin-right: -5px;
    margin-bottom: -24px;
}

/* --- GRUPOS DE CAMPOS --- */
.custom-cocciones-form .elementor-field-group {
    padding-right: 5px;
    padding-left: 5px;
    margin-bottom: 32px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Anchos de columnas */
.custom-cocciones-form .elementor-col-100 {
    width: 100%;
}
.custom-cocciones-form .elementor-col-50 {
    width: 50%;
}

/* --- CAMPOS DE TEXTO E INPUTS (Estilo minimalista) --- */
.custom-cocciones-form .elementor-field-textual {
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 15px !important;
    font-weight: 300 !important;
    color: #1f2124 !important;
    background-color: transparent !important;
    border-width: 0px 0px 1px 0px !important;
    border-style: solid !important;
    border-color: #00000021 !important; /* Línea inferior sutil */
    border-radius: 0px !important;
    padding: 8px 0px !important;
    width: 100% !important;
    box-sizing: border-box;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.3s ease, border-bottom-color 0.3s ease;
}

/* Evitar autocompletado con fondos extraños */
.custom-cocciones-form .elementor-field-textual:-webkit-autofill,
.custom-cocciones-form .elementor-field-textual:-webkit-autofill:hover, 
.custom-cocciones-form .elementor-field-textual:-webkit-autofill:focus {
    -webkit-text-fill-color: #1f2124 !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* --- ESTADO FOCUS (Al hacer clic en un input) --- */
.custom-cocciones-form .elementor-field-textual:focus,
.custom-cocciones-form .elementor-field-textual:active,
.custom-cocciones-form .elementor-field-textual:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #808080 !important; /* Subrayado marrón al hacer focus */
    background-color: transparent !important;
}

/* --- SELECT PERSONALIZADO --- */
.custom-cocciones-form .elementor-select-wrapper {
    position: relative;
    width: 100%;
    display: block;
}
.custom-cocciones-form select.elementor-field-textual {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding-right: 30px !important;
    cursor: pointer;
    width: 100% !important;
}

/* Ocultar flecha por defecto en IE */
.custom-cocciones-form select.elementor-field-textual::-ms-expand {
    display: none;
}

/* La flecha en SVG (Caret de Elementor) */
.custom-cocciones-form .select-caret-down-wrapper {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Deja pasar los clics */
    color: #000000AD;
    display: flex;
    align-items: center;
    z-index: 2;
}

.custom-cocciones-form .select-caret-down-wrapper svg {
    display: block;
    width: 10px;
    height: 10px;
}

/* Textarea scroll manual */
.custom-cocciones-form textarea.elementor-field-textual {
    resize: vertical;
    min-height: 80px;
}

/* --- PRIVACIDAD --- */
.custom-cocciones-form .privacidad-group {
    width: 100%;
    margin-top: 10px;
}
.custom-cocciones-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    /* font-family: "Barlow", Sans-serif; */
    font-size: 14px;
    font-weight: 300;
    color: #000000AD;
    line-height: 1.4;
    text-align: left;
}
.custom-cocciones-form .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
}
.custom-cocciones-form .checkbox-label a {
    color: #808080;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}
.custom-cocciones-form .checkbox-label a:hover {
    color: #000000AD;
    text-decoration: underline;
}

/* --- BOTÓN DE ENVIAR --- */
.custom-cocciones-form .submit-group {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    justify-content:center;
}
.custom-cocciones-form .btn-enviar-cocciones {
    background-color: #808080 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 100px 100px 100px 100px !important;
    padding: 12px 45px !important;
    /* font-family: "Barlow", Sans-serif !important; */
    font-size: 15px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-block;
    width: auto;
}
.custom-cocciones-form .btn-enviar-cocciones:hover,
.custom-cocciones-form .btn-enviar-cocciones:focus {
    background-color: #000000AD !important;
    color: #ffffff !important;
}

/* Ocultar etiquetas del screen reader */
.custom-cocciones-form .elementor-screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 767px) {
    .custom-cocciones-wrapper {
        padding: 25px 20px !important;
    }
    .custom-cocciones-form .elementor-col-50 {
        width: 100%; /* Pasan a 100% en pantallas móviles */
    }
}
