/* Home — landing (referencia: bienvenida + CTAs sobre foto lifestyle) */

body.page-home .main {
  padding-top: 0;
  min-height: calc(100vh - var(--header-stack-height));
  min-height: calc(100svh - var(--header-stack-height));
}

@media (max-width: 767px) {
  body.page-home .main {
    min-height: 0;
    height: auto;
    padding-bottom: 0;
    background: transparent;
  }

  html:has(body.page-home) {
    background: #0f172a;
  }

  body.page-home {
    padding-bottom: 0;
    background: #0f172a;
  }

  body.page-home .footer {
    margin-top: 0;
    padding-bottom: calc(1.75rem + 80px + env(safe-area-inset-bottom, 0px));
  }

  body.page-home .storefront-hero--landing .storefront-hero__media,
  body.page-home .storefront-hero--landing .storefront-hero__shade {
    pointer-events: none;
  }

  .storefront-hero--landing .storefront-hero__title-line {
    text-wrap: balance;
  }

  .storefront-hero--landing .storefront-hero__note {
    max-width: 100%;
    text-wrap: balance;
    font-size: clamp(0.6875rem, 2.8vw, 0.8125rem);
  }

  body.page-home .header {
    position: sticky;
    z-index: 120;
  }
  body.page-home.nav-open .header {
    z-index: 280;
  }
}

body.page-home .footer {
  margin-top: 0;
}

body.page-home .footer::before {
  display: none;
  content: none;
  height: 0;
}

.storefront-hero--landing {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - var(--header-stack-height));
  min-height: calc(100svh - var(--header-stack-height));
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.storefront-hero--landing .storefront-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: 86% center;
  transform: scale(1.02);
}

.storefront-hero--landing .storefront-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(8, 12, 24, 0.9) 0%,
      rgba(8, 12, 24, 0.72) 28%,
      rgba(8, 12, 24, 0.28) 46%,
      rgba(8, 12, 24, 0.06) 58%,
      transparent 72%
    ),
    linear-gradient(180deg, rgba(8, 12, 24, 0.18) 0%, rgba(8, 12, 24, 0.28) 100%);
}

.storefront-hero--landing .storefront-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 30rem) 1fr;
  align-items: center;
}

.storefront-hero--landing .storefront-hero__copy {
  max-width: 30rem;
  color: #fff;
  justify-self: start;
}

.storefront-hero--landing .storefront-hero__head,
.storefront-hero--landing .storefront-hero__foot {
  display: contents;
}

.storefront-hero--landing .storefront-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin-bottom: 1.35rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.storefront-hero--landing .storefront-hero__badge-icon {
  flex-shrink: 0;
  color: #c4b5fd;
}

