/* ============================================================
   VN06 · DGPC OCAMPO 2026
   estilos.css — Windows XP Retro-Tech Interface
   ============================================================ */

/* ── GOOGLE FONTS ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@400;500;600;700&family=VT323&display=swap');

/* ── CSS VARIABLES ────────────────────────────────────────── */
:root {
  /* XP color palette */
  --xp-desktop:       #3a6ea5;
  --xp-taskbar:       #1f3f7a;
  --xp-titlebar-from: #0a246a;
  --xp-titlebar-to:   #a6b8d4;
  --xp-window-bg:     #d4d0c8;
  --xp-window-inner:  #ece9d8;
  --xp-border-light:  #ffffff;
  --xp-border-mid:    #c0c0c0;
  --xp-border-dark:   #808080;
  --xp-border-xdark:  #404040;
  --xp-blue-bright:   #316ac5;
  --xp-blue-mid:      #245edc;
  --xp-blue-dark:     #0a246a;
  --xp-accent:        #ffd966;
  --xp-green:         #3cba3c;
  --xp-text-dark:     #0d0d0d;
  --xp-text-mid:      #1a1a2e;
  --xp-text-light:    #ffffff;
  --xp-text-faded:    #6a6a8a;
  --xp-scanline:      rgba(0, 0, 0, 0.04);

  /* bevel shadows */
  --bevel-out: inset 1px 1px 0 var(--xp-border-light),
               inset -1px -1px 0 var(--xp-border-dark);
  --bevel-in:  inset 1px 1px 0 var(--xp-border-dark),
               inset -1px -1px 0 var(--xp-border-light);
  --bevel-window: 2px 2px 8px rgba(0,0,0,0.45),
                  inset 1px 1px 0 var(--xp-border-light),
                  inset -1px -1px 0 var(--xp-border-dark);

  /* spacing */
  --gap-xs:  4px;
  --gap-sm:  8px;
  --gap-md:  16px;
  --gap-lg:  32px;
  --gap-xl:  64px;

  /* typography */
  --font-mono:  'Share Tech Mono', 'Courier New', monospace;
  --font-ui:    'Rajdhani', 'Trebuchet MS', sans-serif;
  --font-pixel: 'VT323', monospace;
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-ui);
  background-color: var(--xp-desktop);
  color: var(--xp-text-dark);
  min-height: 100vh;
  overflow-x: hidden;

  /* XP tiled desktop texture */
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(0,0,0,0.15) 0%, transparent 60%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      var(--xp-scanline) 2px,
      var(--xp-scanline) 4px
    );
}

a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 700; line-height: 1.1; }

/* ── SCROLLBAR (XP style) ─────────────────────────────────── */
::-webkit-scrollbar { width: 16px; background: var(--xp-window-bg); }
::-webkit-scrollbar-track {
  background: var(--xp-window-bg);
  box-shadow: var(--bevel-in);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #b8b4a8, #9e9a8e);
  box-shadow: var(--bevel-out);
  border: 1px solid var(--xp-border-dark);
}
::-webkit-scrollbar-button {
  background: var(--xp-window-bg);
  height: 16px;
  box-shadow: var(--bevel-out);
}

/* ── TOPBAR (taskbar / title bar hybrid) ─────────────────── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-md);
  gap: var(--gap-md);

  background: linear-gradient(
    180deg,
    #1c5cb4 0%,
    #2065c8 40%,
    #0a3a9e 41%,
    #1150b8 100%
  );
  border-bottom: 2px solid #0a246a;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.15) inset,
    0 3px 10px rgba(0,0,0,0.5);
}

/* logo = "start button" inspired */
.topbar .logo {
  font-family: var(--font-pixel);
  font-size: 1.6rem;
  color: var(--xp-text-light);
  letter-spacing: 2px;
  padding: 3px 14px 3px 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, #4d9c30 0%, #3a8024 50%, #2d6e1a 100%);
  border: 1px solid #1a4d0a;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.4),
    inset -1px -1px 0 rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.4);
  transition: filter 0.1s, box-shadow 0.1s;
  position: relative;
}
.topbar .logo::before {
  content: '⊞';
  margin-right: 6px;
  font-size: 1.1rem;
  vertical-align: middle;
}
.topbar .logo:hover {
  filter: brightness(1.1);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.5),
    inset -1px -1px 0 rgba(0,0,0,0.2),
    0 2px 8px rgba(0,0,0,0.5);
}
.topbar .logo:active {
  box-shadow: var(--bevel-in);
  filter: brightness(0.9);
}

