/* Footer layout and floating controls: clear hierarchy at every viewport. */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 17, 32, .97), rgba(7, 11, 23, .99));
}

.footer-top.section-wrap {
  width: min(var(--max), calc(100% - 48px));
  min-height: 0;
  padding-block: 48px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(140px, .6fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
}

.footer-about,
.footer-links,
.footer-contact {
  min-width: 0;
}

.footer-about .brand {
  display: inline-flex;
  margin-bottom: 16px;
}

.footer-about > p {
  margin: 0 0 16px;
  color: #aab4ca;
  font-size: 13px;
  line-height: 1.75;
}

.footer-location {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8f9bb3;
  font-size: 11px;
  line-height: 1.5;
}

.footer-location i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(114, 231, 220, .1);
}

.footer-links,
.footer-contact {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 11px;
}

.footer-links h2,
.footer-contact h2 {
  margin: 3px 0 5px;
  color: #f4f5ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links > a,
.footer-contact-link {
  color: #aab4ca;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  transition: color .18s ease;
}

.footer-links > a:hover,
.footer-contact-link:hover {
  color: var(--cyan);
}

.footer-contact-link {
  display: grid;
  gap: 2px;
  overflow-wrap: anywhere;
}

.footer-contact-link > span {
  color: #8290aa;
  font-size: 10px;
}

.footer-contact-link b {
  color: #e0e5f2;
  font-size: 12px;
  font-weight: 700;
}

.footer-contact-link i {
  color: #a98bff;
  font-style: normal;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  color: #c1c9dc;
  font-size: 11px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.footer-social a:hover {
  border-color: rgba(114, 231, 220, .45);
  background: rgba(114, 231, 220, .06);
  color: var(--cyan);
}

.footer-social a span {
  color: #a98bff;
}

.footer-bottom.section-wrap {
  width: min(var(--max), calc(100% - 48px));
  min-width: 0;
  min-height: 70px;
  padding-block: 16px 124px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px 28px;
  color: #8995ad;
  font-size: 10px;
}

.footer-bottom > span {
  line-height: 1.6;
}

.footer-bottom > nav {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 9px 20px;
}

.footer-bottom > nav a,
.footer-bottom .privacy-reopen {
  color: #bac4d7;
  font: inherit;
  line-height: 1.6;
  text-decoration: none;
  transition: color .18s ease;
}

.footer-bottom .privacy-reopen {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.footer-bottom > nav a:hover,
.footer-bottom .privacy-reopen:hover {
  color: var(--cyan);
}

.cart,
.help {
  right: max(16px, env(safe-area-inset-right));
  width: max-content;
  max-width: calc(100vw - 32px);
}

.cart {
  bottom: max(18px, env(safe-area-inset-bottom));
}

.help {
  bottom: max(78px, calc(env(safe-area-inset-bottom) + 60px));
}

.cart-launcher,
.help-launcher {
  min-height: 48px;
  max-width: 100%;
  padding-inline: 16px;
  gap: 9px;
  font-size: 12px;
  white-space: nowrap;
}

.cart-launcher > span,
.help-launcher span {
  font-size: 18px;
}

.cart-launcher b,
.help-launcher b {
  font-size: 11px;
}

.privacy-banner.is-visible ~ .cart {
  bottom: max(188px, calc(env(safe-area-inset-bottom) + 170px));
}

.privacy-banner.is-visible ~ .help {
  bottom: max(248px, calc(env(safe-area-inset-bottom) + 230px));
}

.privacy-banner.is-visible ~ .cart .cart-launcher,
.privacy-banner.is-visible ~ .help .help-launcher {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .footer-top.section-wrap {
    width: calc(100% - 40px);
    padding-block: 34px 28px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 22px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-links,
  .footer-contact {
    gap: 10px;
  }

  .footer-bottom.section-wrap {
    width: calc(100% - 40px);
    min-height: 0;
    padding-block: 16px 174px;
    display: grid;
    gap: 12px;
    font-size: 10px;
  }

  .footer-bottom > nav {
    justify-content: flex-start;
    gap: 9px 16px;
  }

  .cart {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .help {
    bottom: max(70px, calc(env(safe-area-inset-bottom) + 58px));
  }

  .privacy-banner.is-visible ~ .help {
    bottom: max(248px, calc(env(safe-area-inset-bottom) + 230px));
  }
}

@media (max-width: 420px) {
  .footer-top.section-wrap,
  .footer-bottom.section-wrap {
    width: calc(100% - 32px);
  }

  .footer-top.section-wrap {
    column-gap: 14px;
  }

  .footer-social {
    gap: 6px;
  }

  .footer-social a {
    min-height: 30px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .cart-launcher,
  .help-launcher {
    min-height: 46px;
    padding-inline: 13px;
    font-size: 11px;
  }

}

/* Responsive reading and card behavior for the main content. */
.apps-grid {
  align-items: stretch;
}

.app-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.app-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.app-info > p:not(.concept-note) {
  flex: 1;
}

.app-actions {
  flex-wrap: wrap;
  margin-top: auto;
}

@media (max-width: 700px) {
  /* Keep intended line breaks: hiding <br> had joined “Computadoras” and “en”. */
  .solution-card h3 br {
    display: inline;
  }

  .solution-card h3 {
    font-size: 21px;
    line-height: 1.25;
  }

  .solution-card > p {
    font-size: 12px;
    line-height: 1.65;
  }

  .solution-card ul {
    display: grid;
    gap: 7px;
    margin-bottom: 12px;
    font-size: 11px;
    line-height: 1.5;
  }

  .solution-card .card-link {
    min-height: 46px;
    font-size: 12px;
  }

  .solution-card button.card-link span {
    min-width: 46px;
    height: 46px;
  }

  .solution-card .remote-link {
    font-size: 11px;
  }

  #soluciones.section-space {
    padding-bottom: 108px;
  }

  .apps-grid {
    align-items: start;
    grid-auto-columns: 100%;
    gap: 14px;
    padding-bottom: 12px;
    scroll-padding-inline: 0;
  }

  .app-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
  }

  .app-info > p:not(.concept-note) {
    flex: none;
  }

  .app-preview {
    height: 178px;
    min-height: 0;
    flex: none;
  }

  .app-info {
    padding: 17px;
  }

  .app-mark {
    width: 38px;
    height: 38px;
    font-size: 15px;
  }

  .app-title {
    gap: 10px;
  }

  .app-title h3 {
    font-size: 18px;
    line-height: 1.3;
  }

  .app-title small {
    font-size: 9px;
    letter-spacing: .025em;
  }

  .app-info > p {
    font-size: 12px;
    line-height: 1.65;
    margin: 12px 0 15px;
  }

  .app-card-concept .concept-note {
    margin-top: -6px;
    font-size: 10px;
    line-height: 1.55;
  }

  .app-actions {
    gap: 10px;
    margin-top: 2px;
  }

  .app-button,
  .app-whatsapp {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 11px;
  }

  .preview-open {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .demo-note {
    margin-top: 14px;
    padding-right: 112px;
    font-size: 10px;
    line-height: 1.65;
  }

  .swipe-hint {
    padding-right: 112px;
  }

  .microapps-section > .section-wrap {
    padding-bottom: 108px;
  }

  .cart-launcher,
  .help-launcher {
    position: relative;
    width: 54px;
    height: 54px;
    min-height: 54px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .cart-launcher b,
  .help-launcher b {
    display: none;
  }

  .cart-launcher > span,
  .help-launcher span {
    font-size: 22px;
  }

  .cart-launcher .cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    padding: 4px 6px;
  }

  .cart {
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .help {
    right: calc(max(16px, env(safe-area-inset-right)) + 62px);
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .help-panel {
    right: -62px;
  }

  .privacy-banner.is-visible ~ .cart,
  .privacy-banner.is-visible ~ .help {
    bottom: max(190px, calc(env(safe-area-inset-bottom) + 172px));
  }

  .footer-bottom.section-wrap {
    padding-bottom: 96px;
  }
}

@media (max-width: 380px) {
  .app-preview {
    height: 158px;
  }

  .app-title h3 {
    font-size: 17px;
  }

  .app-info {
    padding: 14px;
  }
}