.storefront-hero--landing .storefront-hero__title {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: clamp(2.35rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  text-transform: none;
  text-wrap: balance;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.storefront-hero--landing .storefront-hero__title-line {
  display: block;
}

.storefront-hero--landing .storefront-hero__title-brand {
  background: linear-gradient(135deg, #a78bfa 0%, #6366f1 45%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 12px rgba(99, 102, 241, 0.35));
}

.storefront-hero--landing .storefront-hero__lead {
  font-size: clamp(1.05rem, 2.35vw, 1.25rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(248, 250, 252, 0.92);
  margin-bottom: 1.85rem;
  max-width: 38ch;
}

.storefront-hero--landing .storefront-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.storefront-hero--landing .storefront-hero__btn {
  min-width: 10.5rem;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 12px;
}

.storefront-hero--landing .storefront-hero__btn--primary {
  background: var(--gradient-brand);
  color: #fff;
  border: none;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.45);
}

.storefront-hero--landing .storefront-hero__btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  color: #fff;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.55);
}

.storefront-hero--landing .storefront-hero__btn--offers {
  background: rgba(15, 23, 42, 0.25);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.storefront-hero--landing .storefront-hero__btn--offers:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

.storefront-hero--landing .storefront-hero__note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(248, 250, 252, 0.88);
}

.storefront-hero--landing .storefront-hero__note-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  flex-shrink: 0;
}

/* Tema slush: mantener legibilidad sobre foto */
body.theme-slush.page-home .storefront-hero--landing .storefront-hero__title {
  font-family: var(--font);
  font-weight: 800;
  text-transform: none;
  line-height: 1.02;
  max-width: none;
  color: #fff;
}

body.theme-slush.page-home .storefront-hero--landing .storefront-hero__lead {
  font-weight: 500;
  color: rgba(248, 250, 252, 0.92);
}

body.theme-slush.page-home .storefront-hero--landing .storefront-hero__note {
  background: transparent;
  border: none;
  padding: 0;
  color: rgba(248, 250, 252, 0.88);
}

body.theme-slush.page-home .storefront-hero--landing .storefront-hero__note-dot {
  background: #34d399;
}

@media (min-width: 769px) and (max-width: 1023px) {
  .storefront-hero--landing .storefront-hero__title-line,
  .storefront-hero--landing .storefront-hero__note {
    text-wrap: balance;
  }
}

/* Móvil: mitad superior caras; mitad inferior texto (anclado abajo) */
@media (max-width: 767px) {
  .storefront-hero--landing {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    min-height: calc(100svh - 120px);
    min-height: calc(100dvh - 120px);
    overflow: hidden;
  }

  .storefront-hero--landing .storefront-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0 var(--container-pad, 1rem);
  }

  .storefront-hero--landing .storefront-hero__copy {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    padding-right: 0;
    text-align: center;
    border: none;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  .storefront-hero--landing .storefront-hero__head {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    background: none;
    border: none;
    box-shadow: none;
  }

  .storefront-hero--landing .storefront-hero__foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .storefront-hero--landing .storefront-hero__media {
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 20%;
    transform: none;
  }

  .storefront-hero--landing .storefront-hero__media::after {
    display: none;
  }

  .storefront-hero--landing .storefront-hero__shade {
    inset: 0;
    height: auto;
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0) 0%,
      rgba(15, 23, 42, 0.15) 40%,
      rgba(15, 23, 42, 0.85) 75%,
      rgba(15, 23, 42, 0.95) 100%
    );
  }

  .storefront-hero--landing .storefront-hero__badge {
    display: inline-flex;
    justify-content: center;
    margin: 0 auto 0.5rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.5625rem;
    letter-spacing: 0.06em;
    text-align: center;
    backdrop-filter: blur(10px);
    max-width: 100%;
  }

  body.theme-slush.page-home .storefront-hero--landing .storefront-hero__badge {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.22);
  }

  body.theme-slush.page-home .storefront-hero--landing .storefront-hero__title,
  .storefront-hero--landing .storefront-hero__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.12rem;
    width: 100%;
    font-size: clamp(36px, 10vw, 44px);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 auto 16px;
    text-align: center;
    text-wrap: balance;
    text-transform: none;
    color: #fff;
    max-width: 100%;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  }

  .storefront-hero--landing .storefront-hero__title-line {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 1.05;
  }

  .storefront-hero--landing .storefront-hero__title-brand {
    color: #c4b5fd;
    -webkit-text-fill-color: #c4b5fd;
    background: none;
    background-clip: unset;
    filter: none;
  }

  .storefront-hero--landing .storefront-hero__lead {
    display: none;
  }

  .storefront-hero--landing .storefront-hero__foot .storefront-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .storefront-hero--landing .storefront-hero__btn--primary {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45);
  }

  .storefront-hero--landing .storefront-hero__btn--offers {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.88);
    color: #fff;
  }

  .storefront-hero--landing .storefront-hero__actions .btn,
  .storefront-hero--landing .storefront-hero__btn,
  .storefront-hero--landing .storefront-hero__btn.btn--lg {
    display: flex;
    width: 100%;
    max-width: none;
    min-width: 0;
    min-height: 50px;
    height: 50px;
    padding: 0 1rem;
    font-size: 0.9375rem;
    border-radius: 12px;
    white-space: nowrap;
    justify-content: center;
  }

  .storefront-hero--landing .storefront-hero__btn--primary svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .storefront-hero--landing .storefront-hero__note {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 10px 14px;
    box-sizing: border-box;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 600;
    color: #f8fafc;
    text-shadow: none;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
  }

  body.theme-slush.page-home .storefront-hero--landing .storefront-hero__note {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc;
  }
}

@media (max-width: 767px) and (max-height: 700px) {
  .storefront-hero--landing {
    min-height: calc(100svh - 112px);
    min-height: calc(100dvh - 112px);
  }

  .storefront-hero--landing .storefront-hero__media {
    background-position: center 18%;
  }

  body.theme-slush.page-home .storefront-hero--landing .storefront-hero__title,
  .storefront-hero--landing .storefront-hero__title {
    font-size: clamp(32px, 9vw, 40px);
  }

  .storefront-hero--landing .storefront-hero__actions .btn,
  .storefront-hero--landing .storefront-hero__btn {
    min-height: 48px;
    height: 48px;
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .storefront-hero--landing .storefront-hero__media {
    background-position: 82% center;
  }

  .storefront-hero--landing .storefront-hero__inner {
    grid-template-columns: minmax(0, 26rem) 1fr;
  }
}