/* Tema «Hoja blanca» (octubre-2026, elegido por Gonzalo: maquetas/hoja-a.html con Nunito Sans; llevado a producción 15-nov-2026). Solo con body.tema-a (app nueva, js/lado.js).
   Papel cálido, tinta negra, calipso para lo seleccionado y lo que se aprueba. Botones que responden (se levantan y se hunden), tarjetas
   que se levantan al pasar el mouse. El modo oscuro de la app sigue con sus tonos (solo cambian letra, formas y efectos). */
body.tema-a {
  --t-tea: #00a8a9; --t-tea-tx: #007f80; --t-tea-s: rgba(0, 168, 169, 0.11); --t-tea-s2: rgba(0, 168, 169, 0.2);
  --t-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto; letter-spacing: 0;
}
@media (prefers-color-scheme: light) {
  body.tema-a {
    --bg: #fcfbf8; --superficie: #ffffff; --superficie-2: #f5f3ee; --campo: #f1efe9; --gris-pill: #f1efe9;
    --linea: #eeebe3; --linea-fuerte: #e2ddd2; --texto: #1a1a1a; --texto-2: #6b6b6b; --texto-3: #9a978f;
    --sombra: 0 1px 2px rgba(26, 26, 26, 0.04), 0 6px 18px -12px rgba(26, 26, 26, 0.16);
    --sombra-media: 0 2px 4px rgba(26, 26, 26, 0.05), 0 14px 32px -14px rgba(26, 26, 26, 0.26);
    --topbar: rgba(252, 251, 248, 0.86);
  }
}
@media (prefers-color-scheme: dark) { body.tema-a { --t-tea-tx: #3ad1d2; --t-tea-s: rgba(58, 209, 210, 0.14); } }

/* Títulos: «Cinco» liviano + «Monos» negrita */
body.tema-a h1, body.tema-a h2, body.tema-a .h1 { letter-spacing: -0.02em; }

/* Botones */
body.tema-a .btn { border-radius: 999px; font-weight: 700; transition: transform 0.14s var(--t-ease), box-shadow 0.16s var(--t-ease), background 0.16s, border-color 0.16s; }
body.tema-a .btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(26, 26, 26, 0.55); }
body.tema-a .btn:not(:disabled):active { transform: scale(0.97); box-shadow: none; }
body.tema-a .btn.secundario:not(:disabled):hover, body.tema-a .btn.suave:not(:disabled):hover { box-shadow: var(--sombra-media); border-color: var(--linea-fuerte); }
body.tema-a .btn.exito { background: var(--t-tea); }
body.tema-a .btn.exito:not(:disabled):hover { background: #009a9b; box-shadow: 0 12px 26px -12px rgba(0, 168, 169, 0.75); }
body.tema-a .btn.chico { border-radius: 999px; }
body.tema-a .btn:focus-visible, body.tema-a .chip:focus-visible, body.tema-a input:focus-visible, body.tema-a select:focus-visible, body.tema-a textarea:focus-visible {
  outline: 3px solid var(--t-tea-s2); outline-offset: 2px;
}
body.tema-a input[type=text]:focus, body.tema-a input[type=search]:focus, body.tema-a input[type=tel]:focus, body.tema-a input[type=number]:focus, body.tema-a textarea:focus, body.tema-a select:focus { border-color: var(--t-tea); }

/* Filtros y segmentados: lo elegido en calipso, con check */
body.tema-a .chip { transition: background 0.16s var(--t-ease), color 0.16s, border-color 0.16s, box-shadow 0.16s; }
body.tema-a .chip.activa { background: var(--t-tea-s); border-color: transparent; color: var(--t-tea-tx); box-shadow: inset 0 0 0 1.5px var(--t-tea); }
body.tema-a .chip.activa:not(.sem-chip)::before {
  content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: var(--t-tea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/8px no-repeat;
}
body.tema-a .chip.activa b { color: inherit; }
body.tema-a .segmentado { border-radius: 999px; }
body.tema-a .segmentado button { border-radius: 999px; transition: background 0.16s var(--t-ease), color 0.16s, box-shadow 0.16s; }
body.tema-a .segmentado button.activa { color: var(--t-tea-tx); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), inset 0 0 0 1.5px var(--t-tea); }

/* Tarjetas: se levantan al pasar el mouse (sin mover el diseño: solo sombra) */
body.tema-a .tarjeta { border-radius: 16px; transition: box-shadow 0.18s var(--t-ease), border-color 0.16s; }
body.tema-a a.tarjeta:hover, body.tema-a button.tarjeta:hover, body.tema-a .ot-tarjeta:hover { box-shadow: var(--sombra-media); border-color: var(--linea-fuerte); }
body.tema-a .pill { font-weight: 600; }

/* Barra superior */
body.tema-a .btn-entregar, body.tema-a .btn-usuario, body.tema-a .btn-campana { transition: background 0.15s var(--t-ease), box-shadow 0.15s, transform 0.12s; }
body.tema-a .btn-entregar:hover, body.tema-a .btn-campana:hover { box-shadow: var(--sombra); }
body.tema-a .topbar-titulo { color: var(--texto); font-weight: 700; }

/* Menú de la persona: desde su nombre en el menú lateral sale abajo a la izquierda; desde la inicial de la barra, bajo ella a la derecha */
body.tema-a.con-lado .menu-usuario { border-radius: 16px; }
/* el menú de Recepción (botón de la barra) sale de ahí mismo con su posición en línea: no se mueve abajo ni se le ocultan los enlaces */
@media (min-width: 900px) {
  body.tema-a.con-lado .menu-usuario.menu-desde-lado:not(.menu-recepcion) { left: 12px; right: auto; top: auto; bottom: 76px; width: 260px; max-height: calc(100vh - 100px); overflow-y: auto; }
  /* el que abre la inicial de la barra (arriba a la derecha) cae bajo ella, hacia adentro de la pantalla */
  body.tema-a.con-lado .menu-usuario:not(.menu-desde-lado):not(.menu-recepcion) { right: 24px; max-height: calc(100vh - 72px); overflow-y: auto; }
}

/* Entrada suave de cada pantalla */
body.tema-a main > * { animation: tema-entra 0.26s var(--t-ease) both; }
@keyframes tema-entra { from { opacity: 0.4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { body.tema-a main > * { animation: none; } body.tema-a .btn, body.tema-a .chip { transition: none; } }
body.tema-a.con-lado .menu-usuario { z-index: 72; }
body.tema-a.con-lado .menu-fondo { z-index: 70; }
/* con menú lateral, las pantallas ya están a la izquierda: en el menú de la persona quedan solo sus herramientas */
body.tema-a.con-lado .menu-usuario:not(.menu-recepcion) > a[href^="#"] { display: none; }

/* ---------- Piezas de producción posteriores a la maqueta (15-nov-2026) ----------
   Letra, fondo y papel ya salen de las variables del tema. Aquí solo: lo «elegido/actual» en calipso (en vez de negro), botones propios en píldora y
   el cuadro «Pasar a…» centrado con el menú lateral. Lo que es acción principal (botón negro) queda negro, como en la maqueta. */
body.tema-a .au-op.on, body.tema-a .au-chip.on, body.tema-a .s3e-op[aria-checked="true"] { background: var(--t-tea-s); color: var(--t-tea-tx); border-color: var(--t-tea); box-shadow: inset 0 0 0 1px var(--t-tea); }
body.tema-a .s3-ref-op input:checked + span, body.tema-a .s3-oc-op input:checked + span { background: var(--t-tea-s); color: var(--t-tea-tx); border-color: var(--t-tea); }
body.tema-a .s3-arr[aria-checked="true"] .s3-o { border-color: var(--t-tea); }
body.tema-a .s3-arr[aria-checked="true"], body.tema-a .s3-pc-chip[aria-pressed="true"], body.tema-a .tr-chip[aria-pressed="true"] { border-color: var(--t-tea); }
body.tema-a .tr-chip[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--t-tea); }
body.tema-a .au-check input, body.tema-a .s3-check input, body.tema-a .s3-sug-fila input { accent-color: var(--t-tea); }
body.tema-a .au-op, body.tema-a .au-chip, body.tema-a .s3-pc-chip, body.tema-a .tr-chip { border-radius: 999px; }
body.tema-a .au-op { border-radius: 14px; }
body.tema-a .au-caja { border-radius: 22px; }
/* ficha por pasos: paso actual y vendedor destacado */
body.tema-a .s3-paso.s3-actual .s3-pn { background: var(--t-tea); color: #fff; }
body.tema-a .s3-paso.s3-actual { border-color: var(--t-tea); }
body.tema-a .s3-pasos-vend:not(.sin) { background: var(--t-tea-s); color: var(--t-tea-tx); box-shadow: inset 0 0 0 1.5px var(--t-tea); }
body.tema-a .s3-pasos { border-radius: 18px; }
body.tema-a .s3-riel i.s3-ac { background: var(--t-tea); }
/* botones propios de las pantallas nuevas: píldora y misma respuesta que .btn */
body.tema-a .s3-btn, body.tema-a .s3-q-tomar { border-radius: 999px; font-weight: 700; transition: transform 0.14s var(--t-ease), box-shadow 0.16s var(--t-ease), background 0.16s; }
body.tema-a .s3-btn:not(:disabled):hover, body.tema-a .s3-q-tomar:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 22px -12px rgba(26, 26, 26, 0.55); }
body.tema-a .s3-btn:not(:disabled):active, body.tema-a .s3-q-tomar:not(:disabled):active { transform: scale(0.97); box-shadow: none; }
body.tema-a .s3-btn-sec { border-radius: 999px; }
body.tema-a .s3e-arm-btn { border-radius: 999px; }
/* Control, Asignaciones, En línea: tarjetas con las mismas esquinas que el resto */
body.tema-a .s3-kpi, body.tema-a .enl-lista { border-radius: 16px; }
body.tema-a .s3-bloque-cab h2 { letter-spacing: -0.02em; }
body.tema-a .enl-chip { font-weight: 700; }
/* barra flotante «Pasar a…» de Asignaciones: centrada en el espacio libre cuando hay menú lateral */
@media (min-width: 900px) { body.tema-a.con-lado .s3-mover { left: calc(50% + 120px); } }
