/* =========================
   NUEVA VÍA - FOOTER
========================= */

/* Títulos */
.site-footer .widget_nav_menu .widget-title {
    color: #FFFFFF;
    font-family: 'Google Sans', sans-serif !important;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* FOOTER - Espaciado primera columna */

/* Separación entre logo y descripción */
.site-footer-primary-section-1 #block-8 {
    margin-bottom: 20px;
}

/* Listas */
.site-footer .widget_nav_menu ul.menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Separación entre enlaces */
.site-footer .widget_nav_menu ul.menu > li {
    margin: 0 0 12px;
    padding: 0;
}

/* Enlaces */
.site-footer .widget_nav_menu ul.menu > li > a {
    color: #FFFFFF;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
}

/* Hover */
.site-footer .widget_nav_menu ul.menu > li > a:hover,
.site-footer .widget_nav_menu ul.menu > li > a:focus {
    color: #0DA69C;
}

/* Subrayado amarillo en títulos del footer */
.site-footer .widget_nav_menu .widget-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background-color: #FFB900;
    margin-top: 10px;
}

/* Línea divisoria del copyright */
.site-below-footer-wrap::before {
    content: "";
    display: block;
    width: 90%;
    max-width: 1200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 auto 25px;
}

/* Enlace del copyright */
.ast-footer-copyright a.nuevavia-copyright-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.25s ease;
}

.ast-footer-copyright a.nuevavia-copyright-link:hover,
.ast-footer-copyright a.nuevavia-copyright-link:focus {
    color: #0DA69C;
}

/* Padding columnas footer - escritorio */
@media (min-width: 1025px) {
    .site-footer-primary-section-2,
    .site-footer-primary-section-3,
    .site-footer-primary-section-4 {
        padding-left: 40px;
    }
}

/* FOOTER - Alineación izquierda en tablet y móvil */
@media (max-width: 1024px) {

    /* Columnas y widgets */
    .site-footer .site-primary-footer-wrap .site-footer-section,
    .site-footer .site-primary-footer-wrap .widget,
    .site-footer .site-primary-footer-wrap .widget p,
    .site-footer .site-primary-footer-wrap .widget ul,
    .site-footer .site-primary-footer-wrap .widget-title {
        text-align: left !important;
    }

    /* Logo */
    .site-footer-primary-section-1 .wp-block-image {
        text-align: left !important;
        margin-left: 0;
    }

    /* Menús */
    .site-footer .widget_nav_menu ul.menu {
        text-align: left !important;
    }

    /* Líneas amarillas */
    .site-footer .widget_nav_menu .widget-title::after {
        margin-left: 0;
        margin-right: 0;
    }

    /* Iconos sociales */
    .site-footer .footer-social-inner-wrap {
        justify-content: flex-start !important;
    }
	    .site-primary-footer-inner-wrap {
        row-gap: 40px;
    }
	    .site-footer-primary-section-1 #block-9 p {
        width: 80%;
        max-width: 100%;
    }
}

/* FOOTER - Padding lateral en tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
    .site-below-footer-wrap .ast-builder-grid-row-container-inner {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* FOOTER - Padding lateral en móvil */
@media (max-width: 767px) {
    .site-primary-footer-wrap .ast-builder-grid-row-container-inner,
    .site-below-footer-wrap .ast-builder-grid-row-container-inner {
        padding-left: 20px;
        padding-right: 20px;
    }
	    .ast-footer-copyright {
        width: 90%;
        text-align: left !important;
        margin-right: auto;
    }

    .ast-footer-copyright p {
        text-align: left !important;
    }
}




/* Página 404 - Asociación Nueva Vía */

/* Ajustar contenedor de Astra en página 404 */
body.error404 .site-content .ast-container {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

/* Centrar contenido 404 */
body.error404 .nuevavia-404 {
    width: 100%;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.error404 .nuevavia-404__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.nuevavia-404 {
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center !important;
    padding: 80px 20px;
    background-color: #FFFFFF;
}

.nuevavia-404__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.nuevavia-404 h1 {
    font-size: clamp(100px, 15vw, 180px);
    line-height: 1;
    color: #08394A;
    margin: 0 0 35px;
    text-align: center !important;
}


/* Texto de la página 404 */
.nuevavia-404__text {
    font-family: 'Google Sans', sans-serif;
    font-size: 20px;
    line-height: 1.5;
    color: #08394A;
    text-align: center;
    margin: 0 0 35px;
}


.nuevavia-404__button {
    display: inline-block;
    padding: 14px 32px;
    background-color: #FFC400;
    color: #08394A;
    font-family: 'Google Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nuevavia-404__button:hover {
    background-color: #0DA69C;
    color: #FFFFFF;
}
