/* Home móvil — stream del lienzo (PC no se toca) */

.hm-mobile-stream {
  display: none;
}

.sh-home-app {
  display: none;
}

@media (max-width: 720px) {
  .hm-mobile-stream {
    display: block;
    padding-top: 0;
  }

  /* El home PC no se mezcla en celular: el orden lo define el stream móvil */
  .kinlig-home .sh-home-desktop {
    display: none !important;
  }

  .kinlig-home .sh-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .kinlig-home .kinlig-credit--solo {
    display: block;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  /* Header overlay: velo largo negro → transparente (premium, no franja corta) */
  body.kinlig-body.kinlig-home.banner-header-white .sh-header.sh-header-home,
  body.kinlig-body.kinlig-home.banner-header-white .sh-header.sh-header-home.is-solid {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    overflow: visible;
  }

  body.kinlig-body.kinlig-home.banner-header-white .sh-header.sh-header-home::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 168px;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.68) 28%,
      rgba(0, 0, 0, 0.38) 55%,
      rgba(0, 0, 0, 0.14) 78%,
      rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
    z-index: 0;
  }

  /* Menú negro: sin velo oscuro (íconos oscuros sobre foto clara) */
  body.kinlig-body.kinlig-home.banner-header-black .sh-header.sh-header-home,
  body.kinlig-body.kinlig-home.banner-header-black .sh-header.sh-header-home.is-solid {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body.kinlig-body.kinlig-home.banner-header-black .sh-header.sh-header-home::before {
    content: none;
  }

  .kinlig-home .am-header-mobile {
    position: relative;
    z-index: 5;
  }

  .kinlig-home .am-header-mobile .sh-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
  }

  .kinlig-home .am-header-mobile .sh-logo-img--light {
    display: none;
  }

  /* Menú blanco (fotos oscuras) */
  .kinlig-home.banner-header-white .am-header-mobile .lang-switch a {
    color: rgba(255, 255, 255, 0.7);
  }
  .kinlig-home.banner-header-white .am-header-mobile .lang-switch a.is-active,
  .kinlig-home.banner-header-white .am-header-mobile .lang-switch a:hover {
    color: #fff;
  }
  .kinlig-home.banner-header-white .am-header-mobile .lang-switch .sep {
    color: rgba(255, 255, 255, 0.45);
  }
  .kinlig-home.banner-header-white .am-header-mobile .sh-icon-btn {
    color: #fff;
    border-color: transparent;
    background: transparent;
  }
  /* Sin logo blanco subido: invertir el negro */
  .kinlig-home.banner-header-white .am-header-mobile:not(.has-logo-white) .sh-logo-img--dark {
    filter: brightness(0) invert(1);
  }
  /* Con logo blanco real: mostrar esa versión */
  .kinlig-home.banner-header-white .am-header-mobile.has-logo-white .sh-logo-img--dark {
    display: none;
  }
  .kinlig-home.banner-header-white .am-header-mobile.has-logo-white .sh-logo-img--light {
    display: block;
    filter: none;
  }

  /* Menú negro (fotos claras) */
  .kinlig-home.banner-header-black .am-header-mobile .lang-switch a {
    color: rgba(0, 0, 0, 0.55);
  }
  .kinlig-home.banner-header-black .am-header-mobile .lang-switch a.is-active,
  .kinlig-home.banner-header-black .am-header-mobile .lang-switch a:hover {
    color: #111;
  }
  .kinlig-home.banner-header-black .am-header-mobile .lang-switch .sep {
    color: rgba(0, 0, 0, 0.35);
  }
  .kinlig-home.banner-header-black .am-header-mobile .sh-icon-btn {
    color: #111;
    border-color: transparent;
    background: transparent;
  }
  .kinlig-home.banner-header-black .am-header-mobile .sh-logo-img--dark {
    filter: none;
  }
  .kinlig-home.banner-header-black .am-header-mobile .sh-logo-img--light {
    display: none;
  }

  /* Banner edge-to-edge bajo el header fijo — pegado a chips */
  .kinlig-home .sh-app-banners {
    position: relative;
    margin: 0;
    padding: 0;
  }

  .kinlig-home .sh-app-banners-track {
    scroll-padding-inline: 0;
  }

  .kinlig-home .sh-app-banner-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 0;
    box-shadow: none;
    background: #8a8a8a;
  }

  .kinlig-home .sh-app-banner-slide:not(:last-child) {
    margin-right: 0;
  }

  .kinlig-home .sh-app-banners-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 2;
    padding: 0;
  }

  .kinlig-home.banner-header-white .sh-app-banners-dots button {
    background: rgba(255, 255, 255, 0.45);
  }
  .kinlig-home.banner-header-white .sh-app-banners-dots button.is-active {
    background: #fff;
  }
  .kinlig-home.banner-header-black .sh-app-banners-dots button {
    background: rgba(0, 0, 0, 0.28);
  }
  .kinlig-home.banner-header-black .sh-app-banners-dots button.is-active {
    background: #111;
  }
}

/* Banners — base (desktop home-app oculto; móvil override arriba) */
.sh-app-banners {
  position: relative;
  margin: 4px 0 14px;
  padding: 0 16px;
}

