#smartinstall-banner {
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 999999;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  color: #17212f;
  font-family: inherit;
  transform: translateY(120%);
  opacity: 0;
  transition: all .35s ease;
}

#smartinstall-banner.smartinstall-show {
  transform: translateY(0);
  opacity: 1;
}

.smartinstall-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.smartinstall-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
}

.smartinstall-title {
  font-size: 18px;
  font-weight: 800;
}

.smartinstall-subtitle {
  font-size: 13px;
  opacity: .75;
}

.smartinstall-text {
  font-size: 14px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.smartinstall-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.smartinstall-btn {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
}

.smartinstall-later {
  background: rgba(0,0,0,.07);
  color: #17212f;
}

.smartinstall-install {
  background: #334836;
  color: white;
}

@media (prefers-color-scheme: dark) {
  #smartinstall-banner {
    background: rgba(23,33,47,.88);
    color: white;
  }

  .smartinstall-later {
    background: rgba(255,255,255,.12);
    color: white;
  }
}
.smartinstall-ios-guide {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.smartinstall-ios-guide div {
  background: rgba(51,72,54,.08);
  border-radius: 14px;
  padding: 10px 12px;
}

.smartinstall-share {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: #334836;
  color: white;
  font-weight: 900;
  margin-left: 4px;
}

@media (prefers-color-scheme: dark) {
  .smartinstall-ios-guide div {
    background: rgba(255,255,255,.10);
  }
}

#smartinstall-debug {
  position: fixed;
  left: 12px;
  right: 12px;
  top: 12px;
  z-index: 9999999;
  background: #17212f;
  color: white;
  border-radius: 18px;
  padding: 14px;
  font-size: 13px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.sid-header {
  font-weight: 800;
  margin-bottom: 10px;
}

.sid-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sid-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.sid-actions button {
  border: 0;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
}

#smartinstall-zones {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 999998;
  font-family: inherit;
}

#smartinstall-zones-toggle {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #334836;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
}

#smartinstall-zones-panel {
  position: absolute;
  right: 0;
  bottom: 58px;
  width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  display: none;
}

#smartinstall-zones-panel.is-open {
  display: block;
}

.smartinstall-zones-title {
  font-weight: 900;
  margin-bottom: 10px;
  color: #17212f;
}

.smartinstall-zone-item {
  width: 100%;
  border: 0;
  background: transparent;
  color: #17212f;
  text-align: left;
  padding: 11px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.smartinstall-zone-item:active {
  background: rgba(51,72,54,.12);
}

@media (prefers-color-scheme: dark) {
  #smartinstall-zones-panel {
    background: rgba(23,33,47,.94);
  }

  .smartinstall-zones-title,
  .smartinstall-zone-item {
    color: #ffffff;
  }

  .smartinstall-zone-item:active {
    background: rgba(255,255,255,.12);
  }
}
#smartinstall-nav-button {

    position: fixed;

    right: 16px;

    bottom: calc(env(safe-area-inset-bottom) + 16px);

    z-index: 999999;

    min-height: 56px;

    padding: 0 20px;

    border: 1px solid rgba(255,255,255,.15);

    border-radius: 999px;

    background: #334836;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0,0,0,.20);

    transition: transform .18s ease, background-color .25s ease, box-shadow .25s ease, opacity .25s ease;
    
    touch-action: manipulation;

}

#smartinstall-nav-button:active{

    transform:scale(.96);

}

#smartinstall-nav-button.is-pressed {
  transform: scale(.94);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}


#smartinstall-nav {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
}

#smartinstall-nav-button {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999999;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  background: #334836;
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0,0,0,.25);
}

#smartinstall-splash {
  position: fixed;
  inset: 0;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #334836;
  color: #ffffff;
  font-family: inherit;
  transition: opacity .5s ease, visibility .5s ease;
}

#smartinstall-splash.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.smartinstall-splash-card {
  text-align: center;
  padding: 32px;
}

.smartinstall-splash-icon {
  font-size: 46px;
  margin-bottom: 18px;
}

.smartinstall-splash-card h1 {
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #ffffff;
}

.smartinstall-splash-card p {
  font-size: 15px;
  opacity: .86;
  margin: 0 0 24px;
}

.smartinstall-splash-logo {
  width: 130px;
  margin-bottom: 30px;
  animation: smartinstall-logo-breathe 1.8s ease-in-out infinite;
}

