/* Marco de la aplicación: acceso, menú, barra superior, asistente */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); line-height: 1; }
.logo .logo-mark { width: 50px; height: 50px; flex: none; overflow: visible; }
.logo .words { display: flex; flex-direction: column; align-items: flex-start; }
.logo .w { font-weight: 800; font-size: 22px; letter-spacing: -.035em; line-height: .94; }
.logo .sub { margin-top: 5px; padding: 2px 9px; border-radius: 99px; background: linear-gradient(90deg, #1E4EA3, #2F86D2); color: #fff; font-size: 9.5px; font-weight: 700; letter-spacing: .02em; }
.logo.claro { color: #fff; } .logo.xl .logo-mark { width: 76px; height: 76px; } .logo.xl .w { font-size: 32px; } .logo.xl .sub { font-size: 12px; padding: 3px 12px; }

/* acceso */
.auth { min-height: 100dvh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; background: radial-gradient(1200px 600px at 10% -10%, #7A3A1D 0%, transparent 60%), radial-gradient(900px 700px at 100% 110%, #A5481C 0%, transparent 55%), #2B1E16; color: #fff; display: flex; align-items: center; padding: 56px; overflow: hidden; }
.auth-art::after { content: ''; position: absolute; width: 520px; height: 520px; right: -160px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 162, 58, .25), transparent 65%); pointer-events: none; }
.auth-art-in { max-width: 460px; position: relative; z-index: 1; } .auth-art h2 { font-size: clamp(30px, 3.4vw, 44px); margin: 44px 0 14px; letter-spacing: -.035em; line-height: 1.06; } .auth-art h2 em { font-style: normal; color: #F3B567; }
.auth-art p { color: rgba(255, 255, 255, .75); font-size: 17px; }
.auth-pts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 12px; } .auth-pts li { display: flex; gap: 10px; align-items: center; color: rgba(255, 255, 255, .88); font-size: 15px; } .auth-pts .ic { color: #F3B567; width: 20px; }
.auth-card-wrap { display: grid; place-items: center; padding: 32px 20px; } .auth-card { width: min(400px, 100%); } .auth-card h1 { margin-bottom: 6px; } .auth-m { display: none; margin-bottom: 30px; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-m { display: block; } }

/* estructura */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 22px 14px 14px; background: color-mix(in srgb, var(--bg-2) 70%, var(--bg)); border-right: 1px solid var(--line); overflow-y: auto; }
.side .logo-w { padding: 2px 10px 18px; } .side .logo-w a { text-decoration: none; }
.side-emp { margin: 0 6px 12px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--card); box-shadow: 0 0 0 1px var(--line-2); display: flex; flex-direction: column; }
.side nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.side h6 { margin: 18px 12px 6px; font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); font-weight: 700; } .side h6:first-child { margin-top: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; text-decoration: none; }
.side nav a:hover { background: rgba(120, 80, 40, .07); color: var(--ink); } .side nav a.on { background: var(--card); color: var(--brand-d); box-shadow: 0 1px 2px rgba(60, 35, 15, .08), 0 0 0 1px var(--line-2); }
.side nav a.on .ic { color: var(--brand); }
.nbadge { margin-left: auto; font-style: normal; min-width: 22px; padding: 1px 7px; text-align: center; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; }
.yo { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.yo-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; } .yo-chip:hover { background: rgba(120, 80, 40, .07); text-decoration: none; } .yo-chip.on { background: var(--card); }
.salir { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; color: var(--muted); border-radius: 10px; font-size: 14px; font-weight: 550; } .salir:hover { background: rgba(120, 80, 40, .07); color: var(--bad); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-logo { display: none; text-decoration: none; } .top-search { max-width: 560px; position: relative; } .top-search .input { min-height: 40px; }
.gs-res { position: absolute; top: 46px; left: 0; right: 0; background: var(--card); border-radius: 16px; box-shadow: var(--sh-3), 0 0 0 1px var(--line); padding: 8px; z-index: 50; max-height: 70vh; overflow-y: auto; }
.gs-res h6 { margin: 8px 10px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); } .gs-res a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; } .gs-res a:hover { background: var(--bg-2); }
.ico-s { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.menu-w { position: relative; } .menu { position: absolute; right: 0; top: 44px; min-width: 230px; background: var(--card); border-radius: 16px; box-shadow: var(--sh-3), 0 0 0 1px var(--line); padding: 6px; z-index: 60; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; font-weight: 550; text-align: left; } .menu button:hover { background: var(--bg-2); } .menu .ic { color: var(--brand); }
.view { padding: 28px 28px 80px; width: 100%; max-width: 1360px; margin: 0 auto; outline: none; } .view.fade { animation: entra .35s var(--ease); } @keyframes entra { from { opacity: 0; transform: translateY(8px); } }
.page-h { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; } .page-h h1 { font-size: clamp(28px, 3.2vw, 36px); } .page-h .muted { margin-top: 4px; }
.page-acc { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.crumb { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--muted); } .crumb:hover { color: var(--brand-d); text-decoration: none; }
.tabbar { display: none; }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; } .side { display: none; } .topbar { padding: 10px 16px; } .top-logo { display: block; } .top-logo .logo-mark { width: 34px; height: 34px; } .top-logo .w { font-size: 16px; }
  .top-search { display: none; } .view { padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); } .hide-m { display: none; }
  .topbar .grow { flex: 1; } .top-logo + .menu-w, .top-logo + .icon-btn { margin-left: auto; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; border-radius: 12px; }
  .tabbar .ic { width: 24px; height: 24px; } .tabbar .on { color: var(--brand-d); } .tabbar .on .ic { color: var(--brand); }
  .page-h { margin-bottom: 16px; }
}
@media (min-width: 961px) { .topbar .top-av { display: none; } }

