﻿
@media (max-width: 768px) {

    nav.menu {
        display: none;
    }

    .logo {
        position: absolute;
        top: 10px;
        left: 0px; /* distancia desde el borde izquierdo */
    }

    /* Botón hamburguesa */
    #iconoMenu {
        display: flex;
        width: 50px;
        height: 22px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 10001;
        position: absolute; /* fijo en pantalla */
        top: 55px;
        right: 45px;
    }

        #iconoMenu span {
            display: block;
            height: 4px;
            background-color: #fff; /* Blanco por defecto */
            border-radius: 2px;
            transition: 0.3s ease;
        }

        /* Cuando el menú está visible (icono en estado activo), cambia a negro */
        #iconoMenu.active span {
            background-color: #000;
        }

        /* Hacer más pequeño cuando es X */
        #iconoMenu.active {
            transform: scale(0.65);
            top: 25px;
            right: 25px;
        }

        /* Animación a X */
        #iconoMenu.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        #iconoMenu.active span:nth-child(2) {
            opacity: 0;
        }

        #iconoMenu.active span:nth-child(3) {
            transform: rotate(-45deg) translate(6px, -6px);
        }

    /* Overlay */
    #overlay {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 9998;
    }

        #overlay.visible {
            opacity: 1;
            pointer-events: all;
        }

    /* Menú lateral */
    #menuLateral {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100%;
        width: 80%;
        max-width: 400px;
        background-color: #fff;
        box-shadow: -2px 0 8px rgba(0,0,0,0.3);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 9999;
        padding: 20px;
    }

        #menuLateral.visible {
            transform: translateX(0);
        }

        #menuLateral h2 {
            display: none; /* ocultamos el título */
            color: #000; /* texto negro */
        }

        #menuLateral ul {
            list-style: none; /* quitamos viñetas */
            padding: 0;
            margin: 0;
            position: absolute;
            top: 40px;
            left: 20px;
            width: 80%;
        }

        #menuLateral li {
            color: #808080; /* texto negro */
            font-size: 18px; /* tamaño legible en móvil */
            padding: 12px 0; /* espacio entre items */
            cursor: pointer;
            border-bottom: 2px solid #327DA0;
            font-family: 'Raleway', sans-serif;
            font-weight: 900;
            font-size: 18px;
        }

        #menuLateral .infoExtra {
            margin-top: 60px;
            padding-top: 10px;
            font-family: 'Raleway', sans-serif;
            font-weight: 900;
            font-size: 14px;
            color: #327DA0; /* color aplicado al texto */
            position: absolute;
            top: 240px;
            left: 20px;
            line-height: 150%;
        }

            #menuLateral .infoExtra p {
                margin: 6px 0;
                display: flex;
                align-items: center;
                gap: 8px;
            }

            #menuLateral .infoExtra i {
                color: #327DA0; /* iconos en azul */
                font-size: 16px;
            }

        /* Botón AREA CLIENTES */
        #menuLateral .btnClientes {
            margin-top: 15px;
            width: 100%;
            padding: 12px;
            background-color: #327DA0;
            color: #fff;
            font-family: 'Raleway', sans-serif;
            font-weight: 900;
            font-size: 18px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            transition: background 0.3s ease;
        }

            #menuLateral .btnClientes:hover {
                background-color: #327DA0; /* tono más oscuro al pasar */
            }


}