@keyframes smartinstall-logo-breathe {
  0%, 100% {
    transform: scale(1);
    opacity: .96;
  }

  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}

@media (min-width: 960px) {

  #smartinstall-nav-button {

    display: none !important;

  }

}

#smartmaps-sheet {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  pointer-events: none;
}

#smartmaps-sheet.is-open {
  pointer-events: auto;
}

.smartmaps-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
  opacity: 0;
  transition: opacity .25s ease;
}

#smartmaps-sheet.is-open .smartmaps-backdrop {
  opacity: 1;
}

.smartmaps-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  padding: 18px;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  color: #17212f;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  transform: translateY(120%);
  transition: transform .3s ease;
}

#smartmaps-sheet.is-open .smartmaps-panel {
  transform: translateY(0);
}

.smartmaps-handle {
  width: 42px;
  height: 5px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  margin: 0 auto 14px;
}

.smartmaps-panel h2 {
  font-size: 21px;
  margin: 0 0 8px;
}

.smartmaps-panel p {
  font-size: 14px;
  opacity: .75;
  margin: 0 0 16px;
}

.smartmaps-option {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  background: rgba(51,72,54,.08);
  color: #17212f;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  text-align: left;
}

.smartmaps-option span {
  font-size: 24px;
}

.smartmaps-option.is-selected {
  transform: scale(.97);
  background: rgba(51,72,54,.18);
}

.smartmaps-cancel {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px;
  background: #334836;
  color: white;
  font-weight: 800;
}

.smartmaps-option {
  width: 100%;
  border: 1px solid rgba(23, 33, 47, .08);
  border-radius: 20px;
  padding: 14px;
  margin-bottom: 10px;
  background: #ffffff;
  color: #17212f;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.smartmaps-option:active,
.smartmaps-option.is-selected {
  transform: scale(.97);
  background: rgba(51,72,54,.08);
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}

.smartmaps-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
  object-fit: contain;
}

.smartmaps-option-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.smartmaps-option-text strong {
  font-size: 16px;
  line-height: 1.15;
}

.smartmaps-option-text small {
  font-size: 13px;
  line-height: 1.2;
  opacity: .68;
}

.smartmaps-preferences {

  margin-top: 24px !important;

  padding: 14px 16px !important;

  border-radius: 16px;

  background: #f3eadb;

  color: #5f4b32 !important;

  font-weight: 800;

  display: flex !important;

  align-items: center;

  gap: 10px;

  border: 1px solid rgba(95, 75, 50, .18);

}

.smartmaps-preferences::after {

  content: "Preferencias";

  margin-left: auto;

  padding: 4px 8px;

  border-radius: 999px;

  background: rgba(95, 75, 50, .12);

  color: #5f4b32;

  font-size: 11px;

  font-weight: 800;

  text-transform: uppercase;

  letter-spacing: .04em;

}

.smartmaps-preferences:hover {

  background: #eadcc6;

  color: #5f4b32 !important;

  text-decoration: none;

}

.smartmaps-preferences:active {

  transform: scale(.98);

}
.smartmaps-remember {
  margin: 10px 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(51, 72, 54, .07);
  color: #334836;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
}

.smartmaps-remember-input {
  width: 18px;
  height: 18px;
  accent-color: #334836;
}

#smartwelcome-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  z-index: 999998;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}

#smartwelcome-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.smartwelcome-card {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
  background: #f3eadb;
  color: #5f4b32;
  box-shadow: 0 18px 55px rgba(0,0,0,.24);
  border: 1px solid rgba(95, 75, 50, .16);
  display: flex;
  gap: 14px;
}

.smartwelcome-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: rgba(95, 75, 50, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.smartwelcome-content h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
  color: #5f4b32;
}

.smartwelcome-content p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}

.smartwelcome-button {
  margin-top: 4px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: #334836;
  color: #ffffff;
  font-weight: 800;
}

body.smartwelcome-active:not(.smartwelcome-navigation-revealed) #smartinstall-nav-button {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

#smartorientation-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #334836;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

#smartorientation-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.smartorientation-card {
  max-width: 360px;
  text-align: center;
}

.smartorientation-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.smartorientation-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #ffffff;
}

.smartorientation-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  opacity: .9;
}