/* nav = taskbar buttons */
.topbar .menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.topbar .menu a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--xp-text-light);
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 2px;
  transition: background 0.12s, box-shadow 0.12s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.topbar .menu a:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.25);
}
.topbar .menu a:active {
  background: rgba(0,0,0,0.2);
  box-shadow: var(--bevel-in);
}

/* ── PORTADA (boot screen / desktop) ─────────────────────── */
.portada {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 44px;
  overflow: hidden;

  background:
    radial-gradient(ellipse 80% 60% at 50% 40%,
      rgba(49, 106, 197, 0.35) 0%,
      transparent 70%),
    linear-gradient(170deg, #0c1e45 0%, #1a3a7a 40%, #0a1530 100%);
}

/* pixel grid overlay */
.portada::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* horizontal scan lines */
.portada::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

/* ── titulo portada ── */
.titulo-portada {
  position: relative;
  z-index: 2;
  text-align: center;

  /* XP-style window panel */
  background: linear-gradient(180deg,
    rgba(10, 36, 106, 0.92) 0%,
    rgba(5, 18, 60, 0.88) 100%
  );
  border: 2px solid rgba(100, 150, 220, 0.5);
  border-radius: 4px;
  padding: var(--gap-xl) calc(var(--gap-xl) * 1.5);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 0 40px rgba(49, 106, 197, 0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);

  /* titlebar stripe at top */
  position: relative;
}

.titulo-portada::before {
  content: 'VN06.exe — DGPC Sistema 2026';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 24px;
  line-height: 24px;
  padding: 0 8px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(90deg, #0a246a 0%, #3a6ea5 60%, #0a246a 100%);
  border-bottom: 1px solid rgba(255,255,255,0.15);
  border-radius: 2px 2px 0 0;
  letter-spacing: 0.5px;
}

.titulo-portada::after {
  content: '● ● ●';
  position: absolute;
  top: 4px;
  right: 10px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 3px;
}

.titulo-portada h1 {
  font-family: var(--font-pixel);
  font-size: clamp(5rem, 15vw, 9rem);
  color: var(--xp-text-light);
  letter-spacing: 12px;
  text-shadow:
    0 0 20px rgba(49, 106, 197, 0.8),
    0 0 60px rgba(49, 106, 197, 0.4),
    2px 2px 0 rgba(0,0,0,0.6);
  margin-top: var(--gap-md);
  line-height: 1;
}

.linea-titulo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  margin-top: var(--gap-md);
}

.linea-titulo span {
  flex: 1;
  height: 1px;
  max-width: 80px;
  background: linear-gradient(90deg,
    transparent,
    rgba(100, 160, 240, 0.8),
    transparent
  );
}

.linea-titulo p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: rgba(180, 210, 255, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── progress bar (decorative, below h1) ── */
.titulo-portada h1::after {
  content: '';
  display: block;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, #316ac5, #6ab4ff, #316ac5);
  margin: 8px auto 0;
  border-radius: 2px;
  animation: progress-fill 2.4s cubic-bezier(.4,0,.2,1) 0.5s forwards;
  box-shadow: 0 0 8px rgba(100,180,255,0.6);
}

@keyframes progress-fill {
  from { width: 0; }
  to   { width: 60%; }
}

/* ── flecha bajar ── */
.flecha-bajar {
  position: absolute;
  bottom: var(--gap-xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(100, 160, 255, 0.4);
  border-radius: 2px;
  background: rgba(10, 36, 106, 0.6);
  box-shadow: 0 0 12px rgba(49,106,197,0.3), var(--bevel-out);
  transition: background 0.2s, box-shadow 0.2s;
  animation: bounce-down 1.8s ease-in-out infinite;
}

.flecha-bajar:hover {
  background: rgba(49, 106, 197, 0.5);
  box-shadow: 0 0 20px rgba(100,180,255,0.5);
}

.flecha-bajar span {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(180,220,255,0.9);
  border-bottom: 2px solid rgba(180,220,255,0.9);
  transform: rotate(45deg) translateY(-3px);
}

@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── INTEGRANTES (window panel) ──────────────────────────── */
.integrantes {
  min-height: 100vh;
  padding: calc(var(--gap-xl) + 44px) var(--gap-lg) var(--gap-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-xl);

  background:
    linear-gradient(180deg, #0a1530 0%, #1a3060 50%, #0c1e45 100%);
  position: relative;
}

/* subtle dot matrix background */
.integrantes::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(49, 106, 197, 0.15) 1px,
    transparent 1px
  );
  background-size: 24px 24px;
  pointer-events: none;
}

/* ── encabezado seccion ── */
.encabezado-seccion {
  text-align: center;
  position: relative;
  z-index: 1;
}

.encabezado-seccion p {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 5px;
  color: rgba(130, 180, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: var(--gap-sm);
}

.encabezado-seccion h2 {
  font-family: var(--font-pixel);
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  color: var(--xp-text-light);
  letter-spacing: 6px;
  text-shadow: 0 0 20px rgba(49, 106, 197, 0.5);
}

/* XP-style underline bar */
.encabezado-seccion h2::after {
  content: '';
  display: block;
  height: 2px;
  width: 100%;
  margin-top: var(--gap-sm);
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(49, 106, 197, 0.8) 20%,
    rgba(100, 180, 255, 1) 50%,
    rgba(49, 106, 197, 0.8) 80%,
    transparent 100%
  );
}

/* ── mapa equipo ── */
.mapa-equipo {
  width: 100%;
  max-width: 880px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap-md);
}

/* ── lineas decorativas ── */
.lineas-equipo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;

  background-image:
    radial-gradient(circle at 50% 50%,
      rgba(49,106,197,0.08) 30%,
      transparent 70%);
}

