/* Contenedor principal */
.rts-footer-area {
    background: #0E1422;
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-height: 780px;
    height: 780px;
    font-family: 'DM Sans', sans-serif;
    background-color: #121826;
}

/* Padding superior */
.rts-section-gapTop {
    padding-top: 120px;
}

/* Primera imagen de fondo (before) */
.rts-footer-area::before {
    content: "";
    position: absolute;
    background-image: url(../images/footer/02.png);
    height: 800px;
    width: 823px;
    left: -16%;
    background-position: center;
    bottom: -13%;
    background-size: cover;
    z-index: -1;
    background-repeat: no-repeat;
}

/* Media query para before */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .rts-footer-area::before {
        left: -25%;
    }
}

/* Contenedor con segunda imagen */
.bg-shape-f1 {
    position: relative;
    z-index: 1;
}

/* Media queries para container muy importante */
@media (min-width: 1200px) {
    .container {
        max-width: 1300px;
        width: 1300px;
        min-height: 510px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 1300px;
        width: 1300px;
        min-height: 510px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 1300px;
        width: 1300px;
        min-height: 510px;
    }
}

@media (min-width: 576px) {
    .container {
        max-width: 1300px;
        width: 1300px;
        min-height: 510px;
    }
}

.container {
    width: 1305px;
    min-height: 510px;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

/* Segunda imagen de fondo (after) */
.bg-shape-f1::after {
    position: absolute;
    background-image: url(../images/footer/03.png);
    content: "";
    height: 500px;
    width: 523px;
    left: -25%;
    top: -20%;
    z-index: -1;
    background-repeat: no-repeat;
}

/* Media query para after */
@media only screen and (min-width: 1200px) and (max-width: 1599px) {
    .bg-shape-f1::after {
        left: -30%;
        top: -32%;
    }
}

.bg-footer-one {
    background-color: #0E1422;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bg-footer-one::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/footer/02.png) no-repeat center center;
    background-size: cover;
    opacity: 0.95;
    z-index: -1;
}

.bg-footer-one::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/footer/03.png) no-repeat center right;
    background-size: contain;
    opacity: 0.95;
    z-index: -1;
}

.row.pt--120 {
    position: relative;
}

.row.pt--120::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/footer/02.png) no-repeat center right;
    background-size: contain;
    opacity: 0.95;
    z-index: -1;
}

.rts-footer-area .row {
    display: flex;
    justify-content: space-between;
    margin: 0 -15px;
}

.rts-footer-area .col-xl-4 {
    padding: 0 15px;
    width: 33.333333%;
    height: 310px;
}

.footer-one-single-wized {
    margin-bottom: 40px;
    margin-top: -20px;
}

.wized-title {
    width: 310px;
    flex-shrink: 0;
}

.wized-title .thumbnail {
    margin-bottom: 10px;
    width: auto;
}

.wized-title .thumbnail img {
    height: 42px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
}

.wized-title img[alt="Bigas_footer"] {
    height: 2px;
    width: 35px;
    margin-top: 10px;
    margin-bottom: 25px;
    opacity: 0.6;
    display: inline;
    line-height: 26px;
    position: relative;
    color: #fff;
}

.wized-title .title {
    color: #fff;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    font-family: 'Red Hat Display', sans-serif;
    letter-spacing: 0.5px;
}

.quick-link-inner {
    display: flex;
    width: 100%;
    margin-top: -10px;
    
}

.quick-link-inner .links {
    list-style: none;
    padding-left: 0;
    margin: 0;
    width: fit-content;
    min-width: 90px;
    justify-content: flex-start;
}

.quick-link-inner .links.margin-left-70 {
    margin-left: 70px;
    width: fit-content;
    min-width: 90px;
}

.quick-link-inner .links li {
    margin-bottom: 8px;
    white-space: nowrap;
}

.quick-link-inner .links li a {
    color: #8b8f99;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    font-size: 16px;
    opacity: 0.9;
    width: max-content;
    font-family: 'DM Sans', sans-serif;
    padding: 3px 0;
}

.quick-link-inner .links li a i {
    margin-right: 8px;
    font-size: 10px;
    transition: 0.3s;
    opacity: 0.7;
    color: #8b8f99;
}

.quick-link-inner .links li a i::before {
    content: "\f061";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    display: inline-block;
}

.quick-link-inner .links li a:hover {
    color: #D7303A;
}

.quick-link-inner .links li a:hover i {
    transform: translateX(5px);
}

.opening-time-inner .single-opening {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    line-height: 26px;
}

