/* ChatCitoSkin Día/Noche V2 — SOLO PREVIEW — capa posterior a la skin original.
   PROHIBIDO generalizar fondos de .kiwi-messagelist-modern-right o colores de todos
   los mensajes: los avisos rojos y las burbujas especiales deben conservarse. */
html[data-cc-theme="day"] {
  color-scheme: light;
  --brand-default-bg: #eeeae2;
  --brand-default-fg: #273444;
  --brand-primary: #82612f;
  --brand-primary-hover: #6c4e26;
  --brand-input-fg: #263747;
  --brand-input-bg: #faf8f3;
  --brand-input-border: #c3b8a5;
  --brand-link-normal: #155c88;
  --comp-header-bg: #f1ede5;
  --comp-header-name-fg: #263646;
  --comp-statebrowser-fg: #273746;
  --comp-statebrowser-bg: #e9e4db;
  --comp-sidebar-bg: #eae6de;
  --comp-sidebar-fg: #263746;
  --comp-usermenu-open-bg: #eee9df;
}
/* Solo las superficies principales, no las tarjetas ni los bocadillos internos. */
html[data-cc-theme="day"] .kiwi-header {
  background: linear-gradient(125deg,#faf8f2 0%,#e5ddd0 100%) !important;
  color: #283745 !important;
  border-bottom-color: rgba(151,118,68,.26) !important;
}
html[data-cc-theme="day"] .kiwi-wrap > .kiwi-statebrowser,
html[data-cc-theme="day"] .kiwi-wrap > .kiwi-statebrowser.cc-menu-nativo {
  background: linear-gradient(165deg,#eeebe4 0%,#ded8ce 100%) !important;
  color: #2c3a46 !important;
}
html[data-cc-theme="day"] .kiwi-nicklist,
html[data-cc-theme="day"] .kiwi-sidebar {
  background: linear-gradient(175deg,#f2eee6,#e8e2d9) !important;
  color: #2c3a46 !important;
}
html[data-cc-theme="day"] .kiwi-statebrowser a,
html[data-cc-theme="day"] .kiwi-statebrowser button:not(#cc-boton-tema),
html[data-cc-theme="day"] .kiwi-header-name {
  color: #263a4c !important;
}
/* El fondo solo cambia en el widget existente; NO se crean placas blancas. */
html[data-cc-theme="day"] .kiwi-container-content #kiwi-bg-widget {
  background-color: #f0ece5 !important;
  background-image: linear-gradient(rgba(250,248,242,.12),rgba(250,248,242,.12)),
    url('/webchat/static/chatcito2026/fondochat-dia-v2.svg') !important;
  background-size: auto, cover !important;
  background-position: center, center !important;
  background-repeat: no-repeat !important;
  filter: none !important;
  opacity: 1 !important;
}
/* Barra de escribir, sin colorear los contenedores de mensajes. */
html[data-cc-theme="day"] .kiwi-messageinput,
html[data-cc-theme="day"] .kiwi-controlinput,
html[data-cc-theme="day"] .kiwi-input {
  color: #283746 !important;
  border-color: #c7bba8 !important;
}
html[data-cc-theme="day"] .kiwi-messageinput textarea,
html[data-cc-theme="day"] .kiwi-messageinput input,
html[data-cc-theme="day"] .kiwi-input textarea,
html[data-cc-theme="day"] .kiwi-input input {
  color: #243645 !important;
  background-color: #f8f5ef !important;
  caret-color: #243645 !important;
}
html[data-cc-theme="day"] .kiwi-messageinput textarea::placeholder,
html[data-cc-theme="day"] .kiwi-messageinput input::placeholder,
html[data-cc-theme="day"] .kiwi-input textarea::placeholder,
html[data-cc-theme="day"] .kiwi-input input::placeholder {
  color: #667581 !important;
}
/* Texto de 'está escribiendo': selector reducido para no alterar otros widgets. */
html[data-cc-theme="day"] .kiwi-messageinput-typing,
html[data-cc-theme="day"] .kiwi-typing-indicator,
html[data-cc-theme="day"] .kiwi-messagelist-typing,
html[data-cc-theme="day"] .cc-escribiendo,
html[data-cc-theme="day"] .cc-typing,
html[data-cc-theme="day"] [class*="escribiendo"],
html[data-cc-theme="day"] [class*="typing-indicator"] {
  color: #344b60 !important;
  text-shadow: 0 1px 1px rgba(255,255,255,.5);
}
/* Botón VISIBLE en ambas skins y siempre dentro del menú actual. */
html #cc-menu-botones #cc-boton-tema.cc-menu-button {
  display: inline-flex !important;
  flex: 0 0 38px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  border: 1px solid #bda36b !important;
  background: #172332 !important;
  color: #ffe0a6 !important;
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.11),0 1px 6px rgba(0,0,0,.18) !important;
  cursor: pointer !important;
}
html[data-cc-theme="day"] #cc-menu-botones #cc-boton-tema.cc-menu-button {
  background: #e9d5b1 !important;
  color: #35291c !important;
  border-color: #a98a52 !important;
  box-shadow: inset 0 1px rgba(255,255,255,.65),0 1px 6px rgba(87,67,34,.14) !important;
}
html #cc-menu-botones #cc-boton-tema.cc-menu-button:hover,
html #cc-menu-botones #cc-boton-tema.cc-menu-button:focus-visible {
  outline: 2px solid #c69c55 !important;
  outline-offset: 1px !important;
}
html #cc-menu-botones #cc-boton-tema .cc-tema-emoji {
  display: inline-block !important;
  font: normal 20px/1 system-ui,'Segoe UI Emoji',sans-serif !important;
  color: inherit !important;
  opacity: 1 !important;
  visibility: visible !important;
  -webkit-text-fill-color: currentColor !important;
}
@media (max-width: 480px) {
  html #cc-menu-botones #cc-boton-tema.cc-menu-button {
    width: 34px !important; height: 34px !important;
    min-width: 34px !important; min-height: 34px !important; flex-basis: 34px !important;
  }
}
