/**
 * Estilos compartidos — ALABOAT
 * Convención imágenes: assets/images/{pagina-menu}-{orden}.webp
 * Ver assets/data/images.json
 */

body {
  font-family: "Inter", system-ui, sans-serif;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  body {
    scroll-behavior: auto;
  }
  .dropdown-menu {
    animation: none !important;
  }
}

.blob-shape {
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
}

.contact-blob {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.nav-link {
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: #9333ea;
}

.nav-link.active {
  color: #9333ea;
  border-bottom: 2px solid #9333ea;
}

.nav-link:focus-visible,
#nav-toggle:focus-visible,
.dropdown-menu a:focus-visible {
  outline: 2px solid #9333ea;
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: #1e2330;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* Puente invisible: el cursor no “pierde” el hover al bajar al submenú (evita parpadeo del dropdown). */
.dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  top: 100%;
  height: 10px;
  z-index: 45;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu {
  animation: none;
}

.post-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.08),
    0 8px 10px -6px rgba(0, 0, 0, 0.06);
}

.input-shadow {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.methodology-card {
  min-height: 400px;
}

#mobile-menu a {
  border-radius: 0.375rem;
}

#mobile-menu a:hover {
  background-color: #faf5ff;
  color: #7e22ce;
}

#main-content :where(input, textarea, button):focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
