/* ============================================
   Academia Virtual Militar — Estilos personalizados
   ============================================ */

/* --- Base --- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  background: #FFFFFF;
  color: #161C28;
}

.font-display { font-family: 'Spectral', serif; }
.font-mono    { font-family: 'IBM Plex Mono', monospace; }

/* --- Utilidades --- */
.rule-dark  { border-top: 1px solid rgba(10, 25, 48, 0.10); }
.rule-light { border-top: 1px solid rgba(255, 255, 255, 0.16); }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 600;
}

.focus-ring:focus-visible {
  outline: 2px solid #A8842E;
  outline-offset: 3px;
}

/* --- Hero --- */
.hero-grid-bg {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, #A8842E 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, #A8842E 40px);
}

.hero-glow {
  background: radial-gradient(circle, rgba(168, 132, 46, 0.10) 0%, rgba(168, 132, 46, 0) 70%);
  filter: blur(2px);
}

.seal {
  position: relative;
  width: 104px;
  height: 104px;
  border-radius: 9999px;
  border: 1.5px dashed rgba(168, 132, 46, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.seal::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 9999px;
  border: 1px solid rgba(168, 132, 46, 0.35);
}

.seal-mark {
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 15px solid #A8842E;
  position: relative;
  top: -2px;
}

/* --- Tarjetas --- */
.card-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -20px rgba(10, 25, 48, 0.28);
  border-color: rgba(168, 132, 46, 0.5);
}

/* --- Imágenes / placeholders --- */
.media-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #EFF1F0;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid rgba(10, 25, 48, 0.08);
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-slot.is-empty {
  border: 1px dashed rgba(168, 132, 46, 0.55);
}

.media-slot.is-empty::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #5A6478;
  line-height: 1.4;
  white-space: pre-line;
}

/* --- Navegación móvil --- */
#mobile-menu {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* --- Animaciones --- */
.fade-in {
  animation: fadeIn 0.7s ease both;
}

.fade-in-delay {
  animation-delay: 0.15s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
