/* ================================
   Archivo / Wiki Personal
   extra.css corregido
   ================================ */


/* ================================
   Header y navegación superior
   ================================ */

.md-header,
.md-tabs {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0.38)
    ),
    url("../assets/images/portada.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.md-header {
  box-shadow: none;
}

.md-tabs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.md-tabs__link {
  font-weight: 600;
  opacity: 0.82;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  opacity: 1;
}


/* ================================
   Páginas internas normales
   ================================ */

/* IMPORTANTE:
   Nunca ocultar .md-main, .md-content ni .md-content__inner globalmente.
   Ahí vive el contenido de páginas como /viajes/mapas/.
*/

.md-main {
  display: block;
  background: var(--md-default-bg-color);
}

.md-main__inner {
  margin-top: 1.5rem;
}

.md-content {
  display: block;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

.md-content__inner {
  padding-bottom: 2rem;
}

.md-footer-meta {
  display: none;
}


/* ================================
   Portada
   ================================ */

.jw-home {
  min-height: calc(100vh - 6.4rem);
  padding: 5rem 1.2rem 5.8rem;
  color: #ffffff;
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.28),
      rgba(0, 0, 0, 0.28)
    ),
    url("../assets/images/portada.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.jw-home__inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 4rem;
  align-items: center;
}

.jw-home__content {
  max-width: 780px;
}

.jw-home__eyebrow {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.jw-home h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 6vw, 5.15rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
}

.jw-home__description {
  max-width: 680px;
  margin: 1.35rem 0 2.05rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.98rem, 1.35vw, 1.1rem);
  line-height: 1.65;
}


/* ================================
   Botones de portada
   ================================ */

.jw-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.jw-home__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.68rem 1.15rem;
  border: 0.1rem solid rgba(255, 255, 255, 0.72);
  border-radius: 0.2rem;
  color: #ffffff !important;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none !important;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.jw-home__button:hover {
  color: #1f3446 !important;
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-1px);
}

.jw-home__button--primary {
  color: #1f3446 !important;
  background: #ffffff;
  border-color: #ffffff;
}

.jw-home__button--primary:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
}


/* ================================
   Panel derecho de portada
   ================================ */

.jw-home__panel {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.9rem;
  background: rgba(12, 20, 30, 0.58);
  box-shadow:
    0 1.4rem 3.5rem rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.jw-panel__label {
  margin: 0 0 0.7rem;
  padding: 0 0.15rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.jw-panel__link {
  display: block;
  padding: 0.9rem 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.52rem;
  color: #ffffff !important;
  text-decoration: none !important;
  transition:
    background-color 150ms ease,
    transform 150ms ease;
}

.jw-panel__link:first-of-type {
  border-top: 0;
}

.jw-panel__link:hover {
  background: rgba(255, 255, 255, 0.10);
  transform: translateX(3px);
}

.jw-panel__link span {
  display: block;
  margin-bottom: 0.22rem;
  color: #ffffff;
  font-size: 0.94rem;
  font-weight: 800;
}

.jw-panel__link small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  line-height: 1.45;
}


/* ================================
   Ajustes visuales de contenido
   ================================ */

.md-typeset a {
  text-decoration-thickness: 0.08em;
}

.md-typeset h1 {
  font-weight: 700;
}


/* ================================
   Responsive
   ================================ */

@media screen and (max-width: 960px) {
  .jw-home {
    min-height: auto;
    padding: 3.4rem 1.2rem 4.5rem;
  }

  .jw-home__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .jw-home__panel {
    max-width: 100%;
    justify-self: stretch;
  }
}

@media screen and (max-width: 640px) {
  .jw-home {
    padding: 2.8rem 1rem 3.8rem;
  }

  .jw-home__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .jw-home__button {
    width: 100%;
  }
}