*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--background: #050b14;
--panel: #0a1524;
--border: rgba(63, 175, 255, 0.16);
--blue: #16baff;
--cyan: #5be7ff;
--text: #e7f5ff;
--muted: #8297aa;
}
body {
background: var(--background);
color: var(--text);
font-family: Arial, sans-serif;
min-height: 100vh;
}
button {
font: inherit;
color: inherit;
cursor: pointer;
}
.app {
display: flex;
min-height: 100vh;
}
.sidebar {
width: 255px;
background: #08111e;
border-right: 1px solid var(--border);
padding: 28px 20px;
display: flex;
flex-direction: column;
flex-shrink: 0;
}
.logo {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 65px;
}
.logo-icon {
width: 43px;
height: 43px;
border: 1px solid var(--blue);
color: var(--cyan);
display: grid;
place-items: center;
font-size: 27px;
box-shadow: 0 0 20px #16baff35;
}
.logo h2 {
letter-spacing: 4px;
font-size: 19px;
}
.logo span,
.eyebrow {
font-size: 9px;
color: var(--blue);
letter-spacing: 2px;
}
.menu-title {
color: #647c91;
font-size: 10px;
letter-spacing: 2px;
margin-bottom: 16px;
}
.nav {
text-align: left;
padding: 15px;
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
color: var(--muted);
margin-bottom: 7px;
}
.nav:hover,
.nav.active {
color: var(--cyan);
background: #10283d;
border-color: var(--border);
}
.sidebar-bottom {
margin-top: auto;
display: flex;
flex-direction: column;
gap: 15px;
}
.connection {
color: #6ce5b0;
font-size: 9px;
letter-spacing: 1px;
}
.dot {
display: inline-block;
width: 7px;
height: 7px;
background: #53e6a4;
border-radius: 50%;
margin-right: 7px;
}
.version {
font-size: 9px;
color: #61758a;
}
.main {
flex: 1;
max-width: 1500px;
padding: 35px 5%;
margin: 0 auto;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 38px;
}
header h1 {
font-size: 27px;
margin-top: 8px;
}
.profile {
font-size: 10px;
color: var(--muted);
letter-spacing: 1px;
display: flex;
align-items: center;
gap: 10px;
}
.profile-dot {
width: 9px;
height: 9px;
background: var(--blue);
border-radius: 50%;
}
.welcome {
position: relative;
overflow: hidden;
padding: 30px;
border: 1px solid var(--border);
border-radius: 15px;
background: linear-gradient(110deg, #0c2034, #091321);
margin-bottom: 25px;
}
.welcome h2 {
font-size: 30px;
margin: 12px 0;
}
.welcome p {
color: var(--muted);
font-size: 14px;
}
.welcome-decoration {
position: absolute;
right: 45px;
top: -48px;
font-size: 190px;
color: #16baff12;
font-weight: bold;
}
.assistant-card {
background: radial-gradient(ellipse at center, #102b45, #091321 68%);
border: 1px solid var(--border);
border-radius: 16px;
min-height: 340px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 25px;
text-align: center;
}
.orb-container {
width: 135px;
height: 135px;
position: relative;
display: grid;
place-items: center;
margin-bottom: 15px;
}
.orb {
width: 75px;
height: 75px;
border-radius: 50%;
background: radial-gradient(circle, #c8faff, #16baff 35%, #07518e 70%);
box-shadow: 0 0 25px #16baff, 0 0 65px #16baff75;
display: grid;
place-items: center;
animation: pulse 3s infinite;
}
.orb-core {
width: 23px;
height: 23px;
background: white;
border-radius: 50%;
filter: blur(3px);
}
.orb-ring {
position: absolute;
inset: 0;
border: 1px solid #42caff65;
border-radius: 50%;
}
.ring-one {
animation: rotate 9s linear infinite;
}
.ring-two {
inset: 12px;
border-style: dashed;
animation: rotate 14s linear infinite reverse;
}
@keyframes pulse {
50% { transform: scale(1.08); }
}
@keyframes rotate {
to { transform: rotate(360deg); }
}
.assistant-card h2 {
letter-spacing: 6px;
font-size: 19px;
}
.assistant-status {
color: var(--cyan);
font-size: 9px;
letter-spacing: 2px;
margin-top: 10px;
}
.voice-controls {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
margin-top: 20px;
font-size: 9px;
letter-spacing: 2px;
color: var(--muted);
}
.voice-button {
width: 48px;
height: 48px;
border-radius: 50%;
border: 1px solid var(--blue);
background: #0b304c;
box-shadow: 0 0 20px #16baff35;
font-size: 20px;
}
.voice-button:hover {
background: #15517b;
}
.voice-message {
color: var(--muted);
font-size: 11px;
margin-top: 12px;
}
.section-title {
margin: 32px 0 17px;
}
.section-title h2 {
font-size: 19px;
margin-top: 7px;
}
.tools {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 15px;
}
.tool-card {
text-align: left;
position: relative;
background: var(--panel);
border: 1px solid var(--border);
border-radius: 12px;
padding: 22px;
min-height: 145px;
transition: .2s;
}
.tool-card:hover {
border-color: var(--blue);
transform: translateY(-3px);
box-shadow: 0 8px 30px #16baff12;
}
.tool-icon {
color: var(--cyan);
font-size: 23px;
}
.tool-card h3 {
font-size: 14px;
margin: 13px 0 7px;
}
.tool-card p {
font-size: 11px;
color: var(--muted);
}
.tool-arrow {
position: absolute;
right: 20px;
top: 20px;
color: var(--blue);
}
footer {
display: flex;
justify-content: space-between;
gap: 10px;
color: #53687c;
font-size: 9px;
letter-spacing: 1px;
margin-top: 35px;
}
@media(max-width: 750px) {
.app {
display: block;
}
.sidebar {
width: 100%;
padding: 15px;
border-right: 0;
border-bottom: 1px solid var(--border);
}
.logo {
margin-bottom: 15px;
}
.menu-title,
.sidebar-bottom {
display: none;
}
.sidebar {
flex-direction: row;
flex-wrap: wrap;
gap: 5px;
}
.nav {
font-size: 11px;
padding: 10px;
margin: 0;
}
.main {
padding: 22px 16px;
}
header h1 {
font-size: 21px;
}
.profile {
font-size: 8px;
}
.welcome {
padding: 23px;
}
.welcome-decoration {
right: 5px;
font-size: 130px;
}
.tools {
grid-template-columns: 1fr;
}
footer {
flex-direction: column;
}
}


[hidden] {
    display: none !important;
}

.chat-panel {
    background: #091321;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    min-height: 450px;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.chat-header h2 {
    margin-top: 8px;
    font-size: 20px;
}

.chat-messages {
    height: 340px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 5px;
}

.chat-message {
    max-width: 80%;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.jarvis-message {
    align-self: flex-start;
    background: #10283d;
    border: 1px solid var(--border);
}

.user-message {
    align-self: flex-end;
    background: #07518e;
    border: 1px solid #16baff70;
}

.error-message {
    align-self: flex-start;
    background: #421d27;
    border: 1px solid #a94455;
    color: #ffd5dc;
}

.chat-form {
    display: flex;
    gap: 10px;
}

.chat-form input {
    flex: 1;
    min-width: 0;
    padding: 14px;
    color: var(--text);
    background: #050b14;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: none;
}

.chat-form input:focus {
    border-color: var(--blue);
}

.chat-form button {
    padding: 0 22px;
    background: #07518e;
    border: 1px solid var(--blue);
    border-radius: 9px;
}

.chat-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-status {
    color: var(--muted);
    font-size: 11px;
    margin-top: 13px;
}

@media(max-width: 550px) {
    .chat-panel {
        padding: 15px;
    }

    .chat-messages {
        height: 55vh;
    }

    .chat-message {
        max-width: 95%;
    }

    .chat-form button {
        padding: 0 14px;
    }
}


#mic-button {
    width: 48px;
    min-width: 48px;
    border: 1px solid var(--blue);
    border-radius: 9px;
    background: #0b304c;
    font-size: 19px;
}

#mic-button:hover {
    background: #15517b;
}

#mic-button.listening {
    background: #7b2030;
    border-color: #ff526c;
    box-shadow: 0 0 18px #ff526c80;
    animation: mic-pulse 1.2s infinite;
}

@keyframes mic-pulse {
    50% {
        box-shadow: 0 0 28px #ff526c;
    }
}

.chat-form button:disabled {
    opacity: 0.5;
}


.pc-panel {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pc-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.pc-heading h2 {
    font-size: 25px;
    letter-spacing: 3px;
    margin: 9px 0;
}

.pc-heading p,
.pc-device p,
.pc-device span {
    color: var(--muted);
    font-size: 12px;
}

.pc-status {
    color: #f0b65b;
    font-size: 9px;
    letter-spacing: 1px;
}

.pc-status .dot {
    background: #f0b65b;
}

.pc-device {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(110deg, #102b45, #091321);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.pc-device-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    color: var(--cyan);
    font-size: 32px;
    border: 1px solid var(--blue);
    border-radius: 12px;
    box-shadow: 0 0 20px #16baff20;
}

.pc-device h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 7px;
}

.pc-device span {
    display: block;
    margin-top: 8px;
}

.pc-section-title h3 {
    font-size: 18px;
    margin-top: 7px;
}

.pc-metrics,
.pc-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pc-metric,
.pc-action {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}

.pc-metric span {
    display: block;
    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted);
}

.pc-metric strong {
    display: block;
    font-size: 25px;
    color: var(--cyan);
    margin: 12px 0 6px;
}

.pc-metric small,
.pc-action small {
    color: var(--muted);
    font-size: 10px;
}

.pc-action > span {
    font-size: 24px;
}

.pc-action h3 {
    font-size: 14px;
    margin: 12px 0 7px;
}

.pc-action p {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 14px;
}

.pc-action small {
    color: var(--blue);
    letter-spacing: 1px;
}

.pc-notice {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #10283d70;
}

.pc-notice strong {
    color: var(--cyan);
    font-size: 10px;
    letter-spacing: 1px;
}

.pc-notice p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 9px;
}

