﻿/* ============================================================
   BASE STRUCTURE & GLOBAL
============================================================ */

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

body {
    padding-top: 80px; /* Espacio para el navbar fijo */
}

/* Quitar el subrayado de todos los enlaces en navbar y dropdown */
.navbar a,
.navbar .nav-link,
.dropdown-item a,
.btn-menu,
.nav-button,
button, .button{
    text-decoration: none !important;
}

    /* Por si hubiera alguno que lo agregue al pasar el mouse */
    .navbar a:hover,
    .navbar .nav-link:hover,
    .dropdown-item a:hover,
    .btn-menu:hover,
    .nav-button:hover,
    button:hover, .button:hover {
        text-decoration: none !important;
    }
/* ============================================================
   CANVAS & 3D BACKGROUND
============================================================ */

canvas.webgl {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    pointer-events: auto; /* permite clics por encima */
}

/* ============================================================
   NAVBAR & MENÚ
============================================================ */

.navbar {
    z-index: 1055;
}

.nav-button {
    padding: 8px 12px;
    font-size: 14px;
    color: #ffffff;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 40px;
}

.navbar-nav .dropdown-menu {
    position: absolute !important;
    background-color: #fff;
    z-index: 1050;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Dropdown Items (con imagen) */
.dropdown-item a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #333;
    font-size: 13px;
    padding: 4px 8px;
    text-decoration: none !important; /* quita subrayado */
}

.dropdown-item img.imgThumb {
    width: 40px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
}

/* Idioma (en desktop lo empuja a la derecha) */
@media (min-width: 769px) {
    .idioma-item {
        margin-left: auto;
    }
}

/* ============================================================
   PUNTOS 3D (Hotspots)
============================================================ */

.point_med {
    position: absolute;
    z-index: 1001;
    transition: transform 0.1s ease;
}

    .point_med i.bi {
        position: relative;
        top: 2px;
    }

/* ============================================================
   RESPONSIVE MOBILE / TABLET
============================================================ */

/* General mobile styles */
@media (max-width: 767.98px) {

    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropdown-menu {
        width: 100%;
    }

    .btn-menu {
        font-size: 14px;
        padding: 5px 10px;
        display: block;
    }

    .imgResponsive {
        max-width: 100%;
        height: auto;
    }

    .OverlayButtons img {
        width: 30% !important;
        height: auto !important;
    }

    .point_med {
        line-height: 1.52;
    }

        .point_med i.bi {
            top: -9px;
        }

        .point_med span {
            display: inline-block;
            max-width: 300px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    canvas.webgl {
        width: 100% !important;
        height: auto !important;
    }

    .Overlay {
        font-size: 14px;
        padding: 10px;
    }

    #btns {
        top: 50px !important;
        text-align: center;
        left: 0px !important;
    }

    .button {
        min-height: 25px !important;
    }

    #btns .button {
        display: block;
        width: auto;
        min-width: unset;
        margin: 8px 2px;
        padding-top: 0px !important;
        padding-bottom: 3px !important;
        height: 33px !important;
        font-size: 13px;
        vertical-align: middle;
        overflow: hidden;
        white-space: nowrap;
    }

    #btns .imgThumb {
        max-width: 40px;
        max-height: 40px;
    }

        #btns .machine-title {
            display: block !important;
            margin-top: 10px;
            font-size: 1.1em;
        }

    

    .modal-body ul {
        font-size: 13px !important;
        line-height: 1.6;
    }

    .modal-body table {
        font-size: 12px;
    }

    .p17 {
        font-size: 1.3em;
    }


}

/* Teléfonos más chicos */
@media (max-width: 576px) {
    .point_med {
        position: absolute;
        z-index: 8888 !important;
        max-width: 190px;
        padding: 3px 5px;
        top: 50%;
        left: 50%;
    
    }


    .btnMachinery {
        max-width: 100px;
        font-size: 13px;      
    }

    #btns {
        top: 30px;
        text-align: center;
        width: 100% !important;
    }

        #btns .imgThumb {
            max-width: 50px;
            max-height: 50px;
        }

        #btns .machine-title {
            display: block;
            margin-top: 10px;
            font-size: 1.0em;
        }

        .button {
            min-height: 18px !important;
        }

    #btns .button {
        display: inline-block;
        width: auto;
        border-radius: 4px;
        margin: 1px;
        padding-top: 0px !important;
        padding-bottom: 0px !important;
        padding-left: 6px;
        padding-right: 6px;
        height: 28px !important;
        font-size: 12px;
        vertical-align: middle;
        overflow: hidden;
        white-space: nowrap;
    }

        #btns .button:hover {
          
            margin: 1px;
            padding-top: 0px !important;
            padding-bottom: 0px !important;
            padding-left: 6px;
            padding-right: 6px;
            height: 28px !important;
            font-size: 12px;
            vertical-align: middle;
            overflow: hidden;
            white-space: nowrap;
        }

    canvas.webgl {
        width: 100% !important;
        height: auto !important;
        padding-top: 110px;
        
    }

    .btnMachinery {
        margin-left: 0px !important;
        font-size: 12px;
        border-radius: 4px;
        background-color: #ffffffba;
        padding-top: 2px;
        padding-bottom: 4px;
        padding-left: 4px;
        padding-right: 4px;
        color: #222;
        text-decoration: none;
        z-index: 9999 !important;
        border: 2px solid rgb(255, 255, 255);
    }

        .btnMachinery:hover {
            margin-left: 0px !important;
            font-size: 12px;
            border-radius: 4px;
            background-color: #333333ff;
            padding-top: 2px;
            padding-bottom: 4px;
            padding-left: 4px;
            padding-right: 4px;
            color: rgb(222, 222, 222);
            text-decoration: none;
            z-index: 9999 !important;
            cursor: pointer;
            border: 2px solid rgb(250, 250, 250);
        }


    .point_med i.bi {
            top: -10px;
            right: -1px;

    }


}
