/* ── Variables paleta FILAH 37 ── */
.sitemap-section-87 {
  --azul: #284d98;
  --azul-dark: #1c3a73;
  --azul-light: #eaf0fc;
  --verde: #dfd97c;
  --verde-light: #f3f0ce;
  --rojo: #d23930;
  --cafe: #5c3e35;
}

/* ════════════ ANIMACIONES ════════════ */
@keyframes fadeUpSitemap {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lineGrowSitemap {
  from {
    width: 0;
    opacity: 0;
  }

  to {
    width: 80px;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .sitemap-header-87 {
    animation: fadeUpSitemap 0.7s ease-out both;
  }

  .linea-decorativa-87 {
    animation: lineGrowSitemap 0.8s ease-out 0.3s both;
  }

  .card-sitemap-87 {
    animation: fadeUpSitemap 0.6s ease-out both;
  }

  .col-sitemap-87:nth-child(1) .card-sitemap-87:nth-child(1) {
    animation-delay: 0.15s;
  }

  .col-sitemap-87:nth-child(1) .card-sitemap-87:nth-child(2) {
    animation-delay: 0.25s;
  }

  .col-sitemap-87:nth-child(2) .card-sitemap-87:nth-child(1) {
    animation-delay: 0.2s;
  }

  .col-sitemap-87:nth-child(3) .card-sitemap-87:nth-child(1) {
    animation-delay: 0.3s;
  }

  .col-sitemap-87:nth-child(3) .card-sitemap-87:nth-child(2) {
    animation-delay: 0.4s;
  }
}

/* Estructura para respetar el Sidebar */
.page-layout {
  display: flex;
  width: 100%;
}

.main-content-87 {
  flex-grow: 1;
  min-width: 0;
}

.sitemap-section-87 {
  padding: 5px 20px;
  font-family: "Noto Sans", sans-serif;
}

/* Aplicar Noto Sans a todo dentro de la sección */
.sitemap-section-87,
.sitemap-section-87 * {
  font-family: "Noto Sans", sans-serif;
}

.container-sitemap-87 {
  max-width: 1200px;
  margin: 0 auto;
}

/* ══ HEADER ══ */
.sitemap-header-87 {
  text-align: center;
  margin-bottom: 50px;
}

.pre-titulo-87 {
  display: block;
  color: var(--rojo);
  letter-spacing: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 15px;
  /* SIN text-transform → respeta capitalización original */
}

.titulo-seccion-87 {
  color: var(--azul);
  text-align: center;
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  /* SIN text-transform → "Mapa del Sitio" tal cual */
}

.linea-decorativa-87 {
  width: 80px;
  height: 4px;
  background: var(--verde);
  margin: 20px auto 15px;
  border-radius: 2px;
}

.intro-sitemap-87 {
  text-align: center;
  color: var(--cafe);
  font-size: 1.05rem;
  margin: 0;
  font-weight: 300;
}

/* ══ GRID Y CARDS ══ */
.grid-sitemap-87 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.card-sitemap-87 {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border-left: 4px solid var(--azul);
  box-shadow: 0 2px 12px rgba(92, 62, 53, 0.08);
  margin-bottom: 25px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.card-sitemap-87:hover {
  transform: translateY(-4px);
  border-left-color: var(--rojo);
  box-shadow: 0 8px 22px rgba(40, 77, 152, 0.15);
}

.card-sitemap-87 h3 {
  color: var(--cafe);
  font-size: 1.15rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--verde-light);
  padding-bottom: 10px;
  font-weight: 700;
  /* SIN text-transform → "Institucional" tal cual */
}

.card-sitemap-87 h3 i {
  color: var(--azul);
  font-size: 1rem;
  transition: color 0.3s ease;
}

.card-sitemap-87:hover h3 i {
  color: var(--rojo);
}

/* Listas y Enlaces */
.card-sitemap-87 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-sitemap-87 li {
  margin-bottom: 10px;
  padding-left: 18px;
  position: relative;
}

.card-sitemap-87 li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--verde);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.card-sitemap-87 li:hover::before {
  color: var(--rojo);
  transform: scale(1.3);
}

.card-sitemap-87 a {
  text-decoration: none;
  color: var(--cafe);
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.card-sitemap-87 a:hover {
  color: var(--azul);
  padding-left: 4px;
}

/* Submenús internos */
.parent-link-87 {
  margin-top: 15px;
  color: var(--cafe);
}

.parent-link-87 strong {
  color: var(--azul);
  font-weight: 600;
}

.parent-link-87 ul {
  margin-top: 8px;
  margin-left: 10px;
  border-left: 2px solid var(--verde);
  padding-left: 12px;
}

.parent-link-87 ul li::before {
  content: "›";
  color: var(--azul);
}

/* Redes Sociales */
.social-links-grid-87 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.social-links-grid-87 a {
  width: 38px;
  height: 38px;
  background: var(--verde-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--azul);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.social-links-grid-87 a:hover {
  background: var(--azul);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(40, 77, 152, 0.3);
}

/* Ajustes para 4K */
@media (min-width: 1800px) {
  .container-sitemap-87 {
    max-width: 1500px;
  }

  .grid-sitemap-87 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Ajustes para Móvil */
@media (max-width: 768px) {
  .page-layout {
    flex-direction: column;
  }

  .titulo-seccion-87 {
    font-size: 1.8rem;
  }
}
