/* Tema claro de la demo pública. Solo lo enlaza el modo público (publico.py); la sala sigue con panel.css a secas.
   Colores, radio y sombras copiados de proxera.es: las variables hsl() son las de su :root y los rgb() de aviso,
   hecho y error son las clases amber, emerald y red de su CSS. Tipografía igual que la web: Poppins 600 y 700 para
   los títulos (sus mismos woff2, servidos desde aquí) y la pila «Inter, system-ui» para el resto. Nada de terceros. */

@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("poppins-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url("poppins-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("poppins-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: Poppins; font-weight: 700; font-display: swap; src: url("poppins-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  color-scheme: light;
  --fondo: hsl(210 40% 98%);              /* --background */
  --fondo-2: hsl(210 50% 96%);            /* --secondary */
  --superficie: hsl(0 0% 100%);           /* --card */
  --superficie-2: hsl(210 30% 94%);       /* --muted */
  --borde: hsl(214 32% 91%);              /* --border */
  --borde-fuerte: hsl(214 32% 82%);       /* el tono de --border, más oscuro */
  --borde-control: hsl(214 20% 52%);      /* ídem, a 3:1 para campos e interruptores */
  --texto: hsl(215 50% 15%);              /* --foreground */
  --tenue: hsl(215 20% 38%);              /* --muted-foreground */
  --acento: hsl(215 66% 33%);             /* --primary */
  --acento-2: hsl(215 66% 50%);           /* --primary-light */
  --acento-texto: hsl(0 0% 100%);
  --trabajando: hsl(215 66% 33%);
  --aprobacion: rgb(146 64 14);           /* amber-800 */
  --hecho: rgb(4 120 87);                 /* emerald-700 */
  --pausa: hsl(215 20% 38%);
  --mal: rgb(185 28 28);                  /* red-700 */
  --radio: .75rem;                        /* --radius */
  --sombra: 0 8px 30px -8px hsl(215 66% 33% / .12);         /* --shadow-card */
  --sombra-suave: 0 4px 20px -4px hsl(215 66% 33% / .15);   /* --shadow-soft */
}

body.panel { background: var(--fondo); font-family: Inter, system-ui, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.panel h1, .panel h2, .panel h3, .marca-texto strong, .chat-cabecera strong { font-family: Poppins, system-ui, sans-serif; letter-spacing: -.025em; }
/* escalones de la web: título de sección 30/36 (24/32 en el móvil) y título de tarjeta 18/26 */
.contadores-titulo h1 { font-size: 30px; line-height: 36px; letter-spacing: -.025em; }
.tarjeta h3 { font-size: 18px; line-height: 26px; }

/* aviso de la demo: la barra azul de anuncios de la web */
.aviso { background: var(--acento); color: var(--acento-texto); border-bottom: 0; min-height: 40px; font-size: 14px; line-height: 20px; font-weight: 500; }
.aviso strong { color: var(--acento-texto); }
.aviso-punto { background: var(--acento-texto); }

/* cabecera: la primera fila es la de la web (components/landing/Header.tsx); debajo, los controles de la demo */
.cabecera { flex-wrap: wrap; gap: 0 12px; padding: 0 16px; background: hsl(0 0% 100% / .95); box-shadow: var(--sombra-suave); }
.cabecera .enlaces:not([hidden]), .cabecera .cabecera-der { display: contents; }
.logo-web { order: 1; display: flex; align-items: center; gap: 8px; min-height: 76px; text-decoration: none; }
.logo-web span { font-size: 24px; line-height: 32px; font-weight: 900; letter-spacing: -.025em; color: #1e3a5f; }
.logo-web small { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--tenue); }
.cabecera #lnk-volver { order: 2; margin-left: auto; }
.cabecera #lnk-precios { order: 3; margin-left: 12px; }
.cabecera .idiomas { order: 4; margin-left: 12px; }
.cabecera .enlaces .lnk-contacto { order: 5; margin-left: auto; }
.cabecera::after { content: ""; order: 10; flex-basis: calc(100% + 32px); height: 1px; margin: 0 -16px; background: var(--borde); }
.cabecera .marca { order: 11; padding: 10px 0; }
.cabecera .sectores { order: 12; margin-left: auto; }
.cabecera .motor { order: 13; }
.cabecera #btn-reiniciar { order: 14; }
.enlaces a:not(.boton) { color: hsl(215 50% 15% / .8); font-size: 14px; line-height: 20px; font-weight: 500; text-decoration: none; white-space: nowrap; border-radius: .625rem; }
.enlaces a:not(.boton):hover { color: var(--acento); }
.cabecera .lnk-contacto { min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; font-size: 12px; font-weight: 500; }
.sectores { background: var(--superficie); border-color: var(--borde-fuerte); }
.sectores button[aria-checked="true"], .idiomas a[aria-current="true"] { background: var(--acento); color: var(--acento-texto); box-shadow: none; }
.idiomas { gap: 0; border: 1px solid var(--borde); border-radius: 999px; overflow: hidden; }
.idiomas a { min-height: 24px; padding: 0 10px; border-radius: 0; font-size: 12px; line-height: 16px; font-weight: 600; }
.xera-cara { box-shadow: 0 0 0 1px var(--borde-fuerte), var(--sombra-suave); }

/* botones: rounded-xl, 14px seminegrita y sombra suave (components/ui/button.tsx) */
.boton { border-radius: var(--radio); font-size: 14px; font-weight: 600; box-shadow: var(--sombra-suave); }
.boton.chico { font-size: 12.5px; }
.boton:hover:not(:disabled) { filter: none; background: hsl(215 66% 33% / .9); box-shadow: var(--sombra); }
.boton.fantasma { background: var(--superficie); color: var(--acento); border-color: var(--borde-fuerte); box-shadow: none; }
.boton.fantasma:hover:not(:disabled) { background: var(--fondo-2); border-color: var(--acento); }
.boton.ok { background: var(--hecho); color: var(--acento-texto); }
.boton.ok:hover:not(:disabled) { background: rgb(6 95 70); }
.boton.peligro { background: var(--superficie); color: var(--mal); border-color: rgb(254 202 202); box-shadow: none; }
.boton.peligro:hover:not(:disabled) { background: rgb(254 242 242); border-color: var(--mal); }

@keyframes salta { 0% { transform: translateY(0); } 40% { transform: translateY(-3px); color: var(--acento-2); } 100% { transform: none; } }

/* tarjetas como las de la web: blancas, radio de 16 px, borde --border y sombra suave */
.tarjeta { background: var(--superficie); box-shadow: var(--sombra-suave); }
.tarjeta, .chat, .feed, .modal { border-radius: 16px; }
.kpi { border-radius: var(--radio); box-shadow: var(--sombra-suave); }
.tarjeta.foco { box-shadow: 0 0 0 1px var(--acento), 0 0 40px hsl(215 66% 60% / .25); }  /* --shadow-glow */
.tarjeta.e-trabajando { border-color: hsl(215 66% 50% / .7); }
.tarjeta.e-aprobacion { border-color: rgb(217 119 6 / .7); }
.tarjeta.e-hecho { border-color: rgb(4 120 87 / .45); }
.tarjeta.foco { border-color: var(--acento); }
/* en pausa se distingue por el fondo y el trazo, sin bajar la opacidad: con ella el texto no llegaba a 4,5:1 */
.tarjeta.pausada { opacity: 1; background: var(--superficie-2); border-style: dashed; border-color: var(--borde-control); box-shadow: none; }
.necesita { opacity: 1; }
.icono { background: var(--fondo-2); }
.e-aprobacion .icono { background: rgb(255 251 235); }
.e-hecho .icono { background: rgb(236 253 245); }
.pastilla.trabajando { border-color: hsl(215 66% 50% / .5); background: var(--fondo-2); }
.pastilla.aprobacion { border-color: rgb(253 230 138); background: rgb(255 251 235); }
.pastilla.hecho { border-color: rgb(167 243 208); background: rgb(236 253 245); }
.flujo li::before { border-color: var(--borde-control); }
.flujo li.hecho::before { border-color: var(--hecho); }
.barra { background: var(--superficie-2); }
.interruptor .riel { background: var(--borde-control); }
.vivo { box-shadow: 0 0 0 0 rgb(4 120 87 / .5); }

.feed .t-envio { background: rgb(236 253 245); }
@keyframes entra { from { opacity: 0; transform: translateY(-4px); background: var(--fondo-2); } }

.burbuja.yo { background: linear-gradient(135deg, hsl(215 66% 33%), hsl(215 66% 42%)); }  /* --gradient-hero, sin bajar de 4,5:1 */
.burbuja strong { color: inherit; }
.escribir input[type="text"] { background: var(--superficie); border-color: var(--borde-control); }
.escribir input::placeholder { color: var(--tenue); }
.pie-chat a { color: var(--acento); }

.modal { box-shadow: 0 30px 80px hsl(215 50% 15% / .25); }
.modal::backdrop { background: hsl(215 50% 15% / .5); }
.sello { background: rgb(255 251 235); border-color: rgb(253 230 138); }
.sello.ok { background: rgb(236 253 245); border-color: rgb(167 243 208); }
.cita-dia { background: var(--superficie-2); }
.tarjeta-datos input:not([type="checkbox"]) { border-color: var(--borde-control); }

.error-global { background: rgb(254 242 242); color: var(--mal); border-color: rgb(254 202 202); }

/* hueco de la cabecera de dos filas */
@media (min-width: 821px) {
  .chat { top: 148px; height: calc(100vh - 210px); }
  .modal { top: 148px; max-height: calc(100vh - 168px); }
}
@media (min-width: 821px) and (max-width: 1500px) {
  .enlaces:not([hidden]) ~ .cabecera-der .motor { display: none; }
}

/* móvil: logotipo e idioma, los enlaces de la web debajo y después la demo; márgenes de 16 px como la web */
@media (max-width: 820px) {
  .aviso { padding: 10px 16px; min-height: 60px; }
  .cabecera { gap: 0 12px; padding: 0 16px; }
  .logo-web { min-height: 64px; }
  .logo-web small { display: none; }
  .cabecera .idiomas { margin-left: auto; }
  .cabecera .enlaces .lnk-contacto { display: none; }  /* en el móvil el contacto va en la cabecera del chat */
  .cabecera::before { content: ""; order: 6; flex-basis: 100%; }
  .cabecera #lnk-volver, .cabecera #lnk-precios { order: 7; margin: 0 4px 0 0; padding-bottom: 10px; }
  .cabecera .marca { flex: 1; min-width: 0; }
  .cabecera .sectores { order: 15; width: 100%; margin: 0 0 10px; }
  .disposicion { padding: 16px 16px 0; }
  .contadores-titulo h1 { font-size: 24px; line-height: 32px; }
  .chat-cabecera { gap: 8px; }
  .chat-cabecera .boton { padding-left: 10px; padding-right: 10px; }
  .chat-cabecera > div { flex-shrink: 0; }
}
