﻿body {
    margin: 0;
    font-family: Arial, sans-serif;
    /* fondo importante para efecto glass */
    /*background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);*/
}

/* GRID */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    padding: 30px;
}

/* ITEM */
.menu-item {
    text-align: center;
    cursor: pointer;
}


/* 💎 BOTÓN CRISTAL */
.menu-icon-square {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 22px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3), inset 0 1px 1px rgba(255,255,255,0.6), inset 0 -2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

    /* ✨ brillo */
    .menu-icon-square::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        right: 12px;
        height: 35%;
        background: linear-gradient( to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.1) );
        border-radius: 18px;
        filter: blur(2px);
    }

/* 🎨 colores por módulo */
.ventas {
    background: linear-gradient(135deg, rgba(67,233,123,0.4), rgba(56,249,215,0.1));
}

.stock {
    background: linear-gradient(135deg, rgba(79,172,254,0.4), rgba(0,198,255,0.1));
}

.compras {
    background: linear-gradient(135deg, rgba(250,112,154,0.4), rgba(254,225,64,0.1));
}

.fondos {
    background: linear-gradient(135deg, rgba(161,140,209,0.4), rgba(251,194,235,0.1));
}

.informes {
    background: linear-gradient(135deg, rgba(255,183,94,0.4), rgba(237,117,63,0.1));
}

.actualizacion {
    background: linear-gradient(135deg, rgba(0,210,255,0.4), rgba(58,123,213,0.1));
}

.admin {
    background: linear-gradient(135deg, rgba(120,115,245,0.4), rgba(72,52,212,0.1));
}

/* icono */
.menu-icon-square img {
    width: 42px;
    height: 42px;
}

/* texto */
.menu-text {
    margin-top: 8px;
    color: white;
    font-size: 13px;
}

/* animaciones */
.menu-item:hover .menu-icon-square {
    transform: translateY(-6px) scale(1.05);
}

.menu-item:active .menu-icon-square {
    transform: scale(0.92);
}


.material-icons {
    font-size: 36px;
    color: white;
}

/* ----------------------- */

.menu-icon-square2 {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 24px;
    /* 🔥 mucho más transparente */
    background: linear-gradient( 135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.05) );
    /* 💎 glass real */
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    /* borde sutil */
    border: 1px solid rgba(255,255,255,0.4);
    /* sombra más suave */
    box-shadow: 0 8px 20px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .menu-icon-square2::before {
        content: "";
        position: absolute;
        top: 8px;
        left: 12px;
        right: 12px;
        height: 40%;
        background: linear-gradient( to bottom, rgba(255,255,255,0.6), rgba(255,255,255,0.05) );
        border-radius: 20px;
        filter: blur(2px);
    }

    .menu-icon-square2.ventas {
        background: linear-gradient( 135deg, rgba(76,175,80,0.35), rgba(76,175,80,0.05) );
    }

.menu-item2:hover .menu-icon-square2 {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

/*  ----------------------------------------------*/

.menu-icon-square {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 26px;
    /* 🔥 casi transparente */
    background: rgba(255, 255, 255, 0.08);
    /* 💎 blur más fuerte */
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    /* borde cristal */
    border: 1px solid rgba(255, 255, 255, 0.5);
    /* sombras más suaves */
    box-shadow: 0 6px 20px rgba(0,0,0,0.18), inset 0 1px 2px rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .menu-icon-square::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 10px;
        right: 10px;
        height: 45%;
        background: linear-gradient( to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0.05) );
        border-radius: 20px;
        filter: blur(3px);
    }

    .menu-icon-square::after {
        content: "";
        position: absolute;
        top: 0;
        left: -40%;
        width: 60%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.4), transparent );
        transform: skewX(-25deg);
        opacity: 0;
    }

.menu-item:hover .menu-icon-square::after {
    animation: shine 0.8s ease;
    opacity: 1;
}

@keyframes shine {
    100% {
        left: 120%;
    }
}

.menu-icon-square.ventas {
    background: rgba(76, 175, 80, 0.15);
}

.menu-item:hover .menu-icon-square {
    transform: translateY(-3px) scale(1.04);
}

.menu-item:active .menu-icon-square {
    transform: scale(0.95);
}

body {
    background: linear-gradient(135deg, #0f2027, #2c5364);
}

.menu-icon-square::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 45%;
    background: radial-gradient( ellipse at top left, rgba(255,255,255,0.7), rgba(255,255,255,0.1) 60%, transparent 100% );
    border-radius: 22px;
    filter: blur(4px);
    pointer-events: none;
}

