@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");
:root {
    --green-cactus: #4a7c48;
    --brown: #4a3b2f;
    --background-beige: #f4eee1;
    --red-chiltepin: #b8261c;
    --mex-pink: #e4007c;
    --yellow-sunset: #f7b32b;
}
body {
    font-family: "Montserrat", sans-serif !important;
    font-weight: 400;
    background-color: var(--background-beige);
}
.leaflet-bootstrap-icon {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.card-glass{
    width: 100%;
    max-width: 350px;
    height: 450px;
    border-radius: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-glass:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.3);
}
.card-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.card-glass-content {
    z-index: 2;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.btn-goback {
    background: rgba(228, 0, 124, 0.25); /* Color rosado con transparencia */
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px); /* efecto glass principal */
    -webkit-backdrop-filter: blur(10px); /* soporte Safari */
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-goback:hover {
    transform: scale(1.1);
    background: rgba(228, 0, 124, 0.4); /* un poco más sólido al hover */
    box-shadow: 0 6px 25px rgba(228, 0, 124, 0.4);
}

/* Ícono dentro del botón */
.btn-goback i,
.btn-goback svg {
    font-size: 1.8rem;
    width: 1.8rem;
    height: 1.8rem;
}

.popup {
    border-radius: 80px 80px 80px 0px;
    padding: 1.25rem 2.813rem;
    color: var(--background-beige);
    font-size: 18px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    animation-delay: 0.39s;
    animation-name: fadeInUp;
    vertical-align: middle;
}
.btn-popup {
    border-radius: 80px 80px 80px 0px;
    padding: 1.25rem 2.813rem;
    color: var(--background-beige);
    font-size: 18px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    animation-delay: 0.39s;
    animation-name: fadeInUp;
    vertical-align: middle;
}
.btn-popup img {
    width: 50%;
    height: auto; /* Mantiene proporción */
    max-height: 150px; /* Controla altura máxima */
    object-fit: contain; /* La ajusta sin recortar */
    display: block;
    margin: 0 auto;
}
.btn-popup p {
    margin: 0;
}
.btn p {
    margin: 0;
}
.btn {
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;
    border-radius: 15px 0px;
    box-shadow: 1px 2px 5px var(--yellow-sunset);
    font-size: 18px;
    flex: 0 0 auto;
    align-items: center;
    gap: 3rem;
    animation-delay: 0.39s;
    animation-name: fadeInUp;
    vertical-align: middle;
}
.green-line {
    border: solid 1px var(--green-cactus);
    color: var(--green-cactus);
}
.btn-popup.green-line:hover {
    background-color: var(--green-cactus);
    color: var(--background-beige);
}
.btn.green-line:hover {
    background-color: var(--green-cactus);
    color: var(--background-beige);
}
.brown-line {
    border: solid 1px var(--brown);
    color: var(--brown);
}
.btn-popup.brown-line:hover {
    background-color: var(--brown);
    color: var(--background-beige);
}
.btn.brown-line:hover {
    background-color: var(--brown);
    color: var(--background-beige);
}
.mex-line {
    border: solid 1px var(--mex-pink);
    color: var(--mex-pink);
}
.btn-popup.mex-line:hover {
    background-color: var(--mex-pink);
    color: var(--background-beige);
}
.btn.mex-line:hover {
    background-color: var(--mex-pink);
    color: var(--background-beige);
}
.green-bg {
    background-color: var(--green-cactus);
    color: var(--background-beige) !important;
}
.btn-popup.green-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--green-cactus);
    color: var(--green-cactus) !important;
}
.btn.green-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--green-cactus);
    color: var(--green-cactus) !important;
}
.chilte-bg {
    background-color: var(--red-chiltepin);
    color: var(--background-beige) !important;
}
.btn-popup.chilte-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--red-chiltepin);
    color: var(--red-chiltepin) !important;
}
.btn.chilte-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--red-chiltepin);
    color: var(--red-chiltepin) !important;
}
.brown-bg {
    background-color: var(--brown);
    color: var(--background-beige) !important;
}
.btn-popup.brown-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--brown);
    color: var(--brown) !important;
}
.btn.brown-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--brown);
    color: var(--brown) !important;
}
.mex-bg {
    background-color: var(--mex-pink);
    color: var(--background-beige) !important;
}
.btn.mex-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--mex-pink);
    color: var(--mex-pink) !important;
}
.btn-popup.mex-bg:hover {
    background-color: var(--background-beige);
    border: solid 1px var(--mex-pink);
    color: var(--mex-pink) !important;
}
.beige-bg {
    background-color: var(--background-beige);
}
/*titles sizes*/
.title-xxl {
    font-weight: 700;
    font-size: clamp(28px, 6vw, 50px);
}