.sh-app-banners-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: auto; /* el JS controla el smooth + asiento final */
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
}

.sh-app-banners-track::-webkit-scrollbar {
  display: none;
}

.sh-app-banner-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 2 / 1;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  background: #9a9a9a;
}

.sh-app-banner-slide:not(:last-child) {
  margin-right: 12px;
}

.sh-app-banner-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.sh-app-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-app-banners-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 0;
}

.sh-app-banners-dots button {
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}

.sh-app-banners-dots button.is-active {
  width: 18px;
  background: var(--sh-olive);
}

.sh-app-chips {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  margin: 0;
  padding: 0;
  background: var(--sh-btn-bg, #111);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sh-app-chips::-webkit-scrollbar {
  display: none;
}

.sh-app-chips::after {
  display: none;
}

.sh-app-chips span {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sh-btn-text, #fff);
  text-align: center;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.sh-app-chips span:last-child {
  border-right: 0;
}

.sh-app-feed {
  padding: 8px 16px 24px;
}

.sh-app-feed-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-bottom: 14px;
  text-align: left;
}

.sh-app-feed-head h2 {
  margin: 0;
  font-family: var(--sh-sans, Manrope, system-ui, sans-serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--sh-ink);
  text-align: left;
}

.sh-app-feed-head a {
  align-self: flex-start;
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--sh-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sh-app-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sh-app-card {
  display: flex;
  align-items: stretch;
  min-height: 120px;
  height: auto;
  padding: 0;
  background: var(--sh-card, #fff);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.sh-app-card[data-product-open] {
  cursor: pointer;
}

.sh-app-card-media {
  display: block;
  flex: 0 0 120px;
  width: 120px;
  min-height: 120px;
  align-self: stretch;
  border-radius: 0;
  overflow: hidden;
  background: var(--sh-cream-deep, #f7f7f7);
}

.sh-app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-app-card-body {
  flex: 1;
  min-width: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  overflow: visible;
}

.sh-app-card-tag {
  display: inline-block;
  margin: 0;
  padding: 3px 8px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.08);
  color: var(--sh-ink, #111);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sh-app-card-name {
  margin: 0;
  font-family: var(--sh-sans, Manrope, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--sh-ink, #111);
  text-transform: uppercase;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sh-app-card-pack {
  margin: 0;
  font-size: 12px;
  color: var(--sh-muted);
  text-transform: none;
}

.sh-app-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.sh-app-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--sh-ink);
  letter-spacing: -0.02em;
}

.sh-app-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--sh-btn-bg, #111);
  border-radius: 0;
  background: var(--sh-btn-bg, #111);
  color: var(--sh-btn-text, #fff);
  font-family: var(--sh-sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  flex: 0 0 auto;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

.sh-app-add:hover,
.sh-app-add:focus-visible {
  background: var(--sh-btn-hover, #000);
  color: var(--sh-btn-text, #fff);
  border-color: var(--sh-btn-hover, #000);
}

.sh-app-add:active {
  transform: scale(0.94);
}

.sh-app-more {
  display: block;
  margin: 16px 0 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--sh-olive);
  text-decoration: underline;
}

.sh-app-trust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 0;
  background: #f2f2f2;
}

.sh-app-trust p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--sh-ink);
  line-height: 1.35;
}

.sh-app-trust-link,
.sh-app-trust a {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  flex-shrink: 0;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.sh-app-why {
  padding: 20px 0 32px;
  border-top: 0;
}

.sh-app-why h2 {
  margin: 0 0 22px;
  font-family: var(--sh-sans, Manrope, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #111;
}

.sh-app-why ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.sh-app-why li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  min-height: 0;
  padding: 4px 10px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-right: 1px solid #eee;
}

.sh-app-why li:last-child {
  border-right: 0;
}

.sh-app-why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-bottom: 2px;
  padding: 0;
  border-radius: 0;
  color: #111;
  background: transparent;
}

.sh-app-why-ico svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke-width: 1.4;
}

.sh-app-why strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #111;
}

.sh-app-why li > span:not(.sh-app-why-ico) {
  font-size: 11px;
  line-height: 1.35;
  color: #888;
  max-width: none;
  white-space: nowrap;
}

/* Modal “Por qué nosotros” */
.why-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.why-modal[hidden] {
  display: none !important;
}

.why-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.45);
  cursor: pointer;
}

.why-modal-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(92vh, 760px);
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
  animation: whyModalUp 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes whyModalUp {
  from { transform: translateY(18px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}

.why-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  cursor: pointer;
}

.why-modal-media {
  position: relative;
  flex: 0 0 auto;
  height: min(48vh, 360px);
  background: #ddd;
  overflow: hidden;
}

.why-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why-modal-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 100%);
  pointer-events: none;
}

.why-modal-copy {
  position: relative;
  z-index: 1;
  margin-top: -28px;
  padding: 0 22px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.why-modal-copy h2 {
  margin: 0 0 12px;
  font-family: var(--sh-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: #111;
  text-transform: none;
}

.why-modal-text {
  font-size: 14px;
  line-height: 1.65;
  color: #555;
}

body.why-modal-open {
  overflow: hidden;
}
