#menuIA { display: none; }
/* Estilos Desktop */
.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease-in-out;
}
.group:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Estilos Móvil - Animación de entrada del menú principal */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out forwards;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NUEVO: Transición suave para el deslizamiento del acordeón */
.mobile-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-in-out;
}


 /* Ocultar la lista de datos original */
        #menuIA { display: none; }

        /* =========================================
           CONTENEDOR FLOTANTE PRINCIPAL
           ========================================= */
        .menu-wrapper {
            width: 100%;
            padding: 10px;
            box-sizing: border-box; /* Importante para que el padding no sume ancho */
            position: fixed;
            top: 0;
            left: 0;
            z-index: 50;
        }

        /* =========================================
           BARRA DE NAVEGACIÓN (NAVBAR)
           ========================================= */
        .navbar {
            background-color: #ce2c2b; /* ROJO CORPORATIVO */
            color: white;
            width: 100%;
            height: 64px;
            border-radius: 1rem; /* rounded-2xl */
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 1rem;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
            position: relative;
            box-sizing: border-box;
        }

        /* LOGO */
        .logo {
            display: flex;
            align-items: center;
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: -0.025em;
            margin-right: 1.5rem;
            cursor: pointer;
            text-decoration: none;
            color: white;
        }
        .logo span.sa {
            color: #e5e7eb;
            margin-left: 0.25rem;
            font-size: 1.125rem;
            opacity: 0.8;
        }

        /* =========================================
           MENÚ DE ESCRITORIO
           ========================================= */
        .desktop-menu {
            display: none; /* Se activa con media query */
            height: 100%;
            flex: 1;
            align-items: center;
        }

        /* Grupos de alineación */
        .menu-center {
            flex: 1;
            display: flex;
            justify-content: center;
            height: 100%;
        }
        .menu-right {
            display: flex;
            align-items: center;
            height: 100%;
        }

        /* Botones del menú */
        .nav-item {
            position: relative; /* Para posicionar el dropdown */
            height: 100%;
            display: flex;
            align-items: center;
        }

        .nav-btn {
            display: flex;
            align-items: center;
            padding: 0 1.25rem;
            height: 100%;
            font-size: 0.875rem; /* text-sm */
            font-weight: 600;
            letter-spacing: 0.025em;
            color: white;
            background: none;
            border: none;
            cursor: pointer;
            text-decoration: none;
            transition: background-color 0.2s;
            border-right: 1px solid rgba(224, 94, 94, 0.3);
        }

        /* Bordes específicos */
        .nav-item:first-child .nav-btn { border-left: 1px solid rgba(224, 94, 94, 0.3); }
        .menu-right .nav-item .nav-btn { border-right: none; border-left: 1px solid rgba(224, 94, 94, 0.3); }

        .nav-btn:hover {
            background-color: #b02222;
        }

        /* Icono flecha */
        .chevron {
            width: 16px;
            height: 16px;
            margin-left: 4px;
            transition: transform 0.2s;
        }
        .nav-item:hover .chevron {
            transform: rotate(180deg);
        }

        /* =========================================
           DROPDOWN (DESPLEGABLE)
           ========================================= */
        .dropdown {
            position: absolute;
            top: 90%;
            left: 0;
            width: 14rem; /* 56 tailwind */
            background-color: white;
            border-radius: 0.5rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
            border: 1px solid #f3f4f6;
            overflow: hidden;
            
            /* Estado inicial oculto */
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.2s ease-in-out;
            z-index: 100;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* Alineación derecha del dropdown */
        .nav-item.is-right .dropdown {
            left: auto;
            right: 0;
        }

        .dropdown ul {
            list-style: none;
            padding: 0.5rem 0;
            margin: 0;
        }

        .dropdown a {
            display: block;
            padding: 0.75rem 1rem;
            font-size: 0.875rem;
            color: #1f2937;
            text-decoration: none;
            border-left: 4px solid transparent;
            transition: all 0.2s;
        }

        .dropdown a:hover {
            background-color: #fef2f2; /* red-50 */
            color: #ce2c2b;
            border-left-color: #ce2c2b;
        }

        /* =========================================
           MENÚ MÓVIL
           ========================================= */
        .mobile-btn {
            display: block; /* Visible en móvil */
            background: none;
            border: none;
            color: white;
            padding: 0.5rem;
            border-radius: 0.5rem;
            cursor: pointer;
        }
        .mobile-btn:hover { background-color: #b02222; }

        .mobile-panel {
            display: none; /* Oculto por defecto */
            margin-top: 0.5rem;
            background-color: white;
            border-radius: 0.75rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border: 1px solid #e5e7eb;
            overflow: hidden;
        }
        
        .mobile-panel.open {
            display: block;
            animation: slideDown 0.3s ease-out forwards;
        }

        .mobile-item {
            border-bottom: 1px solid #f3f4f6;
        }
        .mobile-item:last-child { border-bottom: none; }

        .mobile-trigger {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.75rem 1rem;
            background: none;
            border: none;
            color: #ce2c2b;
            font-weight: 700;
            font-size: 0.875rem;
            cursor: pointer;
            transition: background 0.2s;
        }
        .mobile-trigger:hover { background-color: #f9fafb; }
        .mobile-trigger:disabled { cursor: default; } /* Para items sin submenú */

        /* Contenido del acordeón */
        .mobile-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.35s ease-in-out;
            background-color: #f9fafb;
        }
        
        .mobile-link {
            display: block;
            padding: 0.5rem 2rem;
            font-size: 0.875rem;
            color: #4b5563;
            text-decoration: none;
        }
        .mobile-link:hover {
            background-color: #fef2f2;
            color: #b91c1c;
        }

        /* Botón especial móvil (Salir/Login) */
        .mobile-special {
            padding: 1rem;
            border-top: 1px solid #e5e7eb;
        }
        .mobile-special-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            padding: 0.5rem 1rem;
            background-color: #1f2937;
            color: white;
            text-decoration: none;
            border-radius: 0.5rem;
            font-size: 0.875rem;
        }
        .mobile-special-btn:hover { background-color: black; }

        /* =========================================
           RESPONSIVE (MEDIA QUERIES)
           ========================================= */
        @media (min-width: 1024px) {
            .mobile-btn { display: none; }
            .desktop-menu { display: flex; }
            .mobile-panel { display: none !important; }
        }

        @keyframes slideDown {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Estilos de utilidades para el contenido de ejemplo */
        .content-container {
            padding-top: 7rem;
            padding-left: 1.5rem;
            padding-right: 1.5rem;
            padding-bottom: 2.5rem;
        }
        .card {
            background: white;
            padding: 2rem;
            border-radius: 0.75rem;
            box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
            border: 1px solid #e5e7eb;
            max-width: 72rem;
            margin: 0 auto;
        }
        .alert-box {
            padding: 1.5rem;
            background-color: #ecfdf5;
            color: #065f46;
            border: 1px solid #a7f3d0;
            border-radius: 0.5rem;
            margin-bottom: 1rem;
        }