/*paginas que utilizar form para página contacto.*/

.page-id-23 .col-full {
    max-width: 1360px;
}

.page-id-23 .hfeed.site {
    overflow: hidden;
}

.page-id-23 .entry-title {
    text-align: center;
    margin: 2rem 0;
}

.page-id-23 .contact-form-container {
    padding: 2rem 1rem;
}

.page-id-23 label {
    color: #06038d;
    margin-bottom: 0;
}

.page-id-23 input[type="text"] {
    padding: .6180469716em;
    background-color: #f6f6f6;
    color: #43454b;
    border: 0;
    -webkit-appearance: none;
    box-sizing: border-box;
    font-weight: 400;
    box-shadow: inset 0 1px 1px rgb(0 0 0 / 13%);
}

.page-id-23 .form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #f6f6f6;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.page-id-23 .wpcf7-textarea {
    height: 150px;
}

.form-check-input {
    position: absolute;
    margin-top: .3rem;
    margin-left: 0rem !important;
    display: inline-block;
    width: 120px;
    margin-top: 1px;
}

.trabaja_bloques {
    border: 1px solid #0b0180;
    border-radius: 10px;
    padding: 18px;
}

.trabaja_bloques h3 {
    color: #001580;
    font-size: 20px;
}

.trabaja_bloques ul {
    color: #001580;
    font-size: 15px;
}

#wpcf7-f39-o1 form span {
    font-size: 14px;
    color: #0b0180;
    line-height: 13px;
    text-align: right;
}

.titulo_azul h3 {
    color: #061680;
    font-weight: 700;
    font-size: 15px;
    margin: 30px 0 0 0;
    display: flex;
    white-space: pre;
}

.titulo_azul h3::after {
    content: "";
    display: inline-flex;
    width: 100%;
    height: 1px;
    background: #061680;
    margin: 9px 0 0 15px;
}

#wpcf7-f39-o1 .form-control {
    display: inline-block;
    width: 68%;
    float: right;
    border: solid 1px #0b0180 !important;
    border-radius: 8px !important;
    color: #0b0180;
    font-size: 14px;
}

span.wpcf7-list-item {
    display: inline-block;
    margin: 0 0 0 1em;
}

.col-full.contenedor-page-formularios {
    width: 100%;
    margin: 0px;
    padding: 0px;
    max-width: 100%;
}

.col-full.contenedor-page-formularios #primary {
    width: 100%;
    margin: 0px;
    padding: 0px;
    max-width: 100%;
}

#wpcf7-f39-p40-o1.wpcf7 {
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
}

.header-base .entry-title {
    color: #ec1c24;
    font-weight: 700;
    font-size: 20px;
    margin: 30px auto;
    display: flex;
    white-space: pre;
    max-width: 95%;
}

.header-base .entry-title::after {
    content: "";
    display: inline-flex;
    width: 100%;
    height: 2px;
    background: #ec1c24;
    margin: 14px 0 0 15px;
}

.page-id-23 .wpcf7-form-control.wpcf7-submit {
    float: right;
    color: #06038d;
    border: 2px solid #06038d;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 5px 16px;
    width: 100%;
    height: 45px;
}

.page-id-23 .wpcf7-form-control.wpcf7-submit:hover {
    float: right;
    color: #ffffff;
    border: 1px solid #ec1c24;
    background-color: #ec1c24;
    border-radius: 8px;
    padding: 5px 16px;
    width: 100%;
    height: 45px;
}

.interna_full {
    width: 90%;
    max-width: 95%;
    margin: auto;
    padding: 0px;
}

.wpcf7-form-control-wrap {
    width: 100%;
    display: block;
}

.wapf-input {
    display: none;
}

.page-id-23 .wpcf7-spinner .ajax-loader {
    display: inline-block !important;
    background-color: #06048d;
    opacity: 1;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: .5rem;
    padding: 0;
    margin: 0;
    position: absolute;
}

.page-id-23 .wpcf7-spinner .ajax-loader::before {
    content: "Enviando mensaje...";
    position: absolute;
    background-color: #06048d;
    color: white;
    text-align: center;
    padding: .5rem;
    font-weight: bold;
    top: unset;
    left: unset;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: .5rem;
    transform-origin: none;
    animation-name: none;
    animation-duration: none;
    animation-timing-function: none;
    animation-iteration-count: none;
}

.page-id-23 .wpcf7-spinner form.sent .wpcf7-response-output {
    color: #06038d;
    border: none;
    margin: 1rem 5rem 0 0;
    padding: 0;
    text-align: center;
    background: none;
    width: 100%;
}

#email {
    text-transform: lowercase;
}

.page-id-23 .wpcf7-spinner {
    display: block;
    background-color: #fcfcfc;
    border: 2px solid #06048d;
    opacity: 1;
    width: 100%;
    height: 46px;
    border-radius: 0.5rem;
    padding: 0;
    margin: 0;
    position: relative;
}

