/*
Theme Name: Utiliti LMS
Theme URI: https://eunoconsulting.com
Author: EUNO Consulting
Author URI: https://eunoconsulting.com
Description: Plataforma LMS multi-cliente. Compatible con LearnDash, Uncanny Toolkit y TinCanny. Branding por grupo vía CSS custom properties. Sin dependencias de Elementor.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
License: Proprietary
Text Domain: utiliti-lms
*/

/* ==========================================================================
   CSS Custom Properties — sobreescritos por inc/branding.php según grupo
   ========================================================================== */
:root {
  /* Colores principales — personalizables por cliente */
  --color-primary:        #2563EB;
  --color-primary-dark:   #1D4ED8;
  --color-primary-light:  #DBEAFE;
  --color-secondary:      #7C3AED;
  --color-accent:         #F59E0B;

  /* Semánticos */
  --color-success:        #10B981;
  --color-success-light:  #D1FAE5;
  --color-warning:        #F59E0B;
  --color-warning-light:  #FEF3C7;
  --color-danger:         #EF4444;
  --color-danger-light:   #FEE2E2;
  --color-info:           #3B82F6;
  --color-info-light:     #DBEAFE;

  /* Neutros */
  --color-text:           #111827;
  --color-text-muted:     #6B7280;
  --color-text-light:     #9CA3AF;
  --color-bg:             #FFFFFF;
  --color-surface:        #FFFFFF;
  --color-surface-hover:  #F9FAFB;
  --color-border:         #E5E7EB;
  --color-border-focus:   var(--color-primary);

  /* Tipografía — personalizables por cliente */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

  /* Escala tipográfica */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;

  /* Radios */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-full: 9999px;

  /* Sombras */
  --shadow-sm:  0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md:  0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg:  0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl:  0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Layout */
  --header-height:   72px;
  --sidebar-width:   300px;
  --container-max:   1280px;
  --content-max:     860px;

  /* Transiciones */
  --transition:      150ms ease;
  --transition-slow: 300ms ease;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

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

button { cursor: pointer; }

table {
  border-collapse: collapse;
  width: 100%;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--color-bg);
  padding: 0.125em 0.375em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

pre {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  background: var(--color-text);
  color: #F9FAFB;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* Accesibilidad */
.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;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

/* Scrollbar personalizado (navegadores basados en Blink/WebKit) */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--color-border); }
::-webkit-scrollbar-thumb { background: var(--color-text-light); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

