:root {
  --primary-color: #ffffff;    /* Títulos y textos destacados */
  --accent-color: #38bdf8;     /* Celeste / azul vibrante para acentos y enlaces */
  --accent-hover: #7dd3fc;     /* Tono para hover */
  --text-dark: #f8fafc;        /* Texto principal (blanco suave) */
  --text-light: #94a3b8;       /* Texto secundario (gris pizarra) */
  --bg-dark: #071326;          /* Azul muy oscuro para contraste */
  --bg-body: #0a192f;          /* Fondo azul principal del sitio */
  --bg-light: #112240;         /* Azul medio para tarjetas y cajas */
  --bg-white: #0a192f;         /* Adaptación retrocompatible del fondo base */
  --border-color: #1e3a63;     /* Borde azul noche */
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-body);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
}

img, video {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0;
}

/* Componentes de Botones */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 4px;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary {
  background-color: #1d70b8;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #2563eb;
  color: #ffffff;
}
.btn-secondary {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: transparent;
}
.btn-secondary:hover {
  background-color: rgba(56, 189, 248, 0.12);
  color: #ffffff;
}

/* ==========================================
   2. CABECERA Y NAVEGACIÓN RESPONSIVA
   ========================================== */
.main-header {
  background-color: #08162d;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 0;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  color: #cbd5e1;
  font-weight: 500;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--accent-color);
}

/* Menú Hamburguesa Técnico (Sin JavaScript) */
.menu-toggle, .hamburger-label {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
  }
  .hamburger-label span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #08162d;
    border-bottom: 1px solid var(--border-color);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }
  .main-nav ul {
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    align-items: center;
  }
  .menu-toggle:checked ~ .main-nav {
    height: 330px;
  }
}

/* ==========================================
   3. ESTILOS DE ELEMENTOS COMUNES Y PIE DE PÁGINA
   ========================================== */
.main-footer {
  background-color: #061120;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.main-footer a {
  color: var(--accent-color);
  text-decoration: underline;
  transition: color 0.2s ease;
}

.main-footer a:hover {
  color: #ffffff;
}

.footer-associated {
  margin-bottom: 0.75rem;
}