.page-id-23 .wpcf7-spinner::before {
    content: "Enviando mensaje...";
    position: absolute;
    background-color: white;
    color: #06028d;
    top: 8px;
    text-align: center;
    width: 100%;
    height: 25px;
    border: none;
    border-radius: none;
    -webkit-animation: none;
    animation: none;
}

#contacto .wpcf7 form .wpcf7-response-output {
    border: none !important;
}

/* Form Contact Javier */
/* Titulo de la pagina */
#contacto .entry-title {
    display: none;
}

/* Porcentaje del Form */
#contacto .wp-block-column.is-vertically-aligned-stretch.contacto-formulario.is-layout-flow.wp-block-column-is-layout-flow {
    flex-basis: 55% !important;
    padding: 2rem;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Caja de la imagen */
#contacto .wp-block-column.is-vertically-aligned-stretch.bx-imagen-contacto.is-layout-flow.wp-block-column-is-layout-flow {
    flex-basis: 45% !important;
    margin: 0;
}

/* Quitar espaciados */
#main {
    padding: 0;
    margin: 0;
}

#contacto .aligncenter.size-full {
    margin: 0;
    padding: 0;
}

#contacto .wp-block-columns.alignfull.contacto-pabre-bx.is-layout-flex.wp-container-core-columns-is-layout-28f84493.wp-block-columns-is-layout-flex {
    min-height: 67dvh;
}

#contacto .col-md-6 {
    padding: 0;
    margin: 0;
    width: 48%;
}

#contacto .col-12 {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    width: 100%;
}

.wpcf7-form .row {
    padding: 0.1rem 0rem;
    justify-content: space-between;
    margin: 0;
}

.wpcf7-form .row.mt-3 {
    padding: 0;
    margin: 0;
}

.mt-3 {
    margin: 0 !important;
}

#contacto #formTabs {
    margin: 0.8rem 0rem 0rem 0rem;
    padding: 0;
    border-width: 0;
}

#contacto #wpcf7-f1279432-p1279430-o3 .col-md-12,
#wpcf7-f1279443-p1279430-o4 .col-md-12 {
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
    width: 100%;
}

#contacto .col-md-12 {
    padding: 0;
}

#contacto .nota-info {
    display: flex;
    font-family: "AvenirNextLTPro";
}

#contacto .nota-info p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    justify-content: flex-start;
    display: flex;
}

#contacto .wpcf7-spinner {
    display: none;
}

/* Titulo del Form */
#contacto .wp-block-heading {
    font-weight: 400;
    margin-top: 3rem;
}

/* Sub titulo del Form */
#contacto .wp-block-heading.has-text-align-left {
    display: flex;
    font-weight: 300;
    font-size: 1.2rem;
    padding: 0;
    margin: 0;
    font-family: "AvenirNextLTPro";
}

/* Titulos de los input */
#contacto .wpcf7-form label {
    margin: 0px 0px 0px 1px;
    z-index: 99;
    background: #fafafa;
    color: #001e79;
    font-weight: 400;
    font-size: 13px;
    text-transform: initial;
    font-family: "AvenirNextLTPro";
}

/* Textos de los input */
#contacto .wpcf7-form-control.wpcf7-text {
    margin: 0;
    padding: 0.4rem 1rem;
    font-size: 16px;
    color: #000084;
    background-color: #fff;
    font-weight: 400;
    font-family: "AvenirNextLTPro";
}

#contacto .wpcf7-form-control.wpcf7-text:focus {
    color: #1a1a1ad4;
    background-color: #edededc4;
    box-shadow: 0 0 0 .1rem rgba(13, 110, 253, 0.25);
}

.wpcf7 form.sent .wpcf7-response-output::before {
    content: "\2713";
    background-color: #06038d;
    padding: .2rem .5rem .2rem;
    border-radius: 2rem;
    margin: 0 .5rem 0 0;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

/* Textos de los selec */
#contacto .wpcf7-form-control.wpcf7-select {
    margin: 0;
    padding: 0.4rem 2rem 0.4rem 1rem;
    font-size: 16px;
    color: #5f5f5f;
    background-color: #fff;
    font-weight: 400;
    font-family: "AvenirNextLTPro";
    border: 1px solid #08068d;
}

#contacto .wpcf7-form-control.wpcf7-select:focus {
    color: #1a1a1ad4;
    background-color: #edededc4;
    box-shadow: 0 0 0 .1rem rgba(13, 110, 253, 0.25);
}

/* Mensaje input incorrecto */
#contacto .wpcf7-not-valid-tip {
    color: #da3832;
    font-size: .8rem;
}

/* Barra de pestañas */
#contacto .nav-tabs .nav-link {
    color: #a7a7a7;
    font-weight: 400;
    background: #fff;
    font-family: "AvenirNextLTPro";
    text-decoration: none;
}

#contacto .nav-tabs .nav-link.active {
    color: #001e79;
    font-weight: 400;
}

/* Input´s del Form */
#contacto input#fecha {
    color: #808080;
    height: 35px;
}

