﻿/* IAVAI Studio: warm architectural shell and practical work surfaces. */
:root {
  --tinta: #292822; --tinta-media: #656158; --tinta-suave: #706b62;
  --fondo: #fff; --fondo-alt: #f6f5f2; --fondo-hover: #eeece7;
  --borde: #e8e5df; --borde-fuerte: #d4d0c7;
  --acento: #665744; --acento-suave: #eee8df;
  --verde: #32664d; --verde-suave: #edf4ee;
  --rojo: #ac372b; --rojo-suave: #fff0ed; --ambar: #946020;
  --radio: 14px; --radio-s: 8px; --sidebar: 224px;
  --sombra: 0 5px 22px rgb(43 35 25 / 5%);
  --fuente: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; scrollbar-color: #b9b2a6 #f4f2ee; }
body.studio { background: #eeebe5; }
::selection { background: #d8c6ac; color: #27251f; }
input, textarea { caret-color: #665744; }
:focus-visible { outline: 2px solid #8c6942; outline-offset: 4px; }
a { text-underline-offset: 3px; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.skip-link { position: fixed; left: 20px; top: -100px; padding: 12px 20px; background: white; color: #292822; z-index: 100; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.studio .app { position: relative; isolation: isolate; min-height: 100dvh; }
.studio .app::before { content: ''; position: absolute; inset: 0 0 auto; height: 365px; z-index: -1; background: linear-gradient(90deg, rgb(24 21 17 / 35%), transparent 75%), url('/static/img/uppery-portada.webp') center 52% / cover; }
.studio .sidebar { padding: 35px 16px 24px; gap: 37px; height: 100dvh; border: 0; background: linear-gradient(180deg, rgb(34 30 25 / 88%) 0%, rgb(49 43 36 / 95%) 61%, #e2dcd3 88%, #eeeae3 100%); backdrop-filter: blur(20px); color: #f4f1eb; z-index: 20; overflow-y: auto; }
.studio .marca { align-items: flex-start; flex-direction: column; gap: 8px; padding: 0 15px; }
.studio .marca img { height: 29px; filter: none; }
.marca-descriptor { font-size: 10px; letter-spacing: .065em; font-weight: 400; color: #ddd6cc; }
.studio .nav { gap: 5px; }
.studio .nav a { min-height: 43px; padding: 10px 14px; justify-content: flex-start; gap: 13px; color: #e5dfd5; font-size: 13px; border-radius: 10px; }
.studio .nav a .icon { width: 18px; height: 18px; opacity: .9; }
.studio .nav a:hover { background: rgb(255 255 255 / 9%); color: white; }
.studio .nav a.activo { background: #756858; color: white; box-shadow: 0 3px 12px rgb(0 0 0 / 9%); }
.studio .nav a:nth-child(9) { margin-top: 19px; }
.studio .sidebar-pie { border-color: rgb(70 58 41 / 17%); gap: 8px; color: #39352f; padding-top: 18px; }
.studio .sidebar-pie .avatar { background: #74614b; }
.studio .usuario-rol, .studio .salir { color: #595348; font-size: 11px; }
.studio .usuario-nombre { font-size: 12px; }
.studio .contenido { padding: 0; max-width: none; }
.studio-topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 38px; color: #fff; }
.topbar-contexto { font-size: 12px; color: #f0e7db; }
.topbar-acciones { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.studio-search { min-width: 240px; height: 37px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgb(255 255 255 / 23%); border-radius: 30px; background: rgb(37 32 26 / 63%); backdrop-filter: blur(16px); color: #fff; cursor: pointer; font: inherit; font-size: 12px; }
.studio-search .icon { width: 15px; height: 15px; }
.studio-search kbd { margin-left: auto; color: #e4ddd3; font: inherit; font-size: 10px; }
.studio-search:hover { background: rgb(37 32 26 / 82%); }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font: inherit; }
.quick-create { color: #4c443a; background: #fffdf7; }
.quick-create:hover { background: #e8dfd0; }
.topbar-avatar { width: 34px; height: 34px; background: #5a5145; outline: 2px solid rgb(255 255 255 / 40%); font-size: 11px; }
.abrir-menu, .cerrar-menu, .menu-velo { display: none; }
.studio .page-content { background: #fcfbf9; border-radius: 20px 0 0 0; padding: 34px 38px 60px; min-height: calc(100dvh - 86px); }
.studio-home .page-content { background: transparent; border-radius: 0; padding: 0; }
.studio-welcome { min-height: 266px; padding: 13px 38px 25px; display: grid; grid-template-columns: 1fr auto; column-gap: 20px; align-content: space-between; color: white; }
.welcome-copy h1 { font-size: clamp(30px, 2.7vw, 40px); line-height: 1.15; font-weight: 400; letter-spacing: -.035em; }
.welcome-copy h1 span { color: #d8c8ae; }
.welcome-copy p { font-size: 15px; color: #eee6da; margin: 11px 0 0; }
.welcome-date { display: flex; align-items: center; align-self: start; gap: 7px; font-size: 11px; padding-top: 12px; color: #fff8ec; text-shadow: 0 1px 6px #392c1b; }
.welcome-date .icon { width: 14px; height: 14px; }
.welcome-date span::first-letter { text-transform: uppercase; }
.studio-counters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; grid-column: 1 / -1; margin-top: 29px; }
.glass-stat { min-height: 120px; border-radius: 14px; background: rgb(43 39 33 / 78%); backdrop-filter: blur(18px); padding: 16px 19px 15px; color: #fff; transition: background .16s ease; }
.glass-stat:hover { background: rgb(67 59 47 / 94%); }
.stat-top { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #f0e9df; }
.stat-top > .icon { width: 14px; height: 14px; }
.stat-top .stat-arrow { margin-left: auto; width: 13px; opacity: .7; }
.glass-stat strong { display: block; font-weight: 400; font-size: 33px; letter-spacing: -.025em; line-height: 1.35; margin-top: 6px; font-variant-numeric: tabular-nums; }
.glass-stat small { display: block; font-size: 10px; color: #e3dbcf; }
.stat-warning strong { color: #ffd9a1; }
.studio-workspace { background: #fcfbf9; padding: 20px 38px 48px; border-radius: 20px 0 0 0; min-height: 60vh; }
.studio-pending { margin-bottom: 26px; }
.pending-calm { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 12px 0 17px; border-bottom: 1px solid var(--borde); font-size: 11px; }
.calm-check { display: grid; place-items: center; background: #e5eee4; color: #386346; width: 23px; height: 23px; border-radius: 50%; }
.calm-check .icon { width: 14px; height: 14px; }
.pending-calm strong { color: #426049; font-weight: 550; }
.pending-detail { color: var(--tinta-media); }
.pending-calm > .text-link { margin-left: auto; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #625b50; white-space: nowrap; }
.text-link:hover { color: #201e1a; text-decoration: underline; }
.text-link .icon { width: 14px; height: 14px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.section-heading-main { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { font-size: 21px; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.section-count { display: inline-flex; align-items: center; justify-content: center; background: #eeeae3; color: #716554; font-size: 11px; min-width: 25px; height: 25px; border-radius: 50%; font-variant-numeric: tabular-nums; }
.opportunity-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.studio-opportunity { min-width: 0; overflow: hidden; border-radius: 12px; background: white; box-shadow: 0 4px 17px rgb(57 43 24 / 5%); transition: transform .18s ease, box-shadow .18s ease; }
.studio-opportunity:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgb(57 43 24 / 12%); }
.opportunity-art { height: 105px; position: relative; display: flex; align-items: center; justify-content: center; background: #dce3df; color: #526458; }
.art-initials { font-size: 43px; line-height: 1; font-weight: 300; letter-spacing: -.04em; }
.art-arrow { position: absolute; right: 12px; top: 10px; opacity: .6; }
.art-arrow .icon { width: 15px; height: 15px; transform: rotate(-35deg); }
.artwork-2 .opportunity-art { background: #e8ddd0; color: #846a50; }
.artwork-3 .opportunity-art { background: #dddde7; color: #686379; }
.artwork-4 .opportunity-art { background: #d5dfe6; color: #506674; }
.opportunity-info { padding: 13px 14px 15px; }
.opportunity-info h3 { font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opportunity-info p { margin: 3px 0 12px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #6c675f; }
.opportunity-bottom { display: flex; align-items: center; justify-content: space-between; }
.studio-status { display: inline-block; border-radius: 20px; background: #e9e5f1; color: #685481; padding: 3px 9px; font-size: 10px; line-height: 1.5; }
.status-nuevo { background: #e0e9f5; color: #3e5b86; }
.status-propuesta, .status-negociacion { background: #f9e8cb; color: #856027; }
.status-adjudicado, .status-ganado { background: #dcefe3; color: #32674c; }
.reply-dot { color: var(--rojo); }
.reply-dot .icon { width: 15px; height: 15px; }
.overview-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; margin-top: 24px; }
.overview-panel { background: white; border-radius: 14px; padding: 22px; box-shadow: 0 4px 17px rgb(57 43 24 / 4%); min-width: 0; }
.overview-panel h2 { font-size: 15px; }
.overview-panel .text-link { font-size: 10px; }
.pipeline-summary { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.pipeline-stage { display: flex; flex-direction: column; padding: 10px 9px 0; background: #f4f3f1; border-radius: 8px; min-width: 0; overflow: hidden; }
.pipeline-stage > span { font-size: 10px; color: #625e56; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipeline-stage > strong { font-size: 20px; font-weight: 500; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pipeline-stage:hover { background: #ebe8e2; }
.pipeline-track { height: 54px; display: flex; align-items: flex-end; margin: 5px -9px 0; }
.pipeline-track > div { background: #c6d9f4; width: 100%; border-radius: 5px 5px 0 0; }
.stage-cualificando .pipeline-track > div { background: #d9c8f0; }
.stage-propuesta .pipeline-track > div, .stage-negociacion .pipeline-track > div { background: #f3d7b5; }
.stage-adjudicado .pipeline-track > div { background: #c6e5d7; }
.panel-note { font-size: 10px; color: #756d61; margin: 13px 0 0; }
.panel-note strong { font-weight: 600; }
.tasks-empty { display: flex; align-items: flex-start; flex-direction: column; padding: 6px 0; }
.tasks-empty > .icon { color: #92856f; width: 25px; height: 25px; margin-bottom: 9px; }
.tasks-empty strong { font-size: 13px; font-weight: 500; }
.tasks-empty p { font-size: 11px; line-height: 1.65; color: #736d62; max-width: 40ch; margin: 5px 0 12px; }
.studio-task-list { list-style: none; padding: 0; margin: 0; }
.studio-task-list li + li { border-top: 1px solid var(--borde); }
.studio-task-list a { display: flex; align-items: center; gap: 10px; padding: 11px 0; }
.task-indicator { color: #807563; }
.task-description { flex: 1; min-width: 0; }
.task-description strong, .task-description small { display: block; }
.task-description strong { font-size: 12px; font-weight: 550; }
.task-description small, .studio-task-list time { font-size: 10px; color: #746e63; }
.studio-task-list .task-overdue { color: var(--rojo); }
.board-heading { margin-top: 32px; }
.board-heading h2 { font-size: 20px; }
.studio .embudo { margin-top: 0; scroll-margin-top: 24px; }
.studio .embudo-cabecera { margin-bottom: 18px; }
.studio .embudo-columnas { gap: 12px; }
.studio .columna-op { flex-basis: 222px; background: #f0eee9; border: 0; }
.studio .columna-cabecera { padding: 15px 13px 12px; }
.studio .columna-cuerpo { max-height: 540px; overflow-y: auto; scrollbar-width: thin; }
.studio .tarjeta-op { box-shadow: none; border-color: #e1dcd3; border-radius: 10px; padding: 13px; }
.studio .tarjeta-op.urgente { border-left-width: 1px; border-color: #dfa89c; background: #fff9f6; }
.studio .op-nombre { font-size: 13px; }
.studio .op-meta { color: #756e61; }
.studio .op-mover select { background: #faf9f6; }
.studio .columna-vacia { padding: 22px 10px; }
.studio .pestanas { border: 0; background: #eae6df; padding: 4px; border-radius: 9px; }
.studio .pestana { border-radius: 6px; color: #6b6255; }
.studio .pestana.activa { color: #332c23; background: white; }
.studio .cabecera-seccion h1 { font-size: 30px; font-weight: 500; }
.studio .filtros { background: #f1eee8; padding: 15px; border-radius: 12px; margin-bottom: 22px; }
.studio .tabla-envoltorio { background: white; border-radius: 12px; border-color: var(--borde); box-shadow: none; }
.studio .tabla th { background: #f6f4ef; color: #756b5e; padding-top: 14px; padding-bottom: 14px; }
.studio .tabla td { padding-top: 15px; padding-bottom: 15px; }
.studio .tabla tbody tr:hover { background: #f8f6f2; }
.studio .boton-compacto, .studio .boton-secundario { min-height: 38px; }
.studio .vacio { border-style: solid; background: white; }
.studio .buscador-dialogo { border-radius: 16px; }
.studio .buscador-dialogo::backdrop { background: rgb(30 26 21 / 45%); backdrop-filter: blur(5px); }
.has-pending { background: #fff2ec; border-radius: 12px; padding: 14px; }
.pending-heading, .pending-heading > div { display: flex; align-items: center; gap: 10px; }
.pending-heading { justify-content: space-between; margin-bottom: 12px; }
.pending-heading h2 { font-size: 15px; color: #9b412e; }
.pending-heading .icon { color: #9b412e; }
.has-pending .lista-pendientes { background: white; max-height: 270px; overflow-y: auto; }
.fila-cuerpo .fila-nombre, .fila-cuerpo .fila-meta { display: block; }
.studio-empty { grid-column: 1 / -1; padding: 28px 0; }
.studio-empty p { font-size: 13px; color: var(--tinta-media); }
@media (min-width: 1600px) { .studio-workspace, .studio .page-content:not(.studio-home .page-content) { padding-left: 50px; padding-right: 50px; } .studio-welcome, .studio-topbar { padding-left: 50px; padding-right: 50px; } .opportunity-art { height: 135px; } }
@media (max-width: 1200px) {
  :root { --sidebar: 204px; }
  .studio-topbar { padding-inline: 26px; }
  .studio-welcome { padding-inline: 26px; }
  .studio-workspace, .studio .page-content { padding-inline: 26px; }
  .studio-home .page-content { padding: 0; }
  .topbar-contexto { display: none; }
  .glass-stat { padding: 14px; }
  .stat-top { font-size: 10px; }
  .stat-top > .icon:first-child { display: none; }
  .glass-stat small { font-size: 10px; line-height: 1.5; }
  .pending-detail { display: none; }
  .overview-panel { padding: 18px; }
  .overview-panel .section-heading { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 860px) {
  .studio .app { display: block; }
  .studio .sidebar { width: 260px; position: fixed; inset: 0 auto 0 0; height: 100dvh; flex-direction: column; align-items: stretch; transform: translateX(-100%); transition: transform .24s cubic-bezier(.16,1,.3,1); gap: 30px; border: 0; visibility: hidden; }
  .studio .sidebar .nav { flex-direction: column; }
  .studio .sidebar-pie { margin-left: 0; margin-top: auto; }
  .studio .sidebar-pie .usuario-datos { display: block; }
  .studio.menu-open .sidebar { transform: translateX(0); visibility: visible; }
  .studio.menu-open { overflow: hidden; }
  .menu-open .menu-velo { display: block; position: fixed; inset: 0; background: rgb(23 20 15 / 48%); z-index: 19; }
  .abrir-menu { display: inline-flex; background: rgb(40 34 27 / 65%); color: white; flex-shrink: 0; }
  .cerrar-menu { display: inline-flex; position: absolute; right: 14px; top: 29px; background: transparent; color: white; }
  .studio-topbar { height: 72px; padding-inline: 22px; }
  .studio-welcome { padding-top: 21px; min-height: 278px; }
  .studio .page-content { min-height: calc(100dvh - 72px); }
  .studio-search { min-width: 210px; }
  .studio-workspace { border-radius: 18px 18px 0 0; }
  .welcome-date { font-size: 10px; }
  .studio .nav a { min-height: 44px; }
  .studio .nav a:nth-child(9) { margin-top: 8px; }
  .studio .sidebar .marca-descriptor { display: block; }
}
@media (max-width: 600px) {
  .studio .app::before { height: 493px; background-position: 57% center; }
  .studio-topbar { height: 68px; padding-inline: 18px; }
  .topbar-acciones { gap: 12px; }
  .studio-search { min-width: 0; width: 38px; height: 38px; justify-content: center; padding: 0; }
  .studio-search > span, .studio-search kbd { display: none; }
  .studio-welcome { display: flex; flex-direction: column; padding: 21px 20px 22px; min-height: 399px; }
  .welcome-copy h1 { font-size: 34px; }
  .welcome-copy p { font-size: 13px; margin-top: 10px; }
  .welcome-date { padding-top: 0; margin-top: 12px; }
  .studio-counters { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 22px; width: 100%; }
  .glass-stat { min-height: 108px; padding: 12px 14px; }
  .glass-stat strong { font-size: 28px; }
  .glass-stat small { font-size: 9px; }
  .stat-top { font-size: 10px; }
  .stat-top .stat-arrow { display: none; }
  .studio-workspace { padding: 10px 18px 36px; }
  .pending-calm { gap: 7px; padding-bottom: 12px; }
  .pending-calm > .text-link { width: 100%; margin-left: 30px; font-size: 10px; }
  .studio-pending { margin-bottom: 22px; }
  .section-heading h2 { font-size: 21px; }
  .opportunity-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .opportunity-art { height: 90px; }
  .art-initials { font-size: 37px; }
  .opportunity-info { padding: 11px; }
  .opportunity-info h3 { font-size: 12px; }
  .opportunity-info p { font-size: 10px; }
  .overview-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 22px; }
  .overview-panel { padding: 20px 16px; }
  .overview-panel h2 { font-size: 15px; }
  .pipeline-stage { padding-inline: 7px; }
  .pipeline-track { margin-inline: -7px; }
  .pipeline-stage > span { font-size: 9px; }
  .studio .page-content { padding: 27px 18px 40px; border-radius: 18px 18px 0 0; }
  .studio-home .page-content { padding: 0; border-radius: 0; }
  .studio .cabecera-seccion { gap: 12px; flex-wrap: wrap; }
  .studio .cabecera-seccion h1 { font-size: 27px; }
  .studio .cabecera-acciones { flex-wrap: wrap; }
  .studio input, .studio select, .studio textarea { font-size: 16px; }
  .studio .op-mover select { font-size: 14px; }
  .studio .tabla-envoltorio { overflow-x: auto; }
  .studio .embudo-totales { gap: 9px; font-size: 11px; }
  .studio .embudo-cabecera { gap: 13px; }
  .pending-heading { flex-wrap: wrap; }
  .pending-heading h2 { font-size: 13px; }
  .studio-task-list time { max-width: 75px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .studio-opportunity:hover { transform: none; }
}
@media (hover: none) { .studio-opportunity:hover { transform: none; } }
/* Readability refinements, shared with the authentication entry. */
.studio .nav a { font-size: 14px; }
.stat-top { font-size: 12px; }
.glass-stat small { font-size: 11px; }
.text-link { font-size: 12px; }
.pending-calm { font-size: 12px; }
.opportunity-info h3 { font-size: 14px; }
.opportunity-info p { font-size: 12px; }
.studio-status { font-size: 11px; }
.overview-panel .text-link { font-size: 11px; }
.pipeline-stage > span { font-size: 11px; }
.panel-note { font-size: 11px; }
.tasks-empty p { font-size: 12px; }
.topbar-contexto { display: none; }
.studio-login .login-pantalla { background: linear-gradient(90deg, rgb(28 23 17 / 45%), rgb(28 23 17 / 10%)), url('/static/img/uppery-portada.webp') center / cover; min-height: 100dvh; }
.studio-login .login-caja { border: 0; background: #fcfaf6; border-radius: 16px; padding: 36px; box-shadow: 0 20px 70px rgb(0 0 0 / 20%); max-width: 400px; }
.studio-login h1 { font-size: 25px; line-height: 1.25; font-weight: 500; }
.login-intro { font-size: 13px; color: #746a5b; margin: 8px 0 27px; }
.studio-login input { font-size: 16px; }
@media(max-width:1200px) { .stat-top { font-size: 11px; } }
@media(max-width:600px) {
 .studio .app::before { background-image: linear-gradient(90deg, rgb(22 19 15 / 65%), rgb(22 19 15 / 8%)), url('/static/img/uppery-portada-movil.webp'); }
 .icon-button, .studio-search, .topbar-avatar { width: 44px; height: 44px; }
 .glass-stat small { font-size: 10px; }
 .stat-top { font-size: 11px; }
 .pipeline-stage > span { white-space: normal; overflow-wrap: anywhere; font-size: 10px; min-height: 30px; }
 .opportunity-info h3 { font-size: 13px; }
 .opportunity-info p { font-size: 11px; }
 .pending-calm > .text-link { font-size: 11px; }
 .studio-login .login-caja { padding: 28px; }
}
@font-face { font-family: 'Manrope'; src: url('/static/fonts/manrope-variable.woff2') format('woff2'), url('/static/fonts/manrope-variable.ttf') format('truetype'); font-weight: 200 800; font-style: normal; font-display: swap; }
.welcome-copy h1, .section-heading h2, .studio .cabecera-seccion h1, .studio-login h1, .art-initials { font-family: 'Manrope', 'Segoe UI', sans-serif; }
