/* App Shell Inmersivo: Navegacion Inferior Flotante con Desenfoque Progresivo */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  width: 100%;
  background-color: var(--bg-abyss);
}

.shell-skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-sm);
  z-index: var(--z-toast);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--bg-surface-elevated-2);
  color: var(--text-hero);
  border: 1px solid var(--border-focus);
  font-family: var(--font-mono);
  font-size: var(--text-size-caption);
  text-decoration: none;
}

.shell-skip-link:focus {
  left: var(--space-md);
}

.shell-session-banner {
  align-self: center;
  width: calc(100% - (var(--space-md) * 2));
  max-width: var(--content-max-width);
  margin: var(--space-md) auto 0;
  padding: var(--space-2xs) var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--text-size-caption);
  color: var(--state-info-fg);
  background-color: var(--state-info-bg);
  border: 1px solid var(--state-info-border);
  border-radius: var(--radius-none);
}

.shell-session-banner[hidden] {
  display: none;
}

/* Contenedor Principal de Vistas */
.shell-outlet {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md) calc(var(--nav-bar-height) + var(--space-3xl));
}

.shell-outlet:focus {
  outline: none;
}

/* Navegacion Inferior con Palabras Flotantes y Desenfoque Gradual (0% a 100%) */
.shell-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: var(--z-nav);
  padding-top: var(--space-xl);
  padding-bottom: var(--safe-bottom);
  pointer-events: none;
}

.shell-nav-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.shell-nav-blur {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
}

.shell-nav-blur--1 {
  top: 0;
  -webkit-backdrop-filter: blur(var(--blur-subtle));
  backdrop-filter: blur(var(--blur-subtle));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 45%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 45%,
    #000 100%
  );
}

.shell-nav-blur--2 {
  top: 25%;
  -webkit-backdrop-filter: blur(var(--blur-glass));
  backdrop-filter: blur(var(--blur-glass));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 55%,
    #000 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.65) 55%,
    #000 100%
  );
}

.shell-nav-blur--3 {
  top: 50%;
  -webkit-backdrop-filter: blur(var(--blur-submerged));
  backdrop-filter: blur(var(--blur-submerged));
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 85%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    #000 85%
  );
}

.shell-nav-list {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.shell-nav-item {
  display: flex;
  flex: 0 0 auto;
}

.shell-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: var(--space-xs) var(--space-sm);
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  font-family: var(--font-mono);
  font-size: var(--text-size-body-sm);
  font-weight: var(--font-weight-regular);
  letter-spacing: var(--tracking-wide);
  color: var(--nav-item-rest);
  transition: color var(--dur-fast) var(--ease-standard),
    opacity var(--dur-fast) var(--ease-standard);
}

.shell-nav-link:hover {
  color: var(--nav-item-active);
}

.shell-nav-link.is-active {
  color: var(--nav-item-active);
  font-weight: var(--font-weight-semibold);
}

.shell-nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: var(--space-xs);
  left: 50%;
  width: 16px;
  height: 2px;
  transform: translateX(-50%);
  background-color: var(--nav-indicator);
}

@media (min-width: 768px) {
  .shell-session-banner {
    width: calc(100% - (var(--space-xl) * 2));
    margin-top: var(--space-lg);
  }

  .shell-outlet {
    padding: var(--space-2xl) var(--space-xl) calc(var(--nav-bar-height) + var(--space-3xl));
  }

  .shell-nav-list {
    justify-content: center;
    gap: var(--space-2xl);
  }
}