/* ── centro equipo (logo circular) ── */
.centro-equipo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a246a 0%, #1a4ab0 50%, #0a246a 100%);
  border: 2px solid rgba(100, 160, 255, 0.5);
  box-shadow:
    0 0 20px rgba(49, 106, 197, 0.5),
    inset 0 1px 0 rgba(255,255,255,0.15);
  margin-bottom: var(--gap-sm);
}

.centro-equipo span {
  font-family: var(--font-pixel);
  font-size: 1.2rem;
  color: var(--xp-accent);
  letter-spacing: 2px;
  line-height: 1;
}

.centro-equipo small {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(180, 210, 255, 0.7);
  letter-spacing: 1px;
}

/* ── PERSONA (XP window / file explorer item) ── */
.persona {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: 0;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: var(--xp-text-dark);
  transition: transform 0.15s, box-shadow 0.15s;

  /* XP window chrome */
  background: var(--xp-window-inner);
  border: 2px solid var(--xp-border-mid);
  box-shadow:
    2px 2px 8px rgba(0,0,0,0.5),
    inset 1px 1px 0 var(--xp-border-light),
    inset -1px -1px 0 #b0a898;

  position: relative;
}

/* titlebar per card */
.persona::before {
  content: attr(href);
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  padding: 0 6px;
  line-height: 20px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(90deg, #0a246a 0%, #3a6ea5 100%);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.persona > * {
  margin-top: 20px; /* offset for titlebar */
}

/* numero badge */
.persona .numero {
  font-family: var(--font-pixel);
  font-size: 1.4rem;
  color: var(--xp-blue-dark);
  width: 48px;
  text-align: center;
  flex-shrink: 0;
  padding: var(--gap-md) 0 var(--gap-md) var(--gap-md);
  opacity: 0.55;
}

/* avatar — iniciales as XP user icon */
.datos-persona {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--gap-md);
  padding: var(--gap-md) 0;
}

