﻿/* Inicio funcionalidad Variables visuales */
:root {
    --ai-bg: #f7f3ec;
    --ai-dark: #16110c;
    --ai-primary: #7a4e12;
    --ai-primary-2: #c99432;
    --ai-accent: #e8c46a;
    --ai-soft: #fff3d7;
    --ai-border: rgba(15, 23, 42, 0.09);
    --ai-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; background: var(--ai-bg); color: #172033; overflow: hidden; }
/* Fin funcionalidad Variables visuales */

/* Inicio funcionalidad Login */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: linear-gradient(135deg, rgba(22,17,12,.76), rgba(122,78,18,.58)), url('assets/salon-hero-sb.png') center/cover no-repeat; }
.login-card { width: 100%; max-width: 420px; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-radius: 28px; padding: 34px; box-shadow: 0 30px 80px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.55); }
.login-logo { display: block; width: 112px; height: 112px; margin: 0 auto 18px; filter: drop-shadow(0 16px 28px rgba(18, 58, 122, .25)); }
.login-title { text-align: center; font-weight: 800; color: var(--ai-dark); margin-bottom: 8px; }
.login-subtitle { text-align: center; color: #64748b; margin-bottom: 26px; }
.form-control { border-radius: 14px; min-height: 48px; border: 1px solid var(--ai-border); }
.btn-ai { border: 0; border-radius: 16px; min-height: 48px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--ai-primary), var(--ai-primary-2), var(--ai-accent)); box-shadow: 0 14px 26px rgba(0,114,255,.28); transition: transform .25s ease, box-shadow .25s ease; }
.btn-ai:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 18px 32px rgba(0,114,255,.36); }
.demo-credentials { border-radius: 16px; padding: 12px 14px; background: #f1f5f9; color: #475569; font-size: 13px; margin-top: 18px; }
/* Fin funcionalidad Login */

/* Inicio funcionalidad Toast */
.toast-stack { position: fixed; top: 18px; right: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.ai-toast { min-width: 260px; max-width: 360px; padding: 13px 16px; border-radius: 16px; color: #fff; box-shadow: var(--ai-shadow); animation: toastIn .25s ease; background: #0f172a; }
.ai-toast.success { background: linear-gradient(135deg, #059669, #10b981); }
.ai-toast.error { background: linear-gradient(135deg, #dc2626, #ef4444); }
.ai-toast.info { background: linear-gradient(135deg, #7a4e12, #d9a441); }
@keyframes toastIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
/* Fin funcionalidad Toast */

/* Inicio funcionalidad Shell responsive */
.app-shell { height: 100vh; display: grid; grid-template-columns: 280px 1fr; grid-template-rows: 74px 1fr; background: var(--ai-bg); overflow: hidden; }
.app-header { grid-column: 1 / 3; height: 74px; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--ai-border); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; color: var(--ai-dark); }
.brand img { width: 44px; height: 44px; border-radius: 14px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-pill { background: var(--ai-soft); border-radius: 999px; padding: 9px 14px; font-weight: 700; color: var(--ai-primary); }
.btn-ghost { border: 1px solid var(--ai-border); background: #fff; color: #334155; border-radius: 14px; padding: 9px 14px; font-weight: 700; }
.sidebar { grid-column: 1; grid-row: 2; background: #0b1220; color: #fff; padding: 20px 16px; overflow-y: auto; }
.sidebar-title { color: #94a3b8; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin: 6px 10px 14px; }
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-item { border: 0; width: 100%; text-align: left; color: #dbeafe; background: transparent; border-radius: 16px; padding: 14px 14px; display: flex; align-items: center; gap: 12px; font-weight: 700; transition: all .25s ease; }
.menu-item:hover, .menu-item.active { background: linear-gradient(135deg, rgba(0,114,255,.26), rgba(124,58,237,.24)); color: #fff; transform: translateX(2px); }
.workspace { grid-column: 2; grid-row: 2; padding: 16px; min-width: 0; overflow: hidden; }
.workspace-frame { width: 100%; height: 100%; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--ai-shadow); }
.mobile-menu-btn { display: none; }
.install-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #0f172a; color: #fff; border-radius: 20px; padding: 12px 14px; box-shadow: var(--ai-shadow); z-index: 999; display: none; align-items: center; gap: 12px; }
@media (max-width: 820px) {
    body { overflow: hidden; }
    .app-shell { grid-template-columns: 1fr; grid-template-rows: 68px 1fr 72px; }
    .app-header { grid-column: 1; height: 68px; padding: 0 14px; }
    .brand span { display: none; }
    .user-pill { display: none; }
    .sidebar { grid-column: 1; grid-row: 3; padding: 8px; overflow-x: auto; overflow-y: hidden; display: flex; align-items: center; }
    .sidebar-title { display: none; }
    .menu-list { flex-direction: row; width: 100%; gap: 6px; }
    .menu-item { justify-content: center; min-width: 70px; flex-direction: column; gap: 3px; padding: 8px 6px; font-size: 11px; }
    .workspace { grid-column: 1; grid-row: 2; padding: 10px; }
    .workspace-frame { border-radius: 18px; }
}
/* Fin funcionalidad Shell responsive */

/* Inicio funcionalidad Paginas internas */
.page-body { overflow: auto; background: #fff; min-height: 100vh; padding: 24px; }
.page-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-kicker { color: var(--ai-primary-2); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.page-title { font-weight: 850; color: var(--ai-dark); margin: 4px 0 6px; }
.page-description { color: #64748b; margin: 0; }
.ai-card { border: 1px solid var(--ai-border); border-radius: 24px; padding: 22px; background: #fff; box-shadow: 0 10px 30px rgba(15,23,42,.07); height: 100%; }
.metric-card { border-radius: 24px; padding: 22px; background: linear-gradient(135deg, #f8fbff, #eef5ff); border: 1px solid var(--ai-border); }
.metric-card .value { font-size: 34px; font-weight: 850; color: var(--ai-dark); }
.metric-card .label { color: #64748b; font-weight: 700; }
.fake-chart { height: 250px; display: flex; align-items: flex-end; gap: 14px; padding: 20px; border-radius: 20px; background: #f8fafc; }
.fake-bar { flex: 1; min-width: 28px; border-radius: 14px 14px 6px 6px; background: linear-gradient(180deg, #0072ff, #7c3aed); opacity: .9; }
.table { background: #fff; }
.table th { color: #475569; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.unauthorized { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 28px; background: #f8fafc; }
.unauthorized-box { max-width: 460px; background: #fff; padding: 32px; border-radius: 26px; box-shadow: var(--ai-shadow); }
@media (max-width: 600px) { .page-body { padding: 16px; } .page-header { flex-direction: column; } }
/* Fin funcionalidad Paginas internas */

/* Inicio funcionalidad Animacion agente voz */
.voice-center { text-align: center; padding: 8px 0 18px; }
.voice-toggle-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; margin: 16px 0 20px; }
.voice-ring { position: absolute; width: 190px; height: 190px; border-radius: 999px; border: 2px solid rgba(0,114,255,.2); opacity: 0; pointer-events: none; }
.voice-toggle-wrap.on .voice-ring.r1 { animation: voiceWave 1.8s infinite; }
.voice-toggle-wrap.on .voice-ring.r2 { animation: voiceWave 1.8s .55s infinite; }
.voice-toggle { position: relative; z-index: 2; width: 150px; height: 150px; border: none; border-radius: 999px; padding: 18px; font-weight: 800; transition: all 0.35s ease; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; cursor: pointer; }
.voice-toggle i { font-size: 34px; }
.voice-toggle.off { background: linear-gradient(135deg, #6c757d, #475569); color: #ffffff; box-shadow: 0 12px 28px rgba(71, 85, 105, 0.28); }
.voice-toggle.on { background: linear-gradient(135deg, #00c6ff, #0072ff, #7f00ff); color: #ffffff; box-shadow: 0 0 34px rgba(0, 114, 255, 0.72); animation: voicePulse 1.5s infinite; }
.voice-text { font-size: 13px; line-height: 1.2; }
@keyframes voicePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 114, 255, 0.55); }
    70% { transform: scale(1.045); box-shadow: 0 0 0 20px rgba(0, 114, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 114, 255, 0); }
}
@keyframes voiceWave {
    0% { transform: scale(.7); opacity: .55; }
    100% { transform: scale(1.7); opacity: 0; }
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 9px 14px; font-weight: 800; background: #f1f5f9; color: #475569; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; }
.status-pill.on { background: #ecfeff; color: #0369a1; }
.status-pill.on .status-dot { background: #06b6d4; box-shadow: 0 0 0 8px rgba(6,182,212,.12); }
.transcript-box { min-height: 170px; border-radius: 20px; padding: 16px; background: #0b1220; color: #dbeafe; font-family: Consolas, monospace; overflow: auto; }
.command-button { border-radius: 14px; border: 1px solid var(--ai-border); background: #fff; padding: 10px 12px; font-weight: 700; color: #334155; transition: all .2s ease; }
.command-button:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15,23,42,.09); color: var(--ai-primary); }
.widget-placeholder { border: 2px dashed rgba(0,114,255,.26); border-radius: 22px; padding: 20px; background: #f8fbff; color: #475569; }
/* Fin funcionalidad Animacion agente voz */
/* Inicio funcionalidad Boton instalar PWA en login */
.install-pwa-btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 12px 18px;
    transition: all 0.3s ease;
}

.install-pwa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.install-pwa-btn i {
    transition: transform 0.3s ease;
}

.install-pwa-btn:hover i {
    transform: translateY(2px);
}
/* Fin funcionalidad Boton instalar PWA en login */

/* Inicio funcionalidad Identidad Salon de Belleza */
.sb-login { background: linear-gradient(135deg, rgba(22,17,12,.76), rgba(122,78,18,.6)), url('assets/salon-hero-sb.png') center/cover no-repeat; }
.login-card { border-radius: 8px; }
.btn-ai { background: linear-gradient(135deg, #16110c, #7a4e12, #d9a441); box-shadow: 0 14px 26px rgba(122,78,18,.24); }
.sidebar { background: #16110c; }
.menu-item { border-radius: 8px; color: #f7e8be; }
.menu-item:hover, .menu-item.active { background: linear-gradient(135deg, rgba(217,164,65,.22), rgba(255,242,189,.12)); color: #fff; }
.workspace-frame, .ai-card, .metric-card, .login-card, .unauthorized-box { border-radius: 8px; }
.brand img { background: #16110c; }
.hero-panel { min-height: 250px; border-radius: 8px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 28px; color: #fff; overflow: hidden; }
.hero-copy { max-width: 650px; }
.hero-badge { display: inline-flex; padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 800; color: #ffe9a8; margin-bottom: 10px; }
.hero-copy h2 { font-size: 32px; line-height: 1.08; font-weight: 850; margin: 0 0 8px; }
.hero-copy p { margin: 0; color: #fff4d8; }
.fake-bar.gold { background: linear-gradient(180deg, #f5d77d, #b77d21); }
.timeline { display: grid; gap: 14px; }
.timeline div { border-left: 4px solid #d9a441; padding-left: 12px; }
.timeline span { display: block; color: #64748b; }
.gap-list { gap: 8px; }
.table td, .table th { vertical-align: middle; }
.badge { border-radius: 999px; padding: .42em .62em; }
@media (max-width: 820px) {
    .hero-panel { min-height: 210px; padding: 20px; }
    .hero-copy h2 { font-size: 24px; }
    .menu-item span { max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
/* Fin funcionalidad Identidad Salon de Belleza */



/* Inicio funcionalidad Menu hamburguesa movil SB */
.mobile-menu-overlay {
    display: none;
}

.mobile-menu-btn {
    border: 1px solid var(--ai-border);
    background: #fff;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.mobile-menu-btn span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--ai-dark);
    display: block;
}

@media (max-width: 820px) {
    .app-shell {
        grid-template-columns: 1fr;
        grid-template-rows: 68px 1fr;
    }

    .app-header {
        grid-column: 1;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        display: inline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 14px;
    }

    .header-actions {
        gap: 6px;
    }

    .btn-ghost {
        padding: 9px 10px;
    }

    .sidebar {
        position: fixed;
        top: 68px;
        left: 0;
        bottom: 0;
        width: min(84vw, 320px);
        z-index: 40;
        transform: translateX(-105%);
        transition: transform .25s ease;
        grid-column: auto;
        grid-row: auto;
        display: block;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
        box-shadow: 20px 0 40px rgba(0, 0, 0, .24);
    }

    body.menu-open .sidebar {
        transform: translateX(0);
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 68px 0 0 0;
        z-index: 35;
        background: rgba(22, 17, 12, .42);
        backdrop-filter: blur(2px);
    }

    body.menu-open .mobile-menu-overlay {
        display: block;
    }

    .sidebar-title {
        display: block;
        color: #f7e8be;
        margin: 4px 8px 14px;
    }

    .menu-list {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }

    .menu-item {
        flex-direction: row;
        justify-content: flex-start;
        min-width: 0;
        width: 100%;
        gap: 12px;
        padding: 13px 12px;
        font-size: 14px;
    }

    .menu-item span {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .workspace {
        grid-column: 1;
        grid-row: 2;
        padding: 10px;
    }

    .workspace-frame {
        border-radius: 8px;
    }
}
/* Fin funcionalidad Menu hamburguesa movil SB */

