/* ============================================================================
   EUROCLIMA · base.css
   ----------------------------------------------------------------------------
   Variables CSS, reset, tipografía, utilidades básicas.
   Se carga SIEMPRE (desde layouts app.php y guest.php).
   ============================================================================ */

:root {
  /* --- Superficies ----------------------------------------------------- */
  --bg:             #F6F7F9;
  --surface:        #FFFFFF;
  --surface-alt:    #FAFBFC;
  --sidebar:        #0B1220;
  --sidebar-hover:  #141E33;
  --sidebar-text:   #94A3B8;
  --sidebar-active: #0EA5E9;

  /* --- Bordes ---------------------------------------------------------- */
  --border:         #E5E9EF;
  --border-strong:  #CBD5E1;

  /* --- Texto ----------------------------------------------------------- */
  --text:        #0B1220;
  --text-muted:  #64748B;
  --text-subtle: #94A3B8;

  /* --- Marca y estados ------------------------------------------------- */
  --primary:      #0EA5E9;
  --primary-dark: #0284C7;
  --primary-soft: #E0F2FE;
  --ok:           #10B981;
  --ok-soft:      #D1FAE5;
  --warn:         #F59E0B;
  --warn-soft:    #FEF3C7;
  --partial:      #EAB308;
  --partial-soft: #FEF9C3;
  --danger:       #EF4444;
  --danger-soft:  #FEE2E2;
  --purple:       #8B5CF6;
  --purple-soft:  #EDE9FE;

  /* --- Radios y sombras ------------------------------------------------ */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);

  /* --- Tipografía ------------------------------------------------------ */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html, body {
  height: 100%;
}

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

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

button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

input, select, textarea, button { font: inherit; }

/* --- Utilidades ------------------------------------------------------- */
.mono { font-family: var(--font-mono); }
.text-muted  { color: var(--text-muted); }
.text-subtle { color: var(--text-subtle); }
.text-danger { color: var(--danger); }
.text-ok     { color: var(--ok); }

.mt-1 { margin-top: 4px; }  .mt-2 { margin-top: 8px; }  .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }

.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }

.hidden { display: none !important; }

/* Selección de texto */
::selection { background: var(--primary-soft); color: var(--primary-dark); }

/* Scrollbar discreto */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-subtle); }
