/* =============================================
   KATÚ ADMIN — Variables & Reset
   ============================================= */

:root {
  /* Brand */
  --color-primary:       #05C3DD;
  --color-primary-dark:  #04A8BE;
  --color-primary-light: rgba(5, 195, 221, 0.15);
  --color-primary-xlight:rgba(5, 195, 221, 0.08);

  /* Dark theme — derivado del cyan Katú */
  --color-bg:            #070F1A;
  --color-surface:       #0D1B2A;
  --color-surface-2:     #112236;
  --color-surface-3:     #162C44;
  --color-border:        rgba(5, 195, 221, 0.12);
  --color-border-strong: rgba(5, 195, 221, 0.25);
  --color-text:          #E2F4F8;
  --color-text-muted:    #7BAFC7;
  --color-text-light:    #3D6E87;

  /* Semánticos */
  --color-error:         #FC6B6B;
  --color-error-light:   rgba(252, 107, 107, 0.12);
  --color-success:       #3DD68C;
  --color-success-light: rgba(61, 214, 140, 0.12);
  --color-warning:       #F6C54D;

  /* Tipografía */
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-size-xs:   0.75rem;
  --font-size-sm:   0.875rem;
  --font-size-base: 1rem;
  --font-size-lg:   1.125rem;
  --font-size-xl:   1.25rem;
  --font-size-2xl:  1.5rem;
  --font-size-3xl:  1.875rem;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Bordes */
  --radius-sm:  0.375rem;
  --radius-md:  0.5rem;
  --radius-lg:  0.75rem;
  --radius-xl:  1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-primary: 0 4px 15px rgba(5, 195, 221, 0.30);

  /* Transiciones */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   350ms ease;

  /* Z-index */
  --z-modal-backdrop: 100;
  --z-modal:          101;
  --z-toast:          200;
}

/* =============================================
   TEMA CLARO — se activa con class="theme-light" en <html>
   ============================================= */
html.theme-light {
  --color-primary:        #05C3DD;
  --color-primary-dark:   #04A8BE;
  --color-primary-light:  rgba(5, 195, 221, 0.12);
  --color-primary-xlight: rgba(5, 195, 221, 0.06);

  --color-bg:             #F0F4F7;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F5F8FA;
  --color-surface-3:      #EBF1F5;
  --color-border:         #D6E4EC;
  --color-border-strong:  #A8C8D8;
  --color-text:           #0F2233;
  --color-text-muted:     #4A6A80;
  --color-text-light:     #8AAABB;

  --color-error:          #E53E3E;
  --color-error-light:    #FFF5F5;
  --color-success:        #2F9E6A;
  --color-success-light:  #F0FFF4;
  --color-warning:        #C07A10;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.09), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 50px rgba(0,0,0,0.10), 0 8px 16px rgba(0,0,0,0.05);
  --shadow-primary: 0 4px 15px rgba(5, 195, 221, 0.25);
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-dark); }

img, svg { display: block; max-width: 100%; }

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

ul, ol { list-style: none; }

/* ---- Utilidades ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.hidden { display: none !important; }
