/* ============================================================
   DIAADIA — Design Tokens
   Filosofía: neutra, lujosa y moderna — monocromo elegante sobre
   el gris del logo; el color vive en el marco arcoíris y en los
   semánticos por tipo (problema / alegría / anhelo).
   Regla heredada: nunca depender solo del color (color + icono + texto).
   ============================================================ */

:root {
  /* --- Modo claro (default) --- */
  /* Fondo = gris de la cápsula del logo DIAADIA (#D9D9D9). */
  --bg:            #D9D9D9;
  --bg-soft:       #E6E6E6;
  --surface:       #FFFFFF;
  --border:        #BFBFBF;
  --text:          #1A1A1A;
  --text-soft:     #5A5A5A;

  /* Acción: negro neutro — sobrio y moderno */
  --c-action:      #1A1A1A;
  --c-action-ink:  #FFFFFF;

  /* Acento cálido humano (detalles puntuales) */
  --c-accent:      #E8862E;

  /* Estados semánticos */
  --c-info:        #4A4A4A;
  --c-success:     #1B873F;  /* entrada enviada / confirmada */
  --c-warning:     #B58A00;  /* en cola / precaución */
  --c-warning-fill:#FFC107;
  --c-critical:    #D32F2F;

  /* Semánticos por tipo de entrada */
  --c-problema:    #C2410C;
  --c-alegria:     #1B873F;
  --c-anhelo:      #6D5BD0;

  /* Tamaños — objetivos táctiles grandes, baja fricción */
  --tap-min:       44px;
  --radius:        10px;
  --gap:           16px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

/* --- Modo oscuro: grises neutros, no negro puro. --- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #101010;
    --bg-soft:      #1A1A1A;
    --surface:      #1C1C1C;
    --border:       #363636;
    --text:         #ECECEC;
    --text-soft:    #ABABAB;

    --c-action:     #ECECEC;
    --c-action-ink: #111111;

    --c-accent:     #F5A455;

    --c-info:       #B5B5B5;
    --c-success:    #5BD07E;
    --c-warning:    #FFD24D;
    --c-warning-fill:#8A6A00;
    --c-critical:   #FF6B6B;

    --c-problema:   #FF8A5C;
    --c-alegria:    #5BD07E;
    --c-anhelo:     #A79BF0;
  }
}

/* Override manual vía <html data-theme="dark|light"> */
[data-theme="dark"] {
  --bg:#101010; --bg-soft:#1A1A1A; --surface:#1C1C1C; --border:#363636;
  --text:#ECECEC; --text-soft:#ABABAB;
  --c-action:#ECECEC; --c-action-ink:#111111; --c-accent:#F5A455; --c-info:#B5B5B5;
  --c-success:#5BD07E; --c-warning:#FFD24D; --c-warning-fill:#8A6A00; --c-critical:#FF6B6B;
  --c-problema:#FF8A5C; --c-alegria:#5BD07E; --c-anhelo:#A79BF0;
}
[data-theme="light"] {
  --bg:#D9D9D9; --bg-soft:#E6E6E6; --surface:#FFFFFF; --border:#BFBFBF;
  --text:#1A1A1A; --text-soft:#5A5A5A;
  --c-action:#1A1A1A; --c-action-ink:#FFFFFF; --c-accent:#E8862E; --c-info:#4A4A4A;
  --c-success:#1B873F; --c-warning:#B58A00; --c-warning-fill:#FFC107; --c-critical:#D32F2F;
  --c-problema:#C2410C; --c-alegria:#1B873F; --c-anhelo:#6D5BD0;
}
