/* Tres bloques Avia de portada. El contenido, las consultas y enlaces siguen en Enfold. */
#top.inap-portal #main .inap-home-feature { min-width: 0; }
#top.inap-portal #main .inap-home-feature > .av-special-heading { margin-top: 0; margin-bottom: 16px; padding-bottom: 0; }
#top.inap-portal #main .inap-home-feature .big-preview,
#top.inap-portal #main .inap-home-feature .small-preview,
#top.inap-portal #main .inap-home-feature .slide-image,
#top.inap-portal #main .inap-home-feature .avia-image-container,
#top.inap-portal #main .inap-home-feature .avia-gallery,
#top.inap-portal #main .inap-home-feature .avia-video { width: 100%; max-width: none; margin: 0 0 12px; padding: 0; box-sizing: border-box; }
#top.inap-portal #main .inap-home-feature .big-preview,
#top.inap-portal #main .inap-home-feature .small-preview,
#top.inap-portal #main .inap-home-feature .slide-image { display: block; float: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; }
#top.inap-portal #main .inap-home-feature .big-preview > a { display: block; width: 100%; height: 100%; }
#top.inap-portal #main .inap-home-feature .big-preview img,
#top.inap-portal #main .inap-home-feature .small-preview img,
#top.inap-portal #main .inap-home-feature .slide-image img,
#top.inap-portal #main .inap-home-feature .avia-image-container img { display: block; width: 100%; max-width: none; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border-radius: 16px; }
#top.inap-portal #main .inap-home-feature .avia-image-container-inner,
#top.inap-portal #main .inap-home-feature .avia-image-container .avia_image { display: block; width: 100%; max-width: none; }
#top.inap-portal #main .inap-home-feature .avia-gallery .avia-gallery-big { display: block; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 16px; box-sizing: border-box; }
#top.inap-portal #main .inap-home-feature .avia-gallery-big-inner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; }
#top.inap-portal #main .inap-home-feature .avia-gallery-big img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
#top.inap-portal #main .inap-home-feature .avia-video,
#top.inap-portal #main .inap-home-feature .avia-iframe-wrap { position: relative; aspect-ratio: 16 / 9; height: auto; min-height: 0; padding: 0; overflow: hidden; border-radius: 16px; }
#top.inap-portal #main .inap-home-feature .avia-iframe-wrap { width: 100%; margin: 0; }
#top.inap-portal #main .inap-home-feature .avia-video iframe,
#top.inap-portal #main .inap-home-feature .avia-video .av-click-to-play-overlay { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; }
#top.inap-portal #main .inap-home-feature .avia-video img { width: 100%; height: 100%; object-fit: cover; }
#top.inap-portal #main .inap-home-feature .template-blog .post { margin-top: 0; padding-top: 0; }
#top.inap-portal #main .inap-home-feature .template-blog .entry-content-wrapper { width: 100%; margin-left: 0; }
#top.inap-portal #main .inap-home-feature .avia-button-wrap { margin-top: 12px; }
/* Respetar las opciones Avia de visibilidad y apilado en móvil. */

/* Encabezados próximos al contenido y tipografía ligera para títulos largos. */
#top.inap-portal #main .inap-home-feature > .av-special-heading .av-special-heading-tag {
    font: 500 18px/1.5 'Poppins', sans-serif; letter-spacing: 0;
}
#top.inap-portal #main .inap-home-feature .av-special-heading + .avia-video,
#top.inap-portal #main .inap-home-feature .av-special-heading + .avia-image-container,
#top.inap-portal #main .inap-home-feature .av-special-heading + .avia-gallery,
#top.inap-portal #main .inap-home-feature .av-special-heading + .template-blog { margin-top: 0; }
#top.inap-portal #main .inap-home-feature--news .template-blog { margin-top: 0; padding-top: 0; }
#top.inap-portal #main .inap-home-feature--news .entry-content-header { margin: 0; padding: 0; }
#top.inap-portal #main .inap-home-feature--news .post-title,
#top.inap-portal #main .inap-home-feature--news .entry-title,
#top.inap-portal #main .inap-home-feature--news .slide-entry-title {
    margin: 0; padding: 0; color: #113972; font: 400 16px/1.55 'Poppins', sans-serif;
    letter-spacing: 0; text-transform: none; overflow-wrap: break-word;
}
#top.inap-portal #main .inap-home-feature--news .post-title a,
#top.inap-portal #main .inap-home-feature--news .entry-title a,
#top.inap-portal #main .inap-home-feature--news .slide-entry-title a { color: inherit; text-decoration: none; }
#top.inap-portal #main .inap-home-feature--news .post-title a:hover,
#top.inap-portal #main .inap-home-feature--news .entry-title a:hover { text-decoration: underline; }