/* asistente */
.asis-fab { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 650; box-shadow: var(--sh-3); transition: transform .2s var(--ease); }
.asis-fab:hover { transform: translateY(-2px); } .asis-fab.oculto { display: none; } .asis-fab .ic { color: #F3B567; }
@media (max-width: 960px) { .asis-fab { display: none; } }
.asis-panel { position: fixed; right: 24px; bottom: 24px; z-index: 120; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 48px)); display: flex; flex-direction: column; background: var(--bg); border-radius: 24px; box-shadow: var(--sh-3), 0 0 0 1px var(--line); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); transition: all .25s var(--ease); }
.asis-panel.in { opacity: 1; transform: none; }
@media (max-width: 700px) { .asis-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; right: 0; bottom: 0; } }
.asis-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; background: var(--ink); color: #fff; } .asis-head .tiny { color: rgba(255, 255, 255, .65); } .asis-head .icon-btn { color: #fff; } .asis-head .icon-btn:hover { background: rgba(255, 255, 255, .12); }
.asis-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #E0803A, #C8483B); }
.asis-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.asis-m { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; } .asis-m.el { background: var(--card); box-shadow: 0 0 0 1px var(--line-2); border-bottom-left-radius: 6px; align-self: flex-start; } .asis-m.yo { background: var(--brand); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.asis-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.asis-chips { display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .asis-chips .chip { flex: none; font-size: 13px; padding: 6px 12px; }
.asis-form { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card-2); } .asis-form .input { border-radius: 99px; } .asis-form .btn { padding: 0 16px; }

/* dictado */
.dictar-wrap { position: relative; } .dictar-wrap textarea { padding-right: 46px; } .dictar-btn { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg-2); color: var(--ink-2); display: grid; place-items: center; } .dictar-btn:hover { background: var(--brand-l); color: var(--brand-d); }
.dictar-btn.on { background: var(--bad); color: #fff; animation: late 1.1s infinite; } @keyframes late { 50% { box-shadow: 0 0 0 8px rgba(194, 59, 48, .15); } }
