*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',sans-serif;
}

body{
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:100vh;
    min-height:100svh;
    padding:26px 16px 90px;
    overflow-x:hidden;
    overflow-y:auto;
    position:relative;

    background:
        radial-gradient(circle at top,#1a0033,#000);
}

/* =========================
   CANVAS ANIMADO
========================= */

#networkCanvas{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    z-index:0;
    pointer-events:none;
    background:transparent;
}

/* =========================
   CARD PRINCIPAL
========================= */

.card{

    width:460px;
    max-width:95%;

    position:relative;
    z-index:2;

    background:rgba(18,18,25,0.78);
    backdrop-filter:blur(14px);

    border:1px solid rgba(0,255,120,.15);

    box-shadow:
        0 0 35px rgba(0,255,120,.15),
        0 0 60px rgba(255,128,0,.08);

    border-radius:22px;

    padding:35px;
    text-align:center;
}

/* =========================
   LOGO
========================= */

.logo{

    width:280px;
    max-width:100%;

    margin-bottom:15px;
}

/* =========================
   TITULO
========================= */

.card h1{

    color:#fff;
    font-size:28px;
    margin-bottom:8px;
}

.subtitle{

    color:#cfcfcf;
    font-size:14px;
    margin-bottom:30px;
}

/* =========================
   BOTONES
========================= */

.menu-btn{

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    padding:16px;

    margin-bottom:15px;

    text-decoration:none;
    color:#fff;

    font-size:17px;
    font-weight:700;

    border-radius:12px;

    transition:.30s;

    box-shadow:
        0 0 15px rgba(255,255,255,.08);
}

.menu-btn:hover{

    transform:translateY(-3px);

    box-shadow:
        0 0 25px rgba(255,255,255,.18);
}

/* Panel empresarial */

.empresarial{

    background:
    linear-gradient(
        90deg,
        #16a34a,
        #22c55e
    );
}

/* Tienda */

.tienda{

    background:
    linear-gradient(
        90deg,
        #2563eb,
        #3b82f6
    );
}

/* Clientes */

.clientes{

    background:
    linear-gradient(
        90deg,
        #f97316,
        #fb923c
    );
}

.footer{

    margin-top:15px;
    color:#9ca3af;
    font-size:12px;
}

/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float{

    position:fixed;

    right:25px;
    bottom:25px;

    width:65px;
    height:65px;

    border-radius:50%;

    background:#25D366;

    display:flex;
    align-items:center;
    justify-content:center;

    text-decoration:none;

    font-size:34px;

    color:#fff;

    z-index:9999;

    box-shadow:
        0 0 20px rgba(37,211,102,.6),
        0 0 40px rgba(37,211,102,.4);

    transition:.3s;
}

.whatsapp-float:hover{

    transform:scale(1.1);

    box-shadow:
        0 0 30px rgba(37,211,102,.8),
        0 0 60px rgba(37,211,102,.5);
}

.whatsapp-tooltip{

    position:fixed;

    right:100px;
    bottom:42px;

    background:rgba(0,0,0,.85);

    color:#fff;

    padding:10px 14px;

    border-radius:10px;

    font-size:13px;

    z-index:9998;

    border:1px solid rgba(37,211,102,.4);

    backdrop-filter:blur(10px);
}

/* Accesos unificados entre Portal y Super Root */
.portal-card{width:460px;max-width:100%;}
.oficial{background:linear-gradient(90deg,#007d8e,#0d9488);}
.tutorial{background:linear-gradient(90deg,#7c3aed,#a855f7);}
.root-acceso{background:linear-gradient(90deg,#16a34a,#22c55e);border:0;cursor:pointer;}
.portal-card label{display:block;text-align:left;color:#d7dce7;font-size:13px;margin:12px 0 6px;font-weight:600;}
.portal-input{width:100%;padding:15px 16px;border-radius:12px;border:1px solid rgba(255,255,255,.19);background:rgba(9,15,28,.85);color:white;font-size:16px;outline:none;transition:border-color .2s,box-shadow .2s;}
.portal-input::placeholder{color:#a5acb9;}
.portal-input:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.15);}
.portal-alert{padding:13px 15px;background:rgba(220,38,38,.15);border:1px solid rgba(248,113,113,.5);border-radius:12px;color:#fecaca;font-size:14px;margin-bottom:16px;}
.portal-form{margin:22px 0 5px;}
.portal-form .menu-btn{margin-top:22px;}
.portal-back{display:inline-block;color:#a5f3fc;font-size:14px;text-decoration:none;margin:10px auto 0;}
.portal-back:hover{text-decoration:underline;}
.portal-small{color:#a7b0c1;font-size:12px;line-height:1.6;margin-top:16px;}
@media(max-width:540px){.card{padding:23px 19px;border-radius:18px}.card h1{font-size:24px}.subtitle{margin-bottom:24px}.menu-btn{padding:13px;font-size:15px}.whatsapp-float{width:54px;height:54px;font-size:26px;right:14px;bottom:13px}.whatsapp-tooltip{display:none;}}
@media(prefers-reduced-motion:reduce){.menu-btn,.whatsapp-float{transition:none;}}