#contacto textarea::placeholder,
#contacto input::placeholder {
    color: #808080;
}

#contacto input {
    color: #2b2b2b;
}

/* Boton formulario */
#contacto .boton-enviar.d-flex {
    justify-content: end;
    margin: 0;
    padding: 0;
}

#contacto .btn-enviar {
    width: 7rem;
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #000084;
    border-radius: 7px;
    cursor: pointer;
    transition: .2s all;
    margin: 0.8rem 0rem 0rem 0rem;
}

#contacto .btn-enviar:hover {
    color: #fafafa;
    background: #0032c8;
    border-radius: 7px;
}

.page-id-1279430 #contacto,
.page-id-1279430 .page.type-page,
.page-id-1279430 .contacto-pabre-bx {
    margin-bottom: 0;
}

#content {
    min-height: 0;
}

#contacto textarea.form-control {
    min-height: 4rem;
    height: 6rem;
}

/* Contenedor imagen responsive */
#contacto .contenedor-imagen-foto {
    position: relative;
    overflow: hidden;
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 300px;
}

#contacto .contenedor-imagen-foto img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Agregando asteriscos para campos requeridos */
.required::after {
    content: " *";
    color: #da3832;
    font-weight: 700;
}

/* Agregando iconos para el navbar usando Unicode */
.icon-building::before {
    content: "🏢";
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.icon-calendar::before {
    content: "📅";
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.icon-message::before {
    content: "💬";
    margin-right: 0.5rem;
    font-size: 1.1em;
}

    .icon-suggestion::before {
    content: "💡";
    margin-right: 0.5rem;
    font-size: 1.1em;
}

/* Mejorando el diseño responsivo con viewport units y clamp() */
/* Layout principal con escalado responsivo */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    max-width: none;
}

.image-section {
    flex: 1;
    min-width: 50vw;
    background: url("https://qa.pizzapizza.cl/wp-content/uploads/2025/08/pizza-contact1.png") center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: clamp(1rem, 4vw, 3rem);
}

.form-section {
    flex: 1;
    min-width: 50vw;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: white;
}

/* Contenedor del formulario con escalado */
.contact-container {
    width: 100%;
    max-width: clamp(400px, 90vw, 700px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 132, 0.08), 0 8px 16px rgba(218, 56, 50, 0.04);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 132, 0.1);
}

/* OPTIMIZACIÓN MOBILE CONTACTO   */
@media (max-width: 900px) {

    /* ⚡ PRIORIDAD 1: Reducir altura de la imagen */
    .image-section {
        min-height: 22vh !important;  /* antes 40–45vh */
        max-height: 25vh;
        padding: 1rem !important;
        background-position: center top;
    }

    /* ⚡ PRIORIDAD 2: Ampliar área del formulario en mobile */
    .form-section {
        padding: 1.5rem 1rem !important;
        width: 100% !important;
    }

    .contact-container {
        max-width: 100% !important;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0;
        box-shadow: none; /* más limpio para mobile */
    }

    /* ⚡ PRIORIDAD 3: Navbar/tab más legible */
    #contacto .nav-tabs .nav-link {
        font-size: 0.9rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    #contacto .nav-tabs {
        justify-content: space-around;
        border-bottom: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    /* ⚡ PRIORIDAD 4: Inputs full width y más cómodos */
    #contacto .wpcf7-form-control {
        width: 100% !important;
        font-size: 15px !important;
        padding: .7rem 1rem !important;
    }

    .wpcf7-form .row {
        flex-direction: column;
    }

    /* ⚡ PRIORIDAD 5: Espaciados más suaves */
    #contacto .wp-block-heading {
        margin-top: 1rem !important;
        font-size: 1.3rem !important;
        text-align: left;
    }

    #contacto .wp-block-heading.has-text-align-left {
        font-size: 1rem !important;
        margin-bottom: .5rem;
    }

    /* ⚡ PRIORIDAD 6: Botón más visible */
    #contacto .btn-enviar {
        width: 100% !important;
        padding: 0.8rem 0;
        font-size: 0.95rem;
    }

    /* ⚡ PRIORIDAD 7: Reducir márgenes inútiles */
    .page-id-23 .entry-title {
        margin: 1rem 0 .5rem !important;
        font-size: 1.3rem !important;
    }

    /* ⚡ PRIORIDAD 8: Evitar colapsos de columna */
    .col-12,
    .col-md-6,
    .col-md-12 {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

@media (max-width: 480px) {

    .image-section {
        min-height: 18vh !important;
        background-size: cover;
    }

    #contacto .nav-tabs .nav-link {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.5rem !important;
    }

    #contacto .wpcf7-form-control {
        font-size: 14px !important;
        padding: 0.6rem .8rem !important;
    }

    #contacto .wpcf7-form label {
        font-size: 12px !important;
    }

    #contacto .btn-enviar {
        font-size: 0.85rem !important;
        padding: 0.7rem !important;
    }
}