@media(max-width: 550px) {
    .pc-metrics,
    .pc-actions {
        grid-template-columns: 1fr;
    }

    .pc-device {
        padding: 17px;
    }
}

.pc-panel[hidden],
.chat-panel[hidden] {
    display: none !important;
}

.pc-panel:not([hidden]) {
    display: flex;
}


/* =====================================
   JARVIS 2.0 - HALO HOLOGRAFICO
   ===================================== */

.orb-container {
    isolation: isolate;
    overflow: visible;
}

/* Halo exterior de energía */

.orb-container::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        #16baff 55deg,
        #5be7ff 100deg,
        transparent 145deg,
        transparent 220deg,
        #16baff 280deg,
        transparent 330deg
    );
    filter: blur(9px);
    opacity: 0.65;
    animation: halo-rotation 7s linear infinite;
    z-index: -2;
}

/* Resplandor azul */

.orb-container::after {
    content: "";
    position: absolute;
    width: 165px;
    height: 165px;
    border-radius: 50%;
    border: 2px solid #39cfff55;
    box-shadow:
        0 0 15px #16baff,
        0 0 35px #16baff85,
        inset 0 0 25px #16baff35;
    animation: halo-pulse 3s ease-in-out infinite;
    z-index: -1;
}

/* Anillos holográficos */