/* v2 ----------------------- */

/* 💎 GLASS CLARO */
.menu-icon-square3.v2 {
    width: 90px;
    height: 90px;
    margin: auto;
    border-radius: 26px;
    /* 🔥 más sólido (clave en fondo claro) */
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .menu-icon-square3.v2::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 10px;
        right: 10px;
        height: 40%;
        background: radial-gradient( ellipse at top left, rgba(255,255,255,0.9), rgba(255,255,255,0.2), transparent );
        border-radius: 20px;
        filter: blur(3px);
    }


    .menu-icon-square3.v2::after {
        content: "";
        position: absolute;
        bottom: 6px;
        right: 10px;
        width: 30%;
        height: 30%;
        background: radial-gradient( circle, rgba(255,255,255,0.4), transparent );
        filter: blur(6px);
    }


.menu-item3:hover .menu-icon-square3.v2 {
    transform: translateY(-4px) scale(1.04);
}

.menu-item3:active .menu-icon-square3.v2 {
    transform: scale(0.95);
}

.material-symbols-outlined {
    font-size: 38px;
    color: #4a5568; /* gris suave */
}


.menu-icon-square3.v2::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 8px;
    right: 8px;
    height: 48%;
    border-radius: 24px;
    background: linear-gradient( to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.9) 20%, rgba(255,255,255,0.4) 45%, rgba(255,255,255,0.05) 75%, transparent 100% );
    filter: blur(1px); /* menos blur = más visible */
    opacity: 0.9;
}

/* -----------------------------*/