.title-xl {
    font-weight: 700;
    font-size: clamp(22px, 4vw, 30px);
}

.title-lg {
    font-size: clamp(16px, 3vw, 20px);
    font-weight: 700;
}

.title-md {
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 500;
}

.title-sm {
    font-size: clamp(13px, 2vw, 15px);
    font-weight: 500;
}
.title-xs {
    font-size: 12px;
    font-weight: 500;
}
.title-w {
    color: var(--background-beige);
}
.title-p {
    color: var(--mex-pink);
}
.title-y {
    color: var(--yellow-sunset);
}
.title-c {
    color: var(--red-chiltepin);
}
.subtitle {
    color: var(--brown);
}
.row-mex {
    height: 16px;
    background: linear-gradient();
}
/*custom border for all container, row, etc.*/
.border-button {
    border-radius: 0px 15px 0px 15px !important;
    box-shadow: 0 0 0 2px var(--gris);
}
.floral-divider {
    height: 25px;
    background-image: url("/assets/theme/media/img/separador de flor color.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}
.background-patron {
    background-image: url("/assets/theme/media/img/fondo menos visible.png");
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}
.pattern-line {
    height: 25px;
    background-image: url("/assets/theme/media/img/separador de color.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
}
.background-garita {
    background: linear-gradient(
            0deg,
            rgba(147, 147, 147, 0.5) 0%,
            rgba(147, 147, 147, 0.5) 100%
        ),
        url("/assets/theme/media/img/garitas/hb_webcam_garitas.jpg") lightgray
            50% / cover no-repeat;
    background-position: center;
}
.text-lado-der {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
/*######## Mapa #############*/
/* Cambiar color de fondo, borde y fuente */
.leaflet-control-layers {
    background-color: rgba(85, 124, 85, 0.9); /* Verde opaco */
    padding: 1rem;
    border-radius: 15px 0px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    color: white;
}
/* Estilo para los checkboxes y etiquetas */
.leaflet-control-layers label {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    font-size: 12px;
}

/* Estilo del input checkbox */
.leaflet-control-layers input {
    width: 15px;
    height: 15px;
    margin-right: 10px;
    accent-color: white;
    color: var(--mex-pink);
}
.leaflet-control-layers input:active {
    color: var(--mex-pink);
}
/* Hover sobre elementos */
.leaflet-control-layers .layer-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
    color: white;
}
/*Carrusel owl*/
.item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* si hay texto debajo */
    text-align: center;
}
.image-box img {
    display: block;
    margin: 0 auto;
    width: 50% !important; /* ajusta al tamaño que quieras */
    height: auto;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.image-box:hover img {
    transform: scale(1.05); /* aumenta tamaño */
    opacity: 0.9; /* baja un poquito la opacidad */
}
/* Estilo del título del grupo si lo usas */
.leaflet-control-layers-separator {
    margin: 6px 0;
    border-top: 1px solid #ccc;
}
.icon-carousel {
    height: 25%;
}
/* ============================= */
/* 📱 RESPONSIVE DESIGN          */
/* ============================= */

/* Laptops medianos y tablets grandes */
@media (max-width: 992px) {
    .title-xxl {
        font-size: 40px;
    }
    .title-xl {
        font-size: 26px;
    }
    .title-lg {
        font-size: 18px;
    }
    .btn-popup {
        padding: 1rem 2.2rem;
    }
    .btn-popup img {
        max-height: 120px;
        width: 60%;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: clamp(18px, 4vw, 22px) !important;
        margin: 0.25rem 0;
        text-wrap: initial;
    }
    .carousel-caption p {
        font-size: clamp(18px, 4vw, 26px) !important;
    }
    .icon-carousel {
        width: 50%;
    }
}

/* Tablets y pantallas pequeñas */
@media (max-width: 768px) {
    .title-xxl {
        font-size: 36px;
    }
    .title-xl {
        font-size: 24px;
    }
    .title-lg {
        font-size: 17px;
    }
    .title-md {
        font-size: 16px;
    }
    .btn-popup img {
        max-height: 80px;
        width: 50%;
    }
    .btn-popup {
        padding: 0.8rem 1.5rem;
        font-size: clamp(14px, 3vw, 16px);
        border-radius: 50px 50px 50px 0px;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: clamp(12px, 4vw, 22px) !important;
        margin: 0.25rem 0;
        text-wrap: initial;
    }
    .popup {
        padding: 0.8rem 1.2rem;
        font-size: 15px;
        border-radius: 50px 50px 50px 0px;
    }

    .background-patron {
        background-attachment: scroll; /* Mejor performance en móvil */
        background-size: contain;
    }

    .floral-divider,
    .pattern-line {
        height: 20px;
        background-size: auto 100%;
    }
    .item {
        padding: 0.5rem;
    }

    .image-box img {
        width: 70% !important;
        max-width: 200px;
    }
    .background-patron {
        background-size: cover;
    }

    /* Reducir animaciones en móviles para mejor rendimiento */
    .image-box img {
        transition: transform 0.2s ease-in-out;
    }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .btn-popup {
        padding: 1rem 2rem;
        font-size: 16px;
    }
    .icon-carousel {
        height: 45px !important;
    }
    .btn-popup img {
        max-height: 120px;
        width: 55%;
    }
    .carousel-caption p {
        margin-top: 5% !important;
        font-size: clamp(16px, 4vw, 22px) !important;
    }
}
@media (max-width: 768px) and (orientation: landscape) {
    .carousel-caption p {
        margin-top: 5% !important;
        font-size: clamp(16px, 4vw, 22px) !important;
    }
}
/* Celulares */
@media (max-width: 576px) {
    .title-xxl {
        font-size: 28px;
    }
    .title-xl {
        font-size: 22px;
    }
    .title-lg {
        font-size: 16px;
    }
    .title-md {
        font-size: 14px;
    }
    .btn-popup {
        padding: 0.8rem 1.5rem;
        font-size: 15px;
    }
    .btn-popup img {
        max-height: 90px;
        width: 70%;
    }
    .popup {
        font-size: 14px;
        padding: 0.8rem 1.2rem;
    }
}
/* Celulares muy pequeños */
@media (max-width: 400px) {
    .title-xxl {
        font-size: 24px;
    }
    .title-xl {
        font-size: 20px;
    }
    .title-lg {
        font-size: 15px;
    }
    .btn-popup {
        padding: 0.6rem 1rem;
        font-size: 14px;
    }
    .btn-popup img {
        max-height: 70px;
        width: 75%;
    }
    .popup {
        font-size: 13px;
        padding: 0.6rem 1rem;
    }
}
@media (max-width: 480px) {
    .btn-popup img {
        max-height: 60px;
        width: 40%;
    }
}
@media (min-width: 320px) and (max-width: 480px) {
    .icon-carousel {
        height: 30px;
    }
}
