/* Campus Guide · UPP — © 2026 imsale91-cmyk. Todos los derechos reservados.
   Uso, copia o redistribución sin autorización prohibidos. Ver LICENSE. */
/* ==========================================================================
   BASE
   Variables de marca, reset, tipografía, splash y utilidades.
   ========================================================================== */

:root {
  --upp-purple:       #5C2D91;
  --upp-purple-dark:  #3B1A6B;
  --upp-purple-mid:   #7B4BBF;
  --upp-purple-light: #A07DD4;
  --upp-purple-pale:  #EDE5F8;
  --upp-purple-ultra: #F7F3FD;
  --upp-gold:         #C9A227;
  --upp-gold-light:   #E5C050;
  --upp-gold-pale:    #FBF5E0;
  --upp-white:        #FFFFFF;
  --upp-oxford:       #1E1A2E;
  --upp-gray-dark:    #4A4A5A;
  --upp-gray-mid:     #7A7A90;
  --upp-gray-light:   #F2F1F8;
  --upp-gray-border:  #E2DEEE;
  --upp-success:      #1B6E3F;
  --upp-danger:       #B02A2A;
  --upp-info:         #1A5C8F;

  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-xs:    0 1px 3px rgba(92,45,145,0.08);
  --shadow-card:  0 2px 10px rgba(92,45,145,0.10), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-raised:0 6px 20px rgba(92,45,145,0.16), 0 2px 6px rgba(0,0,0,0.07);
  --shadow-modal: 0 24px 64px rgba(30,20,50,0.30);

  --nav-h: 62px;
  --header-h: 58px;
  --z-splash: 999;
  --z-modal:  9999;
  --z-nav:    2200;
  --z-header: 2100;

  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --ease-out:    cubic-bezier(0.25,0.46,0.45,0.94);

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 9999px;
}

*, *::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);
  background: var(--upp-gray-light);
  color: var(--upp-oxford);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, button, select { font-family: inherit; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; color: var(--upp-oxford); }
h1 { font-size: clamp(1.3rem, 4.5vw, 1.8rem); line-height: 1.2; }
h2 { font-size: clamp(1rem, 3vw, 1.25rem); line-height: 1.3; }
h3 { font-size: clamp(0.9rem, 2.5vw, 1.05rem); line-height: 1.4; }
p  { font-size: 0.875rem; line-height: 1.7; color: var(--upp-gray-mid); }

/* ─── SPLASH ─── */
#splash {
  position: fixed; inset: 0; z-index: var(--z-splash);
  background: linear-gradient(150deg, #2A1060 0%, var(--upp-purple) 55%, #7B4BBF 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.5rem;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
#splash.hidden { opacity: 0; transform: scale(1.03); pointer-events: none; }

.splash-crest {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.splash-wordmark { text-align: center; }
.splash-wordmark .subtitle {
  font-size: 0.72rem; color: rgba(255,255,255,0.6);
  letter-spacing: 0.22em; text-transform: uppercase; margin-top: 3px;
}
.splash-progress { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.splash-bar-wrap {
  width: 148px; height: 3px;
  background: rgba(255,255,255,0.15); border-radius: 99px; overflow: hidden;
}
.splash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--upp-gold), var(--upp-gold-light));
  border-radius: 99px; width: 0%;
  animation: barFill 2.4s var(--ease-out) forwards;
}
@keyframes barFill { 0%{width:0%} 30%{width:30%} 70%{width:75%} 100%{width:100%} }
.splash-bar-label {
  font-size: 0.68rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em; text-transform: uppercase;
}

/* ─── UTILS ─── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em;
}
.chip-purple { background: var(--upp-purple-pale); color: var(--upp-purple-dark); }
.chip-gold   { background: var(--upp-gold-pale); color: #7a5c00; }
.chip-green  { background: #e0f5ea; color: var(--upp-success); }
.chip-blue   { background: #e0edf8; color: var(--upp-info); }
