html, body {
    max-width: 100%;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24
}

.grain-overlay {
    background-image: url('../images/pattern-textures.webp');
    opacity: 0.15;
    pointer-events: none;
    mix-blend-mode: soft-light;
}

.oswald {
    font-family: "Oswald", sans-serif
}

.roboto {
    font-family: "Roboto", sans-serif;
    font-weight: 400 !important;
    font-size: 18px !important; /* mínimo 19px */
}

/* Negritas dentro de texto roboto — ajustar weight a criterio (máximo CSS: 1000, Roboto llega a 900) */
.roboto strong {
    font-weight: 900 !important;
}

#modal-overlay,
#lightbox-overlay {
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out;
}

#modal-overlay.hidden,
#lightbox-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}


.glass-modal {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stone-bg {
    background-image: url('../images/pattern-crushed-stone.webp');
    background-attachment: fixed;
    background-size: 500px;
    background-repeat: repeat;
}

.stone-overlay-mask {
    position: relative;
}

.stone-overlay-mask::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    opacity: 0.05;
    z-index: -1;
}

.recaptcha-wrap {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 480px) {
    .recaptcha-wrap {
        width: 234px;
        height: 60px;
    }

    .recaptcha-wrap .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
}

#mobile-menu.translate-x-full {
    transform: translateX(100%);
}

#product-grid > div.filter-hidden {
    display: none !important;
}

.btn-block {
    position: relative;
    display: inline-block;
    min-width: 13rem;
    color: #0d1b2a;
    transition: filter 0.2s ease;
}

.btn-block:hover {
    filter: brightness(0.88);
}

.btn-block > img.btn-bg {
    display:inline-block;
    width: 80%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

 .btn-block > img.btn-prod {
    display:inline-block;
    width: 50%;
    /* height: 90%; */
    object-fit: fill;
    pointer-events: none;
    user-select: none;
} 

.h-16{
    height: 5rem;
}

#page-loader .animate-spin {
    width: 4rem;
    height: 4rem;
}
.btn-block > img.btn-bg-inicio {
    display:inline-block;
    width: 35%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.btn-block > img.btn-bg-servicios {
    display:inline-block;
    width: 25%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.btn-block > img.btn-bg-prod {
    display: inline-block;
    width: 50%;
    object-fit: fill;
    pointer-events: none;
    user-select: none;
}

.btn-block-compact > img.btn-bg {
    width: 48%;
    height: auto;
    aspect-ratio: 3 / 2;
}


.btn-enviar > img.btn-bg {
    width: 50%;
}

.btn-enviar > span {
    font-size: 1.2rem;
}

.btn-block > span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0 1.25rem;
    white-space: nowrap;
    z-index: 1;
    font-size: 1.0rem;
    letter-spacing: 0.1em;
}

.btn-block > span.btn-text-lg {
    font-size: 1.4rem;
    letter-spacing: 0.18em;
    font-weight: 900;
}

@media (max-width: 767px) {
    .btn-block {
        min-width: 0;
    }
    .btn-block > span {
        font-size: 0.65rem;
        letter-spacing: 0.05em;
        padding: 0 0.75rem;
    }
    .btn-block > span.btn-text-lg {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }
    .btn-enviar > img.btn-bg {
        width: 80%;
    }
}

@media (max-width: 480px) {
    .btn-block > span {
        font-size: 0.6rem;
        letter-spacing: 0.04em;
        padding: 0 0.5rem;
    }
    .btn-block > span.btn-text-lg {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
    }
}

#back-to-section-btn {
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
    #back-to-section-btn {
        bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
        right: calc(1.5rem + env(safe-area-inset-right, 0px));
    }
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}