/* Inicio móvil: contenedores de las secciones ocultas, validados en inap.test. */
@media (max-width: 767px) {
    #top.home.inap-portal #main #after_section_1,
    #top.home.inap-portal #main #after_grid_row_2 {
        display: none !important;
    }
}
#top .inap-social-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
}

#top .inap-social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 112px;
    padding: 16px 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    box-sizing: border-box;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font: 500 14px/1.4 "Poppins", sans-serif;
}

#top .inap-social-card > i,
#top .inap-social-x-icon {
    display: block;
    font-size: 28px;
    line-height: 1;
}

#top .inap-social-x-icon {
    font-family: Arial, sans-serif;
}

#top .inap-social-facebook {
    background: #0057a8;
}

#top .inap-social-youtube {
    background: #d90000;
}

#top .inap-social-x {
    background: #111;
}

#top .inap-social-instagram {
    background: linear-gradient(135deg, #833ab4, #c13584);
}

#top .inap-social-card:hover {
    color: #fff;
    text-decoration: none;
    filter: brightness(.92);
}

#top .inap-social-card:focus-visible {
    outline: 3px solid #003876;
    outline-offset: 4px;
}

@media (min-width: 768px) {
    #top .inap-social-cards {
        grid-template-columns: 1fr;
    }

    #top .inap-social-card {
        flex-direction: row;
        min-height: 72px;
        gap: 14px;
        padding: 14px 20px;
    }
}
/* Contacto INAP — WPForms 10409 */
#top #wpforms-10409 {
    margin: 20px 0 32px;
    color: #173b63;
    font-family: "Poppins", sans-serif;
}

#top #wpforms-10409 .wpforms-field {
    padding: 0;
    margin-bottom: 22px;
}

#top #wpforms-10409 .wpforms-field-label {
    display: block;
    margin-bottom: 8px;
    color: #003876;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
}

#top #wpforms-10409 .wpforms-required-label {
    color: #bd1638;
}

#top #wpforms-10409 .wpforms-field-row {
    max-width: 100% !important;
}

#top #wpforms-10409 input:is(
    [type="text"],
    [type="email"],
    [type="tel"],
    [type="number"],
    [type="url"]
),
#top #wpforms-10409 textarea,
#top #wpforms-10409 select {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #b8c7d8;
    border-radius: 9px;
    background: #fff;
    color: #173b63;
    font: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-shadow: none;
}

#top #wpforms-10409 textarea {
    min-height: 170px;
    resize: vertical;
}

#top #wpforms-10409 input::placeholder,
#top #wpforms-10409 textarea::placeholder {
    color: #65758a;
    opacity: 1;
}

#top #wpforms-10409 .wpforms-field-description,
#top #wpforms-10409 .wpforms-field-sublabel {
    margin-top: 7px;
    color: #52647a;
    font-size: 12px;
    line-height: 1.6;
}

#top #wpforms-10409 .wpforms-field input:focus,
#top #wpforms-10409 textarea:focus,
#top #wpforms-10409 select:focus {
    border-color: #0057a8;
    outline: 2px solid #0057a8;
    outline-offset: 2px;
    box-shadow: none;
}

#top #wpforms-10409 .wpforms-field input.wpforms-error,
#top #wpforms-10409 textarea.wpforms-error,
#top #wpforms-10409 [aria-invalid="true"] {
    border-color: #b42318;
}

#top #wpforms-10409 label.wpforms-error,
#top #wpforms-10409 em.wpforms-error {
    display: block;
    margin-top: 7px;
    color: #b42318;
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

