/* ============================================================
   LOCXUE — Semillero de Investigación
   Universidad de Cundinamarca
   Página en construcción
   ============================================================ */

:root {
  /* --- Paleta oficial Locxue --- */
  --noche: #060C22;
  --navy: #0C1940;
  --navy-medio: #1A2D6B;
  --navy-claro: #2E4799;
  --azul-niebla: #E4E8F5;

  --purpura: #642EA0;
  --purpura-medio: #6B39A8;
  --lila-luminoso: #9B6FD4;
  --lila-niebla: #EDE5F8;

  --naranja-cta: #E8762A;
  --naranja-medio: #FF9B45;
  --ambar: #FFB347;

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--azul-niebla);
  background: radial-gradient(ellipse 120% 90% at 78% 8%, var(--navy-claro) 0%, var(--navy) 42%, var(--noche) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
}

/* -------------------- Campo de píxeles (motivo del logo) -------------------- */
.pixel-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.pixel {
  position: absolute;
  border-radius: 5px;
  opacity: 0;
  animation-name: pixel-in;
  animation-duration: 5.5s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

@keyframes pixel-in {
  0%   { opacity: 0;   transform: scale(0.4); }
  15%  { opacity: 0.85; transform: scale(1); }
  55%  { opacity: 0.85; transform: scale(1); }
  80%  { opacity: 0;   transform: scale(0.6); }
  100% { opacity: 0;   transform: scale(0.6); }
}

/* dispersión inspirada en el patrón del isotipo, esquina inferior izquierda */
.p1  { left: 4%;  top: 62%; width: 10px; height: 10px; background: var(--lila-luminoso); animation-delay: 0.1s; }
.p2  { left: 9%;  top: 70%; width: 22px; height: 22px; background: var(--purpura); animation-delay: 1.4s; }
.p3  { left: 7%;  top: 58%; width: 8px;  height: 8px;  background: var(--navy-claro); animation-delay: 2.6s; }
.p4  { left: 14%; top: 66%; width: 30px; height: 30px; background: var(--purpura-medio); animation-delay: 0.7s; }
.p5  { left: 12%; top: 78%; width: 14px; height: 14px; background: var(--lila-luminoso); animation-delay: 3.1s; }
.p6  { left: 19%; top: 74%; width: 26px; height: 26px; background: var(--purpura); animation-delay: 1.9s; }
.p7  { left: 17%; top: 85%; width: 10px; height: 10px; background: var(--navy-claro); animation-delay: 0.3s; }
.p8  { left: 24%; top: 80%; width: 34px; height: 34px; background: var(--purpura-medio); animation-delay: 2.2s; }
.p9  { left: 22%; top: 92%; width: 16px; height: 16px; background: var(--lila-luminoso); animation-delay: 4.0s; }
.p10 { left: 29%; top: 88%; width: 12px; height: 12px; background: var(--purpura); animation-delay: 0.9s; }
.p11 { left: 3%;  top: 82%; width: 12px; height: 12px; background: var(--navy-claro); animation-delay: 3.6s; }
.p12 { left: 31%; top: 96%; width: 20px; height: 20px; background: var(--purpura-medio); animation-delay: 1.1s; }

.pixel-field--right .p1  { left: 88%; top: 8%;  width: 9px;  height: 9px;  background: var(--purpura); animation-delay: 2.0s; }
.pixel-field--right .p2  { left: 92%; top: 14%; width: 16px; height: 16px; background: var(--lila-luminoso); animation-delay: 0.6s; }
.pixel-field--right .p3  { left: 84%; top: 18%; width: 7px;  height: 7px;  background: var(--navy-claro); animation-delay: 3.3s; }

/* -------------------- Layout general -------------------- */
.wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* -------------------- Encabezado -------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 64px) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lila-luminoso);
}

.univ-tag {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--azul-niebla);
  opacity: 0.7;
  text-align: right;
  max-width: 220px;
  display: none;
}

@media (min-width: 640px) {
  .univ-tag { display: block; }
}

/* -------------------- Hero -------------------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px clamp(20px, 8vw, 64px);
  gap: 22px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(232, 118, 42, 0.5);
  background: rgba(232, 118, 42, 0.08);
  color: var(--naranja-medio);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--naranja-cta);
  box-shadow: 0 0 0 0 rgba(232, 118, 42, 0.6);
  animation: ping 1.8s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(232, 118, 42, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(232, 118, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 118, 42, 0); }
}

.headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 15ch;
}

.headline .accent {
  background: linear-gradient(100deg, var(--purpura) 0%, var(--purpura-medio) 45%, var(--lila-luminoso) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--azul-niebla);
  max-width: 42ch;
  margin: 0;
  opacity: 0.92;
}

.divider {
  width: 46px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purpura), var(--naranja-cta));
  margin: 6px 0 2px;
}

.context-line {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--lila-luminoso);
}

.context-line strong {
  color: var(--azul-niebla);
  font-weight: 600;
}

/* -------------------- Barra de progreso decorativa -------------------- */
.progress {
  margin-top: 10px;
  width: min(280px, 70vw);
  height: 6px;
  border-radius: 999px;
  background: rgba(228, 232, 245, 0.12);
  overflow: hidden;
  position: relative;
}

.progress span {
  position: absolute;
  inset: 0;
  width: 40%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purpura), var(--naranja-cta));
  animation: slide 2.6s ease-in-out infinite;
}

@keyframes slide {
  0%   { left: -40%; }
  50%  { left: 60%; }
  100% { left: 100%; }
}

/* -------------------- Pie de página -------------------- */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(20px, 6vw, 64px) 28px;
  border-top: 1px solid rgba(228, 232, 245, 0.08);
  font-size: 0.78rem;
  color: var(--azul-niebla);
  opacity: 0.75;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--naranja-medio);
  border-color: currentColor;
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* -------------------- Accesibilidad -------------------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--naranja-medio);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pixel,
  .badge .dot,
  .progress span {
    animation: none !important;
  }
}
