/**
 * ==============================================================================
 * DESIGN TOKENS OFICIALES UAO 2026 — UNIVERSIDAD AUTÓNOMA DE OCCIDENTE
 * Manual de Identidad Visual 2026 · Ecosistema de Deportes y Bienestar
 * ==============================================================================
 * Sistema estricto de variables CSS para maquetación web institucional.
 * Accesibilidad: WCAG 2.1 AAA Compliant.
 * Ergonomía táctil: Targets mínimos de 48px (Material / iOS).
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,700&display=swap');

:root {
  /* Identidad Web Oficial UAO (uao.edu.co) */
  --uao-maroon:                 #7A1521;
  --uao-maroon-dark:            #5C1019;
  --uao-maroon-deep:            #700D28;
  --uao-cream:                  #F7F2E9;
  --uao-cream-light:            #FCF5ED;
  --uao-sand:                   #EDE8DF;

  /* ============================================================================
     1. PALETA DE COLOR: DOMINANTES (60% DEL ESPACIO VISUAL)
     ============================================================================ */
  /* Rojo Principal UAO: SIEMPRE debe estar presente en cada composición */
  --uao-color-red:              #FF051E; /* Pantone 1788 C | RGB(255, 5, 30)   | CMYK(0, 100, 100, 0) */
  --uao-color-red-hover:        #E0041A;
  --uao-color-red-active:       #C40316;
  --uao-color-red-subtle:       rgba(255, 5, 30, 0.08);

  /* Crema / Arena Institucional: Aporta calidez y evita la saturación */
  --uao-color-cream:            #FBF5EC; /* Pantone 9043 C | RGB(251, 245, 236) | CMYK(2, 4, 9, 0) */
  --uao-color-cream-dark:       #F2E8D8;
  --uao-color-cream-light:      #FDFBF7;

  /* ============================================================================
     2. PALETA DE COLOR: SUBORDINADOS (35% DEL ESPACIO VISUAL)
     ============================================================================ */
  --uao-color-vinotinto:        #8A1428; /* Pantone 194 C  | RGB(138, 20, 40)   | CMYK(8, 100, 55, 37) */
  --uao-color-carmesi:          #AC0B32; /* Pantone 7425 C | RGB(172, 11, 50)   | CMYK(5, 99, 44, 22) */
  --uao-color-coral:            #FF836C; /* Pantone 2339 C | RGB(255, 131, 108) | CMYK(0, 39, 41, 4) */
  --uao-color-white:            #FFFFFF; /* RGB(255, 255, 255)                  | CMYK(0, 0, 0, 0) */

  /* Azul Institucional Tradicional (Alto Contraste y Soporte Corporativo) */
  --uao-color-navy:             #002D72; /* Pantone 287 C  | RGB(0, 45, 114)    | CMYK(100, 85, 20, 20) */
  --uao-color-navy-dark:        #001C47;
  --uao-color-navy-subtle:      rgba(0, 45, 114, 0.08);

  /* ============================================================================
     3. PALETA DE COLOR: ACENTOS ESPECÍFICOS (5% MÁXIMO DEL ESPACIO VISUAL)
     ============================================================================ */
  --uao-accent-orange:          #FF4503; /* Pantone 172 C  | RGB(255, 69, 3)    | CMYK(0, 85, 80, 0) */
  --uao-accent-amber:           #FE9800; /* Pantone 1375 C | RGB(254, 152, 0)   | CMYK(0, 52, 100, 0) */
  --uao-accent-peach:           #FFB166; /* Pantone 7410 C | RGB(255, 177, 102) | CMYK(0, 40, 58, 0) */
  --uao-accent-pink:            #FF74C4; /* Pantone 231 C  | RGB(255, 116, 196) | CMYK(0, 61, 6, 0) */
  --uao-accent-lavender:        #C4D3EE; /* Pantone 657 C  | RGB(196, 211, 238) | CMYK(15, 8, 0, 8) */
  --uao-accent-cyan:            #009AE6; /* Pantone 2925 C | RGB(0, 154, 230)   | CMYK(85, 21, 0, 0) */
  --uao-accent-teal:            #00C6A1; /* Pantone 7465 C | RGB(0, 198, 161)   | CMYK(86, 0, 53, 0) */
  --uao-accent-sage:            #E0EEE6; /* Pantone 9041 C | RGB(224, 238, 230) | CMYK(15, 0, 12, 0) */
  --uao-accent-purple:          #9B4CD7; /* Pantone 7442 C | RGB(155, 76, 215)  | CMYK(58, 87, 0, 0) */

  /* ============================================================================
     4. SUPERFICIES SEMÁNTICAS (BACKGROUNDS & SURFACES)
     ============================================================================ */
  --uao-bg-app:                 var(--uao-color-cream);
  --uao-bg-surface:             var(--uao-color-white);
  --uao-bg-surface-subtle:      var(--uao-color-cream-light);
  --uao-bg-header:              var(--uao-color-white);
  --uao-bg-footer:              var(--uao-color-navy);

  --uao-border-subtle:          rgba(138, 20, 40, 0.09);
  --uao-border-medium:          rgba(138, 20, 40, 0.18);
  --uao-border-focus:           var(--uao-color-red);

  /* ============================================================================
     5. TIPOGRAFÍA Y ESCALA MODULAR (DM SANS)
     ============================================================================ */
  --uao-font-sans:              'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --uao-font-mono:              ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Pesos Institucionales */
  --uao-font-weight-regular:    400;
  --uao-font-weight-medium:     500;
  --uao-font-weight-bold:       700;
  --uao-font-weight-extrabold:  800;

  /* Escala de Tamaños */
  --uao-text-xs:                0.75rem;    /* 12px */
  --uao-text-sm:                0.875rem;   /* 14px */
  --uao-text-base:              1.000rem;   /* 16px */
  --uao-text-md:                1.125rem;   /* 18px */
  --uao-text-lg:                1.375rem;   /* 22px */
  --uao-text-xl:                1.750rem;   /* 28px */
  --uao-text-2xl:               2.250rem;   /* 36px */
  --uao-text-display:           3.250rem;   /* 52px */

  /* Colores de Texto Accesibles (WCAG 2.1 AAA Compliant) */
  --uao-text-primary:           #1D1819; /* Tinta profunda cálida (WCAG AAA 16.19:1 sobre Crema) */
  --uao-text-title:             var(--uao-color-vinotinto); /* Títulos institucionales (8.76:1 AAA) */
  --uao-text-muted:             #564A4C; /* Secundario de lectura calibrado (7.81:1 AAA sobre Crema, 8.47:1 sobre Blanco) */
  --uao-text-inverse:           var(--uao-color-white);
  --uao-text-link:              var(--uao-color-red);
  --uao-text-link-hover:        var(--uao-color-vinotinto);

  /* ============================================================================
     6. RADIOS DE BORDE (ANATOMÍA DE LA CURVA "u" UAO)
     ============================================================================ */
  --uao-radius-xs:              4px;
  --uao-radius-sm:              8px;
  --uao-radius-u:               14px; /* Radio exacto de la curva anatómica de la 'u' */
  --uao-radius-card:            16px;
  --uao-radius-modal:           24px;
  --uao-radius-pill:            9999px;

  /* Contenedores con anclaje al borde según el manual */
  --uao-radius-tab-top:         var(--uao-radius-u) var(--uao-radius-u) 0 0;
  --uao-radius-tab-bottom:      0 0 var(--uao-radius-u) var(--uao-radius-u);
  --uao-radius-corner-topleft:  0 var(--uao-radius-u) var(--uao-radius-u) var(--uao-radius-u);
  --uao-radius-corner-topright: var(--uao-radius-u) 0 var(--uao-radius-u) var(--uao-radius-u);

  /* ============================================================================
     7. SOMBRAS INSTITUCIONALES TINTADAS (ELEVACIONES CÁLIDAS)
     ============================================================================ */
  --uao-shadow-sm:              0 2px 4px rgba(138, 20, 40, 0.04), 0 1px 2px rgba(0, 45, 114, 0.03);
  --uao-shadow-md:              0 4px 12px rgba(138, 20, 40, 0.07), 0 2px 4px rgba(0, 0, 0, 0.03);
  --uao-shadow-lg:              0 12px 28px rgba(138, 20, 40, 0.09), 0 4px 10px rgba(0, 45, 114, 0.05);
  --uao-shadow-glow-red:        0 4px 16px rgba(255, 5, 30, 0.28);
  --uao-shadow-glow-navy:       0 4px 16px rgba(0, 45, 114, 0.24);

  /* ============================================================================
     8. GRADIENTES INSTITUCIONALES SUTILES
     ============================================================================ */
  --uao-grad-primary:           linear-gradient(135deg, #FF051E 0%, #D40419 100%);
  --uao-grad-vinotinto:         linear-gradient(135deg, #8A1428 0%, #AC0B32 100%);
  --uao-grad-navy:              linear-gradient(135deg, #002D72 0%, #001A42 100%);
  --uao-grad-subtle-cream:      linear-gradient(180deg, #FFFFFF 0%, #FBF5EC 100%);
  --uao-grad-banner:            linear-gradient(135deg, rgba(138, 20, 40, 0.94) 0%, rgba(0, 45, 114, 0.94) 100%);

  /* ============================================================================
     9. ERGONOMÍA TOUCH Y MICROINTERACCIONES
     ============================================================================ */
  --uao-touch-min:              48px;
  --uao-transition-default:     0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --uao-ring-focus:             0 0 0 3px rgba(255, 5, 30, 0.35);
}

/* ==============================================================================
   CLASES SEMÁNTICAS REUTILIZABLES
   ============================================================================== */

/* Tipografías con lectura justificada a la izquierda según la norma */
.uao-h1 {
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-extrabold);
  font-size: var(--uao-text-2xl);
  line-height: 1.2;
  color: var(--uao-text-title);
  text-align: left;
}

.uao-h2 {
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-bold);
  font-size: var(--uao-text-xl);
  line-height: 1.25;
  color: var(--uao-text-title);
  text-align: left;
}

.uao-h3 {
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-bold);
  font-size: var(--uao-text-lg);
  line-height: 1.3;
  color: var(--uao-text-title);
  text-align: left;
}