.opening-time-inner .single-opening p {
    color: #fff;
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
}

.opening-time-inner .single-opening p:first-child {
    font-weight: 500;
    margin-right: 15px;
}

.post-wrapper .single-footer-post {
    margin-bottom: 15px;
}

.post-wrapper .single-footer-post:last-child {
    margin-bottom: 0;
}

.post-wrapper .single-footer-post a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
    line-height: 20px;
    opacity: 0.9;
    font-family: 'Red Hat Display', sans-serif;
    display: block;
    padding: 3px 0;
    font-weight: 500;
}

.post-wrapper .single-footer-post a:hover {
    color: #D7303A;
}

.post-wrapper .single-footer-post h6.title {
    margin: 0;
    font-weight: 400;
}

.rts-copyright-area {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 0;
    width: 100%;
    background: #121826;
    min-height: 150px;
    height: 150px;
    display: flex;
    align-items: center;
}

.rts-copyright-area .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
    min-height: auto;
    height: auto;
}

.rts-copyright-area .text-center {
    margin-bottom: 10px;
}

.rts-copyright-area .text-center:last-child {
    margin-bottom: 0;
}

.rts-copyright-area a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
    font-size: 15px;
    opacity: 0.9;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    margin: 0 15px;
}

.rts-copyright-area a:hover {
    color: #D7303A;
}

/* Mejoras responsive para móvil */
@media (max-width: 991px) {
    .rts-section-gapTop {
        padding-top: 80px;
    }

    .rts-footer-area {
        min-height: auto;
        height: auto;
        padding-bottom: 0;
    }

    .rts-footer-area .row {
        flex-direction: column;
    }

    .rts-footer-area .col-xl-4 {
        width: 100%;
        margin-bottom: 40px;
        height: auto;
        align-items: flex-start;
    }
    
    .quick-link-inner {
        gap: 30px;
        width: 100%;
    }

    .wized-title {
        width: 100%;
        margin-bottom: 20px;
    }

    .footer-one-single-wized {
        margin-top: 0;
        margin-bottom: 20px;
        width: 100%;
    }

    .opening-time-inner {
        width: 100%;
        margin: 0;
        padding: 20px;
    }
}

