/*
 * Convenciones de nomenclatura
 *
 * - Componentes nuevos: BEM (.bloque, .bloque__elemento, .bloque--modificador)
 * - Código heredado de Mobirise: se mantiene como está hasta que se migre
 * - Si tocas una sección heredada, aprovecha para renombrar sus clases
 *
 * Criterio: la mezcla es temporal y deliberada. No hay que forzar
 * la migración del código viejo si funciona.
 */

body {
    font-family:
        "Inter Tight",
        system-ui,
        -apple-system,
        "Segoe UI",
        Roboto,
        sans-serif;
    padding-top: var(--navbar-height);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

*:focus-visible {
    outline: var(--blue-main) solid 2px !important;
    outline-offset: 2px !important;
    transition: outline 0.2s ease-in-out;
}

.icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    background-color: currentColor; /* ← aquí decides el color */
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

.icon--solid-phone {
    --icon: url("/site/images/icons/heroicons/solid/phone.svg");
}

.icon--solid-mail {
    --icon: url("/site/images/icons/heroicons/solid/mail.svg");
}

.icon--outl-whatsapp {
    --icon: url("/site/images/icons/heroicons/outline/whatsapp.svg");
}

.icon--outl-phone {
    --icon: url("/site/images/icons/heroicons/outline/phone.svg");
}

.icon--outl-message {
    --icon: url("/site/images/icons/heroicons/outline/message.svg");
}

.icon--outl-mail {
    --icon: url("/site/images/icons/heroicons/outline/mail.svg");
}

.icon--outl-dbl-chat {
    --icon: url("/site/images/icons/heroicons/outline/dbl-chat.svg");
}

.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    background-color: var(--blue-light);
}

.navbar .dropdown-menu {
    background-color: var(--blue-clear);
}

.navbar .dropdown-item {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
    color: white !important;
    transition: background-position 1s ease-in-out !important;
}

.navbar .dropdown-item:hover {
    color: var(--blue-light) !important;
}

.navbar .nav-link {
    color: var(--blue-main);
}

.navbar .nav-link:hover {
    color: var(--black-full);
}

.navbar .navbar-toggler {
    border: 1px solid var(--grey-light) !important;
}

.navbar-dark .navbar-toggler-icon {
    background-image: none;
    background-color: var(--blue-main);

    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='black' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--blue-main);
}

@media (min-width: 768px) {
    .navbar .navbar-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: max-content;
    }

    .navbar .navbar-nav .nav-link {
        white-space: nowrap;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media screen and (min-width: 992px) {
    .navbar,
    .navbar li {
        animation: fadeIn ease-in 0.25s;
    }
}

@media screen and (min-width: 600px) {
    .smart-scroll {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
    }

    .scrolled-down {
        transform: translateY(-100%);
        transition: transform 0.25s ease-in-out;
    }

    .scrolled-up {
        transform: translateY(0);
        transition: transform 0.25s ease-in-out;
    }
}

.sep_footer {
    background-color: rgb(0, 0, 0);
    height: 5px;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--blue-main) 60%, transparent) 0%,
        var(--black-full) 90%,
        var(--black-full) 100%
    );
}

#footer {
    background-image: url("/site/images/backgrounds/footer.jpg");
    padding-bottom: 0;
}

#footer hr {
    color: white;
    opacity: 0.5;
}

#footer a {
    color: white;
    transition: color 0.3s ease;
}

#footer a:hover {
    color: rgba(175, 172, 172, 1);
}

#footer p {
    font-family: var(--m-font);
    text-align: center;
}

#footer .pb-3 {
    padding-bottom: 0;
}

#forma_cto,
#ubi,
#presentacion,
#servicios {
    scroll-margin-top: calc(var(--navbar-height) + 14px);
}

/* ============================================
   BOTÓN FLOTANTE PARA CONTACTO
   ============================================ */

.floating-container {
    position: fixed;
    width: 100px;
    height: 100px;
    bottom: 0;
    right: 0;
    margin: 35px 25px;
    -webkit-tap-highlight-color: transparent;
    z-index: 9999;
}

.floating-container:hover {
    height: 320px;
}

.floating-button {
    position: absolute;
    width: 65px;
    height: 65px;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0 auto;
    border-radius: 50%;
    background: var(--blue-main);
    color: #fff;
    line-height: 65px;
    text-align: center;
    font-size: 23px;
    z-index: 100;
    cursor: pointer;
    opacity: 0.8;
    box-shadow: 0 10px 25px -5px rgba(252, 252, 252, 0.5);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-button .icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    padding: 2px;
}

.floating-container:hover .floating-button {
    transform: translateY(5px);
    box-shadow: 0 10px 25px rgba(74, 57, 47, 0.6);
}
.floating-container .icon:hover {
    color: #d5caca;
}

.float-element {
    position: relative;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 10px auto;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    z-index: 0;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0s 0.25s;

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.floating-container:hover .float-element {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.25s ease,
        visibility 0s;
}

.float-element--telefono {
    background: rgba(68, 63, 190, 1);
    box-shadow: 0 20px 20px -10px rgba(68, 63, 190, 0.5);
}

.float-element--whatsapp {
    background: rgba(76, 175, 80, 1);
    box-shadow: 0 20px 20px -10px rgba(76, 175, 80, 0.5);
}

.float-element--correo {
    background: rgba(255, 152, 0, 1);
    box-shadow: 0 20px 20px -10px rgba(255, 152, 0, 0.5);
}

.float-element--mensaje {
    background: rgba(189, 4, 4, 1);
    box-shadow: 0 20px 20px -10px rgba(189, 4, 4, 0.5);
}

@keyframes come-in {
    0% {
        opacity: 0;
        transform: translateX(-50px) scale(0.4);
    }
    70% {
        transform: translateX(0) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.floating-container:hover .element-container .float-element:nth-child(1) {
    animation: come-in 0.1s forwards 0.1s;
}

.floating-container:hover .element-container .float-element:nth-child(2) {
    animation: come-in 0.1s forwards 0.2s;
}

.floating-container:hover .element-container .float-element:nth-child(3) {
    animation: come-in 0.1s forwards 0.3s;
}

.floating-container:hover .element-container .float-element:nth-child(4) {
    animation: come-in 0.1s forwards 0.4s;
}