.orb-ring {
    box-shadow:
        0 0 12px #16baff75,
        inset 0 0 12px #16baff35;
}

.ring-one {
    border-width: 2px;
}

.ring-two {
    border-color: #5be7ff99;
}

/* Esfera central */

.orb {
    box-shadow:
        0 0 20px #16baff,
        0 0 45px #16baff,
        0 0 85px #16baff95,
        0 0 120px #16baff40;
}

/* Haz de luz inferior */

.orb-container {
    margin-bottom: 30px;
}

.orb-container .orb-core {
    box-shadow:
        0 0 15px white,
        0 0 30px #5be7ff;
}

@keyframes halo-rotation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes halo-pulse {
    0%, 100% {
        transform: scale(0.94);
        opacity: 0.45;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.95;
    }
}

/* Efecto de luz ambiental en la tarjeta */

.assistant-card {
    position: relative;
    overflow: hidden;
}

.assistant-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 2px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 75px);
    background: linear-gradient(
        90deg,
        transparent,
        #16baff,
        #ffffff,
        #16baff,
        transparent
    );
    filter: blur(5px);
    opacity: 0.75;
    animation: beam-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes beam-glow {
    0%, 100% {
        opacity: 0.3;
        width: 160px;
    }
    50% {
        opacity: 1;
        width: 280px;
    }
}