@media (max-width: 767px) {
    .rts-section-gapTop {
        padding-top: 60px;
    }
    
    .rts-footer-area {
        padding-bottom: 0;
    }
    
    .rts-footer-area .row {
        padding-top: 40px !important;
        min-height: auto;
    }
    
    .quick-link-inner {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 30px;
    }
    
    .quick-link-inner .links.margin-left-70 {
        margin-left: 0;
    }
    
    .wized-title .title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .wized-title .thumbnail img {
        height: 36px;
    }

    .opening-time-inner .single-opening {
        flex-direction: row;
        justify-content: space-between;
    }

    .post-wrapper .single-footer-post a {
        font-size: 15px;
    }

    .rts-copyright-area {
        min-height: auto;
        height: auto;
        padding: 15px 0;
    }

    .rts-copyright-area .copyright-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .rts-copyright-area a {
        margin: 5px 8px;
        font-size: 14px;
    }

    /* Corrección específica para la visibilidad de las horas */
    .opening-time-inner .single-opening p {
        color: white !important;
        opacity: 1 !important;
        font-size: 16px !important;
        font-weight: 500 !important;
    }
    
    /* Ajustes estructurales */
    .footer-one-single-wized.mid-bg {
        background-image: linear-gradient(rgb(14, 20, 34) -4.66%, rgb(33, 38, 49) 100%);
        border-radius: 15px;
        padding: 20px;
        margin: 15px 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .opening-time-inner {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0;
    }
    
    /* Mejor estructura para los días y horas */
    .opening-time-inner .single-opening {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding-bottom: 10px;
        margin-bottom: 10px;
        display: grid;
        grid-template-columns: 40% 60%;
    }
    
    .opening-time-inner .single-opening:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .opening-time-inner .single-opening p:first-child {
        text-align: left;
        padding-right: 10px;
    }
    
    .opening-time-inner .single-opening p:last-child {
        text-align: right;
    }
}

@media (max-width: 575px) {
    .rts-footer-area .col-xl-4 {
        padding: 0 10px;
    }

    .quick-link-inner {
        flex-direction: column;
        gap: 10px;
    }

    .quick-link-inner .links li {
        margin-bottom: 5px;
    }

    .quick-link-inner .links li a {
        font-size: 15px;
    }

    .opening-time-inner .single-opening {
        margin-bottom: 10px;
    }

    .opening-time-inner .single-opening p {
        font-size: 15px;
    }

    .post-wrapper .single-footer-post {
        margin-bottom: 10px;
    }

    .wized-title .title {
        font-size: 18px;
    }

    .rts-copyright-area {
        padding: 10px 0;
        min-height: 0;
    }

    .rts-copyright-area a {
        margin: 3px 0;
        font-size: 13px;
    }

    /* Ajustes para pantallas muy pequeñas */
    .opening-time-inner .single-opening {
        grid-template-columns: 45% 55%;
    }
    
    .opening-time-inner .single-opening p {
        font-size: 15px !important;
    }
}

.footer-content {
    position: relative;
    z-index: 1;
}

.pt--120 {
    padding-top: 120px !important;
}

.pb--80 {
    padding-bottom: 80px !important;
}

.row {
    display: flex;
    flex-wrap: wrap;
}

/* Estilos para las columnas del footer */
@media (min-width: 1200px) {
    .col-xl-4 {
        flex: 0 0 auto;
        width: calc(310px + 30px);
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (min-width: 992px) {
    .col-lg-4 {
        flex: 0 0 auto;
        width: calc(310px + 30px);
        padding-right: 15px;
        padding-left: 15px;
    }
}

@media (min-width: 768px) {
    .col-md-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

@media (min-width: 576px) {
    .col-sm-12 {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* Estilos base para todas las columnas */
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.row.pt--120.pb--80 {
    min-height: 510px;
    display: flex;
    align-items: flex-start;
    padding-bottom: 0 !important;
    padding-top: 80px !important;
}

/* Ajustamos también el contenedor para asegurar la altura */
.container.bg-shape-f1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 510px;
    padding-bottom: 0;
    padding-top: 30px;
}

/* Aseguramos que las columnas también se estiren */
.col-xl-4, .col-lg-4, .col-md-12 {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 0;
    position: relative;
}

/* Específico para columna 2 - Horarios */
.col-xl-4:nth-child(2), 
.col-lg-4:nth-child(2) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Contenedor de horarios con gradiente */
.opening-time-inner {
    border-radius: 15px;
    line-height: 26px;
    /* margin: -40px -30px 0px; */
    padding: 0px 10px;
    width: 100%;
    
    position: relative;
    z-index: 1;
}

/* Ajustes título columna 2 para compensar el margen negativo */
.col-xl-4:nth-child(2) .wized-title,
.col-lg-4:nth-child(2) .wized-title {
     /* 35px + 30px para compensar el -40px del opening-time-inner */
    position: relative;
    z-index: 2;
}

/* Espaciado entre elementos de horarios */
.opening-time-inner .single-opening {
    margin-bottom: 15px;
    line-height: 26px;
}

.opening-time-inner .single-opening:last-child {
    margin-bottom: 0;
}

/* Espaciado para elementos de contacto */
.post-wrapper {
    padding-top: 0;
}

/* Títulos alineados */
.wized-title {
    margin-bottom: 15px;
    width: 310px;
    flex-shrink: 0;
    margin-top: 0;
}

/* Tercera columna - Contacto */
.col-xl-4:nth-child(3) .post-wrapper,
.col-xl-4:nth-child(3) .single-footer-post a,
.col-xl-4:nth-child(3) h6.title {
    font-family: 'Red Hat Display', sans-serif;
}

/* Copyright área - ajustes */
.rts-copyright-area .copyright-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
}

/* Hover effects */
.quick-link-inner .links li a:hover {
    color: #D7303A;
    transform: translateX(3px);
}

.quick-link-inner .links li a:hover i {
    color: #D7303A;
    transform: translateX(5px);
}

.post-wrapper .single-footer-post a:hover,
.post-wrapper .single-footer-post a:hover h6.title {
    color: #D7303A;
}

.rts-copyright-area a:hover {
    color: #D7303A;
}

/* Ajustes iconos */
.quick-link-inner .links li a i::before {
    content: "\f061";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    display: inline-block;
}

/* Footer logo y título */
.wized-title .thumbnail {
    margin-bottom: 20px;
}

/* Responsive mejorado */
@media (max-width: 991px) {
    .rts-footer-area {
        min-height: auto;
        height: auto;
    }
    
    .container.bg-shape-f1 {
        min-height: auto;
        padding-bottom: 40px;
    }
    
    .rts-copyright-area {
        min-height: auto;
        height: auto;
        padding: 20px 0;
    }
    
    .rts-copyright-area .copyright-content {
        flex-direction: column;
    }
    
    .rts-copyright-area a {
        margin: 5px 0;
    }
    
    .opening-time-inner {
        margin: 0;
        width: 100%;
    }
    
    .col-xl-4:nth-child(2) .wized-title,
    .col-lg-4:nth-child(2) .wized-title {
        margin-bottom: 35px;
    }
}

/* Nueva clase para el fondo con gradiente */
.footer-one-single-wized.mid-bg {
    background-image: linear-gradient(rgb(14, 20, 34) -4.66%, rgb(33, 38, 49) 100%);
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    
}

/* Mejoras específicas para la columna de horarios en móvil */
@media (max-width: 991px) {    
    /* Estilos específicos para la columna de horarios */
    .footer-one-single-wized.mid-bg {
        margin: 0;
        width: 100%;
        padding: 25px;
        background-image: linear-gradient(rgb(14, 20, 34) -4.66%, rgb(33, 38, 49) 100%);
        border-radius: 15px;
    }
    
    .opening-time-inner {
        margin: 0;
        width: 100%;
        padding: 0;
    }
    
    .col-xl-4:nth-child(2) {
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    /* Ajustes a la columna de horarios en móvil */
    .col-xl-4:nth-child(2) {
        margin-bottom: 40px;
    }
    
    .footer-one-single-wized.mid-bg {
        padding: 20px;
        margin-top: 15px;
    }
    
    .opening-time-inner .single-opening {
        flex-direction: row;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 8px;
    }
    
    .opening-time-inner .single-opening:last-child {
        border-bottom: none;
    }
    
    .opening-time-inner .single-opening p {
        font-size: 15px;
    }
    
    /* Mejora la alineación de los títulos */
    .wized-title {
        margin-bottom: 10px;
    }
}

@media (max-width: 575px) {
    /* Mejoras para teléfonos pequeños */
    .rts-footer-area {
        padding-top: 40px;
    }
    
    .col-xl-4 {
        margin-bottom: 30px !important;
    }
    
    .footer-one-single-wized.mid-bg {
        border-radius: 10px;
        padding: 15px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    }
    
    .opening-time-inner .single-opening {
        margin-bottom: 8px;
        padding-bottom: 6px;
    }
    
    .opening-time-inner .single-opening p {
        font-size: 14px;
    }

    /* Ajuste de espaciado vertical general */
    .rts-section-gapTop {
        padding-top: 40px;
    }
    
    .row.pt--120.pb--80 {
        padding-top: 30px !important;
    }
}

/* Mejoras de adaptabilidad para la columna 2 en versión móvil */
@media (max-width: 991px) {    
    /* Columna 2 - Horarios con ancho adaptable */
    .col-xl-4:nth-child(2), 
    .col-lg-4:nth-child(2) {
        width: 290px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .col-xl-4 col-lg-4 col-md-12{
        width: 290px;
    }
    .footer-one-single-wized .mid-bg {
        width: 290px;
       
        margin-right: 10px;
        box-sizing: border-box;
    }
    
    .opening-time-inner {
        width: 290px;
        box-sizing: border-box;
        margin: 0;
        padding: 0;
        margin-right: 10px;
    }
    
    .opening-time-inner .single-opening {
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-wrap: nowrap;
    }
}

@media (max-width: 767px) {
    /* Ajustes específicos para móviles medianos */
    .col-xl-4:nth-child(2), 
    .col-lg-4:nth-child(2) {
        width: 100%;
        max-width: 100%;
    }
    
    .footer-one-single-wized.mid-bg {
        width: auto;
        margin: 15px 10px 0;
    }
    
    /* Asegurar que los horarios no se corten */
    .opening-time-inner .single-opening {
        display: flex;
        flex-wrap: nowrap;
        align-items: baseline;
    }
    
    .opening-time-inner .single-opening p:first-child {
        flex: 0 0 auto;
        width: auto;
        min-width: 90px;
        margin-right: 15px;
    }
    
    .opening-time-inner .single-opening p:last-child {
        flex: 1;
        width: auto;
        text-align: right;
        white-space: normal;
        word-break: normal;
    }
}

@media (max-width: 575px) {
    /* Optimizaciones para móviles pequeños */
    .footer-one-single-wized.mid-bg {
        margin: 10px 5px 0;
        width: 350px;
    }
    
    .opening-time-inner .single-opening p:first-child {
        min-width: 80px;
        
    }
    .opening-time-inner{
        width: 290px;
    }
    
    .opening-time-inner .single-opening p {
        line-height: 1.4;
    }

    .rts-copyright-area{
        height: 200px;
        margin: 0;
    }
}

