.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease;
    border-radius: 14px;
}

.banner-slide.active {
    opacity: 1;
}

#popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2147483647;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#popup-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    /* controla el tamaño máximo */
}
@media (max-height: 800px) {
    #popup-content {
        max-height: 90vh;
    }

    .banner-slide {
        max-height: 90vh;
    }
}
/* Contenedor responsivo 16:9 */
.video-wrapper {
    position: relative;
    width: min(90vw, 420px);
    /* ancho fluido */
    aspect-ratio: 9 / 16;
    /*  clave */
    margin: auto;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* llena sin bandas */
    border-radius: 14px;
    background: #000;
}


/* Botón cerrar */
#close-popup {
    position: absolute;
    top: 75px;
    right: 75px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

@media (max-width: 576px) {
    #close-popup {
        top: 25px;
        right: 25px;
    }
}

.imagen-superpuesta {
    position: absolute;
    top: clamp(3rem, 9vw, 10rem);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    z-index: 10;
}

.pagos-general {
    position: fixed;
    bottom: 2.3rem;
    right: 1.7rem;
    width: clamp(150px, 35vw, 230px);
    /* tamaño responsivo */
    z-index: 1000 !important;
}

.tiktok-general {
    position: fixed;
    bottom: 2.15rem;
    right: 15.4rem;
    width: clamp(190px, 46vw, 301px);
    /* tamaño responsivo */
    z-index: 1000 !important;
}

@media (max-width: 455px) {
    .tiktok-general {
        right: 11.4rem;
    }
}

.marca-agua {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: clamp(10px, 2.5vw, 15px);
    /* tamaño responsivo */
    z-index: 1000 !important;
    /* por encima de fondo, pero debajo de UI */
    pointer-events: none;
    /* no interfiere con clics */
    user-select: none;
}

.enlaces-secundarios {
    padding-top: 2.7rem;
}

.prueba-contenedor {
    font-family: 'SF Pro Display Thin', sans-serif;
    font-weight: 200;
    gap: 0.5rem;
    font-size: clamp(0.95rem, 1.1vw, 1.3rem);
    height: clamp(3rem, 6vw, 5rem);
}

.sticky-menu {
    z-index: 1000 !important;
    position: sticky;
    top: 0;
    background: #f5f5f7;
    transition: background 0.3s ease;
    pointer-events: none;
}

.sticky-menu.visible {
    background: white;
    pointer-events: auto;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.sticky-menu .container {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sticky-menu.visible .container {
    opacity: 1;
}

@media (max-width: 991.98px) {
    body {
        overflow-x: hidden;
    }

    .sticky-menu {
        display: none;
    }
}

.flip-wrapper {
    width: 100%;
    height: auto;
    position: relative;
}

.custom-container-padding {
    padding-top: clamp(2rem, 5vw, 10rem);
}

.custom-container-padding2 {
    padding-top: clamp(1rem, 1.8vw, 5rem);
}

.img-fluid {
    width: 75%;
    height: auto;
}

.flip-container {
    perspective: 1000px;
    width: 100%;
    cursor: pointer;
}

.flipper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s;
}

.front,
.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    backface-visibility: hidden;
    transition: opacity 0.3s ease-in-out;
}

.front {
    z-index: 2;
}

.back {
    transform: rotateY(180deg);
    z-index: 1;
}

.custom-bg {
    position: relative;
    background: #f5f5f7;

}

.espacio-dinamico2 {
    padding-bottom: clamp(2rem, 5vw, 10rem);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1040;
    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 1rem;
}

.mobile-menu a {
    text-decoration: none;
    color: #000;
    font-size: 1.2rem;
}

#menu-toggle {
    position: fixed !important;
    top: 1.5rem !important;
    right: 1rem !important;
    width: 50px !important;
    height: 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 1050;
}

#menu-toggle.open {
    gap: 2px !important;
}

#menu-toggle .bar {
    width: 28px !important;
    height: 4px !important;
    background-color: #000;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center !important;
}

/* Estado abierto: desaparecer barras de los extremos y cruzar las centrales */
#menu-toggle.open .bar:nth-child(1),
#menu-toggle.open .bar:nth-child(4) {
    opacity: 0;
    /* desaparecen */
}

#menu-toggle.open .bar:nth-child(2) {
    transform: rotate(45deg);
    width: 50px !important;
}

#menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    width: 50px !important;
}




/* Ajustes responsivos */
@media (max-width: 634px) {
    #menu-toggle {
        font-size: 1rem;
        top: 3.5rem;
    }
}

@media (min-width: 768px) and (max-width: 813px) {
    #menu-toggle {
        top: 5rem;
    }
}

/* Quitar borde y fondo del botón */
.btn.btn-outline-secondary {
    border: none;
    background: none !important;
    box-shadow: none;
}

/* Evitar cambio de color al hacer clic o hover */
.btn.btn-outline-secondary:hover,
.btn.btn-outline-secondary:focus,
.btn.btn-outline-secondary:active {
    background: none !important;
    color: inherit;
    /* Mantiene el color del texto */
}

/* Transición suave entre íconos */
#menu-toggle {
    transition: transform 0.3s ease;
}


.custom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    color: black;
    background-color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1056;
}


.modal-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
    /* evita que se mueva el contenido */
}

#popupModal .modal-content img {
    width: 100%;
    height: auto;
    display: block;
}

@font-face {
    font-family: 'SF-Pro-Display-Light';
    src: url('fonts/SF-Pro-Display-Light.OTF') format('opentype');
}

.light {
    font-family: 'SF-Pro-Display-Light', sans-serif;
    font-weight: 200;
}

@font-face {
    font-family: 'SFProDisplay-Medium';
    src: url('fonts/SFProDisplay-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'SFProDisplay-Regular';
    src: url('fonts/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.custom-bgpiepagina {
    background-color: #f5f5f7;
    color: #333;
    font-family: 'SF-Pro-Display-Light', sans-serif;
    letter-spacing: 0.5px;
}

.custom-bgpiepagina h3 {
    font-family: 'SFPRODISPLAYREGULAR', sans-serif;
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 15px;
    color: #000;
    letter-spacing: 0.5px;
}


.custom-bgpiepagina ul li a {
    display: block;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    font-weight: 200;
    transition: color 0.3s;
}

.custom-bgpiepagina ul li a:hover {
    color: #0077cc;
}

.footer-col-offset {
    padding-top: 38px;
}

.img-edificio-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.img-piepagina {
    position: relative;
    z-index: 1;
    background: none;
    padding-bottom: 1rem;
}

.img-piepagina h3 {
    margin-bottom: 0.3rem;
    /* Reduce espacio debajo del título */
    line-height: 1.2;
    /* Ajusta la altura del texto */
}

.img-piepagina p {
    margin-bottom: 0.2rem;
    /* Reduce espacio entre párrafos */
    line-height: 1.3;
    /* Compacta un poco las líneas */
}

.img-piepagina h3 {
    margin-bottom: 0.3rem;
    /* Reduce espacio debajo del título */
    line-height: 1;
    /* Ajusta la altura del texto */
}

.img-piepagina p {
    margin-bottom: 0.4px;
    /* Reduce espacio entre párrafos */
    line-height: 1.35;
    /* Compacta un poco las líneas */
}

.max-small {
    font-size: 12px;
}