/* Reducir movimiento si el usuario lo prefiere */

@media (prefers-reduced-motion: reduce) {
    .orb-container::before,
    .orb-container::after,
    .assistant-card::before {
        animation: none;
    }
}


/* =====================================
   HALO JARVIS - ESTADOS VISUALES
   ===================================== */

.orb-container.halo-idle::before {
    opacity: 0.25 !important;
    animation-duration: 15s !important;
    filter: blur(15px) !important;
}

.orb-container.halo-idle::after {
    opacity: 0.35 !important;
    transform: scale(0.9);
    border-color: #168acb !important;
}

/* ESCUCHANDO: AZUL ELECTRICO */

.orb-container.halo-listening::before {
    opacity: 1 !important;
    animation-duration: 1.5s !important;
    filter: blur(5px) !important;
}

.orb-container.halo-listening::after {
    opacity: 1 !important;
    transform: scale(1.2) !important;
    border: 3px solid #00eaff !important;
    box-shadow:
        0 0 20px #00eaff,
        0 0 50px #00bfff,
        0 0 100px #008cff,
        inset 0 0 40px #00eaff !important;
    animation: listening-pulse 0.8s ease-in-out infinite !important;
}

.orb-container.halo-listening .orb-ring {
    border-color: #00eaff !important;
    box-shadow: 0 0 25px #00eaff !important;
}

/* HABLANDO: BLANCO Y CIAN */

.orb-container.halo-speaking::before {
    opacity: 1 !important;
    animation-duration: 1s !important;
    filter: blur(3px) !important;
}

.orb-container.halo-speaking::after {
    opacity: 1 !important;
    transform: scale(1.3) !important;
    border: 3px solid white !important;
    box-shadow:
        0 0 25px white,
        0 0 60px #5be7ff,
        0 0 120px #16baff,
        inset 0 0 45px #5be7ff !important;
    animation: speaking-pulse 0.45s ease-in-out infinite !important;
}

.orb-container.halo-speaking .orb-ring {
    border-color: white !important;
    box-shadow: 0 0 30px #5be7ff !important;
}

@keyframes listening-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes speaking-pulse {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.3); }
}

/* =====================================
   PANTALLA DE ACCESO JARVIS 2.0
===================================== */

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background:
        radial-gradient(circle at center, rgba(0, 110, 180, 0.18), transparent 55%),
        #050b16;
}

.login-box {
    width: 100%;
    max-width: 390px;
    padding: 38px 30px;
    text-align: center;
    background: rgba(8, 22, 40, 0.94);
    border: 1px solid rgba(0, 200, 255, 0.45);
    border-radius: 16px;
    box-shadow:
        0 0 25px rgba(0, 170, 255, 0.15),
        inset 0 0 20px rgba(0, 170, 255, 0.04);
}

.login-logo {
    color: #00d9ff;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 5px;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.7);
}

.login-subtitle {
    margin: 12px 0 30px;
    color: #7daec5;
    font-size: 11px;
    letter-spacing: 3px;
}

#login-form {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 12px;
}

#login-form label {
    color: #a9d9eb;
    font-size: 13px;
}

#login-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    color: #e8faff;
    background: rgba(2, 10, 22, 0.9);
    border: 1px solid rgba(0, 190, 255, 0.35);
    border-radius: 7px;
    outline: none;
}

#login-form input:focus {
    border-color: #00d9ff;
    box-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

#login-button {
    margin-top: 12px;
    padding: 14px;
    color: #00121c;
    background: #00cfff;
    border: none;
    border-radius: 7px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.2s;
}

#login-button:hover {
    background: #65e5ff;
    box-shadow: 0 0 18px rgba(0, 217, 255, 0.4);
}

#login-status {
    min-height: 18px;
    margin: 5px 0 0;
    color: #ff7777;
    font-size: 13px;
    text-align: center;
}