.smartmaps::before {
  content: "🧭";
  margin-right: 8px;
  font-size: 16px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

body.smartinstall-touch-device .smartinstall-desktop-landing {

  display: none !important;

}
@media (max-width: 959px) {
  .uk-navbar-toggle {
    display: none !important;
  }
}

body.smartwelcome-active {
  overflow: hidden;
  touch-action: none;
}

.sid-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.18);
}

.sid-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: .8;
}

.sid-section button {
  width: 100%;
  margin-bottom: 8px;
}

#smartinstall-home-route {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);

  height: 32px;
  min-height: 28px;
  padding: 0 12px;

  border: 1px solid rgba(51, 72, 54, .16);
  border-radius: 999px;
  background: #f3eadb;
  color: #5f4b32;

  font-size: 13px;
  line-height: 28px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.07);
  touch-action: manipulation;
  white-space: nowrap;
  z-index: 20;
}

#smartinstall-home-route:active {
  transform: translateY(-50%) scale(.96);
}

.tm-header-mobile {
  position: relative;
}

@media (min-width: 960px) {
  #smartinstall-home-route {
    display: none !important;
  }
}

@media (min-width: 960px) {
  #smartinstall-nav-button,
  #smartinstall-home-route,
  #smartmaps-selector,
  #smartwelcome-banner {
    display: none !important;
  }
}
.smartguide-info-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(51, 72, 54, .18);
  border-radius: 999px;
  background: #f3eadb;
  color: #5f4b32;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  touch-action: manipulation;
}

.smartguide-info-button:active {
  transform: scale(.96);
}

#smartguide-modal {
  position: fixed;
  inset: 0;
  z-index: 999997;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}

#smartguide-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.smartguide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.38);
}

.smartguide-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  top: calc(env(safe-area-inset-top) + 84px);
  transform: translateY(-12px);
  transition: transform .22s ease;
}

#smartguide-modal.is-visible .smartguide-sheet {
  transform: translateY(0);
}

.smartguide-close {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(95, 75, 50, .12);
  color: #5f4b32;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  cursor: pointer;
}

.smartguide-card {
  display: flex;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 18px 18px;
  border-radius: 24px;
  background: #f3eadb;
  color: #5f4b32;
  border: 1px solid rgba(95, 75, 50, .16);
  box-shadow: 0 18px 46px rgba(0,0,0,.24);
}

.smartguide-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(95, 75, 50, .12);
  font-size: 24px;
}

.smartguide-content h2 {
  margin: 0 42px 10px 0;
  color: #5f4b32;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.smartguide-content p {
  margin: 0 0 8px;
  color: #5f4b32;
  font-size: 15px;
  line-height: 1.45;
}

.smartguide-tagline {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(51, 72, 54, .12);
  color: #334836;
  font-size: 13px;
  font-weight: 900;
  display: inline-flex;
}

body.smartguide-active {
  overflow: hidden;
}

#smartinstall-header-actions {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20 !important;

  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 14px !important;
}

#smartinstall-header-actions #smartguide-info-button,
#smartinstall-header-actions #smartinstall-home-route {
  position: static !important;
  transform: none !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  height: 32px !important;
  min-height: 32px !important;
  margin: 0 !important;

  border: 1px solid rgba(51, 72, 54, .18);
  border-radius: 999px;
  background: #f3eadb;
  color: #5f4b32;

  font-size: 13px;
  line-height: 32px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  touch-action: manipulation;
  white-space: nowrap;
}

#smartinstall-header-actions #smartguide-info-button {
  width: auto !important;
  padding: 0 10px !important;
  flex: 0 0 auto !important;
}

#smartinstall-header-actions #smartinstall-home-route {
  padding: 0 12px !important;
  flex: 0 0 auto !important;
  gap: 5px !important;
}

#smartinstall-header-actions #smartguide-info-button:active,
#smartinstall-header-actions #smartinstall-home-route:active {
  transform: scale(.96) !important;
}

.smartguide-card {

  max-width: 520px;

  margin: 0 auto;

}

#smartinstall-header-actions #smartguide-info-button {
  gap: 5px !important;
}

.guest-only {
  display: none !important;
}

html.guest-mode .guest-only {
  display: revert !important;
}