.datos-persona .iniciales {
  width: 48px;
  height: 48px;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  letter-spacing: 1px;
  color: var(--xp-text-light);
  background: linear-gradient(135deg, #1a4ab0 0%, #316ac5 50%, #1a3e9a 100%);
  border: 1px solid rgba(100,160,255,0.4);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.25),
    0 1px 4px rgba(0,0,0,0.3);
}

.datos-persona h3 {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--xp-text-mid);
  line-height: 1.3;
  letter-spacing: 0.3px;
}

/* acceso arrow */
.persona .acceso {
  font-size: 1.1rem;
  color: var(--xp-blue-mid);
  padding: var(--gap-md) var(--gap-md) var(--gap-md) 0;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.15s, transform 0.15s;
}

/* hover */
.persona:hover {
  transform: translateX(4px);
  box-shadow:
    4px 4px 14px rgba(0,0,0,0.55),
    inset 1px 1px 0 var(--xp-border-light),
    inset -1px -1px 0 #b0a898;
}

.persona:hover .acceso {
  opacity: 1;
  transform: translateX(4px);
}

.persona:hover .datos-persona .iniciales {
  background: linear-gradient(135deg, #2456cc 0%, #4880e0 50%, #2450c0 100%);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.4),
    0 2px 8px rgba(49,106,197,0.4);
}

/* active / click */
.persona:active {
  transform: translateX(2px) translateY(1px);
  box-shadow:
    1px 1px 4px rgba(0,0,0,0.4),
    var(--bevel-in);
}

/* slight hue variation per person */
.persona-1 .datos-persona .iniciales { background: linear-gradient(135deg, #1a5eb0, #2a7ad5, #1a4ea0); }
.persona-2 .datos-persona .iniciales { background: linear-gradient(135deg, #1a4ab0, #316ac5, #1a3e9a); }
.persona-3 .datos-persona .iniciales { background: linear-gradient(135deg, #1e3a9a, #2858c0, #162e84); }

/* ── FOOTER (XP taskbar) ─────────────────────────────────── */
footer {
  position: relative;
  z-index: 100;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gap-md);

  background: linear-gradient(
    180deg,
    #1c5cb4 0%,
    #2065c8 40%,
    #0a3a9e 41%,
    #1150b8 100%
  );
  border-top: 2px solid #0a246a;
  box-shadow: 0 -2px 0 rgba(255,255,255,0.1) inset;
}

footer span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: rgba(220, 235, 255, 0.8);
  text-transform: uppercase;
}

/* clock-style right badge */
footer span:last-child {
  background: rgba(0,0,0,0.25);
  padding: 2px 10px;
  border-radius: 2px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: var(--bevel-in);
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  letter-spacing: 3px;
}

/* ── LOAD ANIMATION ──────────────────────────────────────── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.titulo-portada {
  animation: fade-in-up 0.7s ease-out both;
}

.encabezado-seccion {
  animation: fade-in-up 0.5s ease-out both;
}

.persona-1 { animation: fade-in-up 0.5s ease-out 0.1s both; }
.persona-2 { animation: fade-in-up 0.5s ease-out 0.22s both; }
.persona-3 { animation: fade-in-up 0.5s ease-out 0.34s both; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .topbar {
    padding: 0 var(--gap-sm);
    gap: var(--gap-sm);
  }

  .topbar .logo {
    font-size: 1.2rem;
    padding: 3px 8px;
  }

  .topbar .menu a {
    font-size: 0.72rem;
    padding: 3px 7px;
    letter-spacing: 0;
  }

  .titulo-portada {
    padding: var(--gap-xl) var(--gap-lg);
    margin: 0 var(--gap-md);
  }

  .titulo-portada::before {
    font-size: 0.58rem;
  }

  .integrantes {
    padding: calc(var(--gap-lg) + 44px) var(--gap-md) var(--gap-xl);
    gap: var(--gap-lg);
  }

  .persona {
    max-width: 100%;
  }

  .persona::before {
    font-size: 0.55rem;
  }

  .datos-persona h3 {
    font-size: 0.92rem;
  }

  .centro-equipo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 380px) {
  .topbar .menu a:not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }
}