.uao-body {
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-regular);
  font-size: var(--uao-text-base);
  line-height: 1.55;
  color: var(--uao-text-primary);
  text-align: left;
}

/* Botón Primario Institucional */
.uao-btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--uao-touch-min);
  padding: 0.75rem 1.75rem;
  background: var(--uao-grad-primary);
  color: var(--uao-color-white);
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-bold);
  font-size: var(--uao-text-sm);
  border-radius: var(--uao-radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--uao-shadow-glow-red);
  transition: all var(--uao-transition-default);
  text-decoration: none;
}

.uao-btn-red:hover {
  background: var(--uao-color-carmesi);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 11, 50, 0.35);
}

.uao-btn-red:active {
  transform: translateY(0);
}

.uao-btn-red:focus-visible {
  outline: none;
  box-shadow: var(--uao-ring-focus);
}

/* Botón Secundario (Fondo Arena / Borde Vinotinto) */
.uao-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--uao-touch-min);
  padding: 0.75rem 1.5rem;
  background-color: var(--uao-color-white);
  color: var(--uao-color-vinotinto);
  font-family: var(--uao-font-sans);
  font-weight: var(--uao-font-weight-bold);
  font-size: var(--uao-text-sm);
  border-radius: var(--uao-radius-pill);
  border: 1.5px solid var(--uao-border-medium);
  cursor: pointer;
  transition: all var(--uao-transition-default);
  text-decoration: none;
}

.uao-btn-outline:hover {
  background-color: var(--uao-color-cream);
  border-color: var(--uao-color-vinotinto);
  color: var(--uao-color-red);
}

/* Tarjeta Deportiva Institucional */
.uao-sport-card {
  background-color: var(--uao-bg-surface);
  border-radius: var(--uao-radius-card);
  border: 1px solid var(--uao-border-subtle);
  padding: 1.5rem;
  box-shadow: var(--uao-shadow-md);
  transition: transform var(--uao-transition-default), box-shadow var(--uao-transition-default), border-color var(--uao-transition-default);
}

.uao-sport-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--uao-shadow-lg);
  border-color: rgba(255, 5, 30, 0.25);
}

/* Contenedor oficial UAO con radio de la letra 'u' */
.uao-container-arch {
  border-radius: var(--uao-radius-u);
  background-color: var(--uao-bg-surface);
  border: 1px solid var(--uao-border-subtle);
}