#top #wpforms-10409 .wpforms-submit-container {
    padding-top: 16px;
}

#top #wpforms-10409 button.wpforms-submit {
    min-height: 48px;
    padding: 12px 28px;
    border: 1px solid #003876;
    border-radius: 9px;
    background: #003876;
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    box-shadow: none;
}

#top #wpforms-10409 button.wpforms-submit:hover {
    border-color: #002855;
    background: #002855;
}

#top #wpforms-10409 button.wpforms-submit:focus-visible {
    outline: 3px solid #0057a8;
    outline-offset: 4px;
}

#top #wpforms-10409 button.wpforms-submit:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 767px) {
    #top #wpforms-10409 button.wpforms-submit {
        width: 100%;
    }
}

/* Tarjetas de contacto INAP */
#top .inap-contact-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 24px 0;
    font-family: "Poppins", sans-serif;
}

#top .inap-contact-card {
    box-sizing: border-box;
    min-width: 0;
    padding: 28px 18px;
    border: 1px solid #e2e9f1;
    border-radius: 12px;
    background: #fff;
    color: #294d76;
    text-align: center;
}

#top .inap-contact-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 12px;
    background: #f0f5fb;
    color: #003876;
    font-size: 25px;
}

#top .inap-contact-card h3 {
    margin: 0 0 12px;
    color: #003876;
    font: 500 17px/1.4 "Poppins", sans-serif;
    text-transform: none;
    letter-spacing: 0;
}

#top .inap-contact-card p,
#top .inap-contact-card address {
    margin: 0;
    color: #294d76;
    font: normal 400 14px/1.7 "Poppins", sans-serif;
    overflow-wrap: anywhere;
}

#top .inap-contact-card .inap-contact-city {
    margin-bottom: 8px;
    color: #003876;
    font-weight: 500;
}

#top .inap-contact-card a {
    display: inline-block;
    padding: 4px 0;
    color: #003876;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#top .inap-contact-card a:hover {
    color: #0057a8;
}

#top .inap-contact-card a:focus-visible {
    outline: 2px solid #0057a8;
    outline-offset: 4px;
    border-radius: 3px;
}

@media (max-width: 989px) {
    #top .inap-contact-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #top .inap-contact-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #top .inap-contact-card {
        padding: 24px 20px;
    }
}

/* Contraste: solo los tres bloques de portada y su botón de galería. */
#top.home.inap-portal #main .inap-home-feature > .av-special-heading .av-special-heading-tag,
#top.home.inap-portal #main .inap-home-feature > .av-special-heading .av-special-heading-tag a {
    color: #003876 !important;
}

#top.home.inap-portal #main .inap-home-feature--image .avia-button {
    background: #003876 !important;
    border-color: #003876 !important;
    color: #fff !important;
}

#top.home.inap-portal #main .inap-home-feature--image .avia-button .avia_iconbox_title,
#top.home.inap-portal #main .inap-home-feature--image .avia-button .avia_button_icon {
    color: #fff !important;
}


/* Navegación del slider principal: área pulsable de 24 × 24 px */
#top #layer_slider_1 .ls-bottom-slidebuttons {
    height: 24px !important;
    vertical-align: middle;
}

#top #layer_slider_1 .ls-bottom-slidebuttons a {
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    width: 24px !important;
    height: 24px !important;
    margin: 0 4px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: none !important;
}

#top #layer_slider_1 .ls-bottom-slidebuttons a::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #68788b;
}

#top #layer_slider_1 .ls-bottom-slidebuttons a.ls-nav-active::before,
#top #layer_slider_1 .ls-bottom-slidebuttons a:hover::before {
    background: #003876;
}

#top #layer_slider_1 .ls-bottom-slidebuttons a:focus-visible {
    outline: 2px solid #003876;
    outline-offset: 2px;
}

#top.home.inap-portal #main .inap-home-feature--image .avia-button:hover {
    background: #002855 !important;
    border-color: #002855 !important;
}

#top.home.inap-portal #main .inap-home-feature--image .avia-button:focus-visible {
    outline: 3px solid #0057a8;
    outline-offset: 4px;
}