.ctl-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smartfavorite-button {
  appearance: none;
  -webkit-appearance: none;
  margin: 0 0 0 auto;
  padding: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: transparent;
  -webkit-text-stroke: 1.5px #ffffff;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.smartfavorite-button:hover,
.smartfavorite-button:focus,
.smartfavorite-button:active {
  border: 0;
  background: none;
  box-shadow: none;
}

.smartfavorite-button:active {
  transform: scale(.9);
}

.smartfavorite-button.is-favorite {
  color: #b64040;
  -webkit-text-stroke: 1.5px #b64040;
}

/* Tarjeta de favoritos */

body.smartfavorites-open {
  overflow: hidden;
}

#smartfavorites-view {
  position: fixed;
  inset: 0;
  z-index: 999999999;
  visibility: hidden;
  pointer-events: none;
}

#smartfavorites-view.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.smartfavorites-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .38);
  opacity: 0;
  transition: opacity .25s ease;
}

#smartfavorites-view.is-visible .smartfavorites-backdrop {
  opacity: 1;
}

.smartfavorites-panel {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(env(safe-area-inset-bottom) + 12px);
  max-height: min(78vh, 620px);
  padding: 18px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .96);
  color: #17212f;
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
  transform: translateY(120%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#smartfavorites-view.is-visible .smartfavorites-panel {
  transform: translateY(0);
}

.smartfavorites-handle {
  flex: 0 0 auto;
  width: 42px;
  height: 5px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
}

.smartfavorites-panel h2 {
  margin: 0 0 8px;
  color: #17212f;
  font-size: 21px;
  font-weight: 700;
}

.smartfavorites-description {
  margin: 0 0 16px;
  font-size: 14px;
  opacity: .75;
}

.smartfavorites-list {
  margin: 0 0 14px;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.smartfavorites-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 47, .08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.smartfavorites-link {
  appearance: none;
  -webkit-appearance: none;
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #17212f;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}



.smartfavorites-empty {
  margin: 10px 0 20px;
  padding: 18px 14px;
  border-radius: 18px;
  background: rgba(51, 72, 54, .07);
  color: #334836;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.smartfavorites-empty[hidden] {
  display: none;
}

.smartfavorites-cancel {
  flex: 0 0 auto;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px;
  background: #334836;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.smartfavorites-cancel:active {
  transform: scale(.98);
}

/* Espacio superior al desplazarse hasta una tarjeta */
.ctl-story[id] {
  scroll-margin-top: 110px;
}

/* Contador de favoritos */

#smartfavorites-menu-item > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.smartfavorites-count {
  flex: 0 0 auto;
  min-width: 25px;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: #334836;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
}

.smartfavorites-count[hidden] {
  display: none !important;
}

/* Tarjeta de categorías */

#smartcategories-view {
  position: fixed;
  inset: 0;
  z-index: 999999998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  pointer-events: none;
}

#smartcategories-view.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.smartcategories-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 20, .55);
  opacity: 0;
  transition: opacity .25s ease;
}

#smartcategories-view.is-visible
.smartcategories-backdrop {
  opacity: 1;
}

.smartcategories-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 640px;
  max-height: 82vh;
  padding: 10px 20px 18px;
  padding-bottom: calc(
    18px + env(safe-area-inset-bottom)
  );
  border-radius: 28px 28px 0 0;
  background: #ffffff;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(110%);
  transition: transform 0.3s ease;
}

#smartcategories-view.is-visible
.smartcategories-panel {
  transform: translateY(0);
}

.smartcategories-handle {
  flex: 0 0 auto;
  width: 46px;
  height: 5px;
  margin: 0 auto 18px;
  border-radius: 999px;
  background: rgba(23, 33, 47, .18);
}

#smartcategories-title {
  flex: 0 0 auto;
  margin: 0;
  color: #17212f;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.smartcategories-description {
  flex: 0 0 auto;
  margin: 8px 0 18px;
  color: #657064;
  font-size: 15px;
  line-height: 1.4;
}

.smartcategories-list {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.smartcategories-item {
  display: flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 14px;
  border: 1px solid rgba(23, 33, 47, .08);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.smartcategories-link {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #17212f;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.smartcategories-link:active {
  color: #334836;
  transform: scale(.99);
}

.smartcategories-cancel {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 100%;
  margin-top: 10px;
  padding: 13px;
  border: 0;
  border-radius: 999px;
  background: #334836;
  color: #ffffff;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
}

.smartcategories-cancel:active {
  transform: scale(.98);
}

body.smartcategories-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .smartcategories-backdrop,
  .smartcategories-panel {
    transition: none;
  }
}

/* Ocultar el botón Zonas mientras está abierta una categoría */

body.smartcategories-open #smartinstall-nav-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
}