/* =====================================================
   Barra de Altacod para las demos (mismo estilo que el sitio principal)
   Clases con prefijo .adb / .adf para no chocar con los estilos de cada demo.
   ===================================================== */
.adb {
  position: relative; z-index: 60;
  height: 60px;
  background: rgba(250, 250, 252, .86);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, .08);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.adb *, .adb *::before, .adb *::after { box-sizing: border-box; }
.adb__in {
  height: 100%; width: min(1100px, 100% - 44px); margin-inline: auto;
  display: flex; align-items: center; gap: 16px;
}
.adb a { text-decoration: none; }
.adb a:focus-visible { outline: 2px solid #0071e3; outline-offset: 3px; border-radius: 8px; }
.adb__brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; flex: none;
  color: #1d1d1f; font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
}
.adb__brand svg { width: 28px; height: 25px; fill: currentColor; }
.adb__title {
  flex: 1; min-width: 0; text-align: center;
  font-size: 14px; letter-spacing: -0.016em; color: #6e6e73;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adb__title b { color: #1d1d1f; font-weight: 600; }
.adb__links { display: flex; align-items: center; gap: 8px; flex: none; }
.adb__back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px;
  color: #0066cc; font-size: 14px; letter-spacing: -0.016em;
}
.adb__back::before {
  content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 0 1.6px 1.6px;
  transform: rotate(45deg); margin-right: 2px;
}
.adb__back:hover { text-decoration: underline; }
.adb__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 9px 20px;
  border-radius: 9999px; background: #0071e3; color: #fff; font-size: 14px; letter-spacing: -0.016em;
  transition: background-color .2s, transform .12s;
}
.adb__cta:hover { background: #0077ed; }
.adb__cta:active { transform: scale(.97); }

/* Pie de las demos */
.adf {
  background: #f5f5f7; color: #6e6e73; padding: 24px 0 calc(24px + env(safe-area-inset-bottom));
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Arial, sans-serif;
  font-size: 12px; line-height: 1.4; letter-spacing: -0.01em;
}
.adf__in { width: min(1100px, 100% - 44px); margin-inline: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.adf a { color: #6e6e73; text-decoration: none; }
.adf a:hover { color: #1d1d1f; text-decoration: underline; }
.adf p { margin: 0; }

@media (max-width: 833px) {
  .adb { height: 56px; }
  .adb__in { width: calc(100% - 40px); gap: 8px; }
  .adb__brand { font-size: 21px; }
  .adb__brand svg { width: 26px; height: 23px; }
  .adb__title { display: none; }
  .adb__links { margin-left: auto; }
  .adb__back { padding: 0 6px; }
}
@media (max-width: 380px) {
  .adb__in { width: calc(100% - 32px); }
  .adb__brand { font-size: 19px; }
  .adb__cta { padding-inline: 14px; font-size: 13px; }
}