.menu-icon-square {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.menu-item:hover .menu-icon-square {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 18px 30px rgba(0,0,0,0.25), inset 0 1px 2px rgba(255,255,255,0.9);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.menu-icon-square {
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.menu-icon-square {
    animation: float 4s ease-in-out infinite;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.menu-item:active .menu-icon-square {
    animation: bounce 0.25s ease;
}

.menu-icon-square::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient( 120deg, transparent, rgba(255,255,255,0.5), transparent );
    transform: skewX(-20deg);
}

.menu-item:hover .menu-icon-square::after {
    animation: shine 0.8s ease;
}

@keyframes shine {
    100% {
        left: 120%;
    }
}

.menu-item:hover .menu-icon-square {
    transform: perspective(300px) rotateX(5deg) rotateY(-5deg) scale(1.05);
}

.menu-item:hover .menu-icon-square {
    transform: perspective(300px) rotateX(5deg) rotateY(-5deg) scale(1.05);
}

    .menu-item:hover .menu-icon-square::after {
        animation: shine 0.8s ease;
    }

.menu-item:nth-child(1) .menu-icon-square {
    animation-delay: 0s;
}

.menu-item:nth-child(2) .menu-icon-square {
    animation-delay: 0.3s;
}

.menu-item:nth-child(3) .menu-icon-square {
    animation-delay: 0.6s;
}

.menu-item:nth-child(4) .menu-icon-square {
    animation-delay: 0.2s;
}

.menu-item:nth-child(5) .menu-icon-square {
    animation-delay: 0.5s;
}

.menu-item:nth-child(6) .menu-icon-square {
    animation-delay: 0.1s;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

.menu-icon-square {
    animation: float 4s ease-in-out infinite;
}

.menu-icon-square {
    animation: float 4s ease-in-out infinite;
    animation-delay: var(--delay);
}


.menu-icon-square {
    display: flex;
    flex-direction: column; /* 🔥 clave */
    align-items: center;
    justify-content: center;
}

    /* icono un poco arriba */
    .menu-icon-square .material-icons {
        font-size: 34px;
        margin-bottom: 4px;
    }

/* texto dentro */
.menu-text.inside {
    font-size: 11px;
    color: white;
    opacity: 0.9;
}







/* --------------------------------------------*/
.menu-icon-square {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    /* 🔥 fondo mucho más claro */
    background: rgba(255, 255, 255, 0.15);
    /* 💎 glass */
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    /* borde más fino */
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* sombras más suaves */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), inset 0 1px 2px rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.25s ease;
}

    .menu-icon-square::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 10px;
        right: 10px;
        height: 40%;
        background: radial-gradient( ellipse at top left, rgba(255,255,255,0.8), rgba(255,255,255,0.2), transparent );
        border-radius: 20px;
        filter: blur(3px);
    }

.menu-text {
    color: rgba(255,255,255,0.9);
}

body {
    background: linear-gradient(135deg, #2c3e50, #4ca1af);
}

body {
    /*  background-image: url("assets/imagen2.webp");*/
    background: linear-gradient(135deg, #2f2f2f, #a8a8a8);
    background: linear-gradient(to top, #2c3e50, #a8a8a8);
}

body {
    background: #1f3a5f;
}

body {
    background: #2f5f98;
}

body {
    background: #c0c0c0;
}

body {
    background: #d4d7dc;
}

body {
    background: linear-gradient( 180deg, #e5e7eb, #cfd4da, #bfc5cc );
}

body {
    background: #d1d5db;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.2) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.05) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #9ca3af;
}

body {
    background: linear-gradient( to top, #bfc5cc, #e5e7eb );
}

body {
    background: #d1d5db;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.2) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.05) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #b0b5bd;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.15) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.08) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #a8adb5;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.12) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.1) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #8f949c;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.08) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.15) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #a8adb5;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.12) 25%, transparent 25%), linear-gradient(225deg, rgba(0,0,0,0.1) 25%, transparent 25%);
    background-size: 6px 6px;
}

body {
    background: #1f3d2b;
}

body {
    background: #1b4332;
}

body {
    background: #264653;
}

body {
    background: url("assets/imagen2.webp") center/cover no-repeat;
}


body {
    background: #2f5f98;
}

body {
    background: linear-gradient(135deg, #1e293b, #334155);
    background-image: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.05), transparent), radial-gradient(circle at 80% 80%, rgba(0,0,0,0.1), transparent);
}

body {
    background: #2f4f3e;
    background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

body {
    background: linear-gradient(135deg, #1e293b, #4ca1af);
}

body {
    background: url("assets/imagen2.webp") center/cover no-repeat;
}


.menu-item {
    user-select: none;
    -webkit-user-select: none;
}

* {
   -webkit-tap-highlight-color: transparent;
}

body {
    /* Portado a KayrosShared (RCL): la ruta ya no puede ser absoluta ("/assets/...") porque
       este CSS se sirve bajo _content/KayrosShared/... en KayrosWeb/KayrosMobile, no desde
       la raiz del sitio como en WebBlazorTest. */
    background: url('/_content/KayrosShared/assets/fondodark2.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;


    /*----- ia*/
    /*
         background: url('/_content/KayrosShared/assets/fondolight.png');
    background-color: rgba(215, 215, 215, 1);
 
        background: #252733;
        background: #1F212B;
      background: #2B2D36;
      background: #1F212B;
      background: #252733;
    */
    /* ------------- */
    /*background: #2f5f98;*/
    /*background: #C4C4C4;*/
    /*background: rgb(37, 39, 41);*/
    touch-action: manipulation;
}

/* FIX (2026-08-16, reportado por Alejandro: "cuando cambio a light el fondo queda con el fondo
   dark"): la regla de arriba fijaba el fondo oscuro para SIEMPRE y la variante clara estaba
   comentada, asi que cambiar de tema repintaba la paleta de MudBlazor pero no la imagen de fondo
   de la aplicacion autenticada. Las pantallas de Login y Splash si tenian su variante clara
   (kayros_styles.css) -- solo faltaba la del body.

   El selector va sobre el propio body y no como descendiente: theme.js escribe el atributo EN el
   body (ver window.setThemeMode). */
body[data-theme-mode="light"] {
    background-image: url('/_content/KayrosShared/assets/fondolight.png');
}


.glass-box {
    top: 50px;
    left: 40%;
    margin-bottom: 100px;
    width: 300px;
    height: 200px;
    border-radius: 20px;
    /* 🔥 transparencia */
    background: rgba(255, 255, 255, 0.12);
    /* 💎 efecto vidrio REAL */
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    /* borde glass */
    border: 1px solid rgba(255,255,255,0.4);
    /* sombra */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3), inset 0 1px 2px rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

    .glass-box::before {
        content: "";
        position: absolute;
        top: 6px;
        left: 10px;
        right: 10px;
        height: 40%;
        background: radial-gradient( ellipse at top left, rgba(255,255,255,0.8), rgba(255,255,255,0.2), transparent );
        border-radius: 18px;
        filter: blur(3px);
    }



    /* -----------------------------------*/

.menu-item.folder {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .menu-item.folder:hover {
        transform: translateY(-5px);
        background: rgba(255,255,255,0.25);
    }



.commands-section {
    margin-top: 30px;
    padding: 15px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

    .command-item:hover {
        background: rgba(255,255,255,0.2);
        transform: translateX(5px);
    }

    .command-item:active {
        transform: scale(0.97);
    }