/* ================== ARSVISIO · base.css (global) ================== */

/**
 * Variables CSS globales
 * Todos los colores y valores reutilizables del proyecto
 */
:root {
  /* Colores principales */
  --c-bg: #0a0a0a;
  --c-text: #fff;
  --c-text-muted: #cfd8dc;

  /* Colores de marca */
  --c-cyan: #00cfff;
  --c-cyan-dark: #0087b6;
  --c-deep: #005f78;

  /* Espaciado y bordes */
  --radius: 6px;
  --radius-lg: 12px;

  /* Tipografía */
  --font: Arial, sans-serif;

  /* Transiciones */
  --transition: 0.3s ease;

  /* Anchos máximos */
  --max-width: 1000px;
  --max-width-wide: 1800px;
}

/* Reset básico */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Efecto de ruido en el fondo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.01) 0 1px, transparent 1px 3px);
  opacity: 0.15;
}

/* Contenido por encima del ruido */
header, main, footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

footer {
  margin-top: auto;
}

/* Logo se define en navbar.css con animación */

/* ================== Titulares ================== */
.title-bar {
  background-color: var(--c-cyan);
  color: #000;
  text-align: center;
  font-weight: 700;
  padding: 0.8rem 0;
  margin: 1rem auto 2rem;
  border-radius: var(--radius);
  width: 90%;
  max-width: var(--max-width);
  letter-spacing: 0.5px;
  font-size: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.title-bar:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 207, 255, 0.25);
  background-color: var(--c-cyan-dark);
  color: var(--c-text);
}

/* ================== Animaciones ================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
}

/* ================== Transiciones globales ================== */
a,
button,
.card {
  transition: all var(--transition);
}

button:hover {
  filter: brightness(1.1);
}

/* ================== Footer ================== */
footer {
  background: var(--c-deep);
  text-align: center;
  padding: 1rem;
  color: var(--c-text);
  margin-top: 2rem;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

footer:hover {
  background: var(--c-cyan-dark);
}

/* ================== Breadcrumbs ================== */
.breadcrumbs {
  width: 90%;
  max-width: var(--max-width);
  margin: 0.5rem auto;
  color: var(--c-text-muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--c-cyan);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumbs a:hover {
  text-decoration: underline;
  color: var(--c-cyan-dark);
}

.breadcrumbs .sep {
  opacity: 0.75;
  margin: 0 0.35rem;
}

/* ================== Utilidades ================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
