/* Portada y navegación. El resto de la tienda conserva su sistema visual. */
:root { scroll-padding-top: 92px; }
body { min-width: 0; }
.header {
  height: 76px; padding: 0 5vw; gap: 24px; display: grid;
  grid-template-columns: 1fr auto 1fr; background: #fff; color: #203650; box-shadow: none;
  border-bottom: 1px solid #e5ebf3; transition: border-color .25s;
}
.header.scrolled { background: #fff; backdrop-filter: none; border-color: #e5ebf3; }
.header .brand { justify-self: start; font-size: 26px; letter-spacing: -.06em; font-weight: 750; color: #172d4e; }
.header .brand img { width: 21px; height: 38px; object-fit: contain; }
.nav { margin-left: 0; gap: clamp(24px, 3.3vw, 48px); }
.nav a { color: #52647d; font-size: 11px; font-weight: 400; position: relative; padding: 12px 0; }
.nav a:hover, .nav a:focus-visible { color: #175ba6; }
.nav a::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 1px; background: #3588ed; transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.head-actions { justify-self: end; gap: 12px; align-items: center; }
.nav-icon, .cart-open.nav-icon, .menu-button.nav-icon {
  width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 50%;
  background: transparent; color: #344b69; position: relative; align-items: center; justify-content: center;
  transition: background .2s;
}
.nav-icon { display: inline-flex; }
.nav-icon:hover, .cart-open.nav-icon:hover { background: #f1f5fa; }
.nav-icon svg { width: 21px; height: 21px; flex: 0 0 21px; }
.cart-open #cart-count { position: absolute; top: 3px; right: 0; min-width: 16px; height: 16px; font-size: 9px; font-weight: 600; background: #2585ee; }
.cart-open #cart-count[data-empty='true'] { display: none; }
.menu-button.nav-icon { display: none; }
.mobile-nav { background: #fff; padding: 12px 6vw 22px; border-bottom: 1px solid #e5ebf3; box-shadow: none; }
.mobile-nav a { color: #52647d; font-weight: 400; font-size: 13px; padding: 15px 0; border-color: #edf1f6; }
.mobile-nav a:hover, .mobile-nav a:focus-visible, .mobile-nav a[aria-current='page'] { color: #175ba6; }
.header:has(#menu-button[aria-expanded='true']) .menu-button svg { transform: rotate(90deg); }

.hero {
  isolation: isolate; display: block; padding: 0; height: clamp(580px, calc(100svh - 76px), 820px);
  min-height: 580px; background: #07132f; overflow: clip; color: #f8faff;
}
.hero::before { display: none; }
.hero-glow {
  position: absolute; z-index: -1; width: 105%; height: 150%; top: -13%; left: 22%;
  background: radial-gradient(ellipse at 50% 57%, #2585ee9c 0, #154fa65c 29%, #17408022 48%, transparent 65%);
  transition: transform .85s cubic-bezier(.22, 1, .36, 1), opacity .85s;
}
.hero-wordmark {
  position: absolute; z-index: -1; left: 44%; top: 33%; font-size: clamp(180px, 24vw, 380px);
  font-weight: 800; letter-spacing: -.09em; color: #a6ccff; opacity: .035; line-height: 1;
  transition: left .85s, top .85s, opacity .85s; pointer-events: none;
}
.hero-copy {
  position: absolute; z-index: 2; left: 5vw; top: 47%; width: 40%; max-width: 600px;
  transform: translateY(-50%); opacity: 1; transition: opacity .2s ease;
}
.hero-copy.is-leaving { opacity: 0; }
.hero .eyebrow { font-size: 10px; font-weight: 500; letter-spacing: .22em; color: #c0d6f6; margin-bottom: 27px; display: block; }
.hero h1 { font-size: clamp(54px, 5.9vw, 92px); font-weight: 650; letter-spacing: -.065em; line-height: 1.02; margin: 0 0 20px; }
.hero h1 > span { display: block; }
.hero-subtitle { font-size: clamp(20px, 2.1vw, 30px); font-weight: 450; color: #81bcff; letter-spacing: -.045em; margin: 0 0 20px; }
.hero-lead { font-size: 13px; font-weight: 400; line-height: 1.8; max-width: 355px; color: #bccbe3; margin: 0 0 30px; }
.hero-actions { display: flex; align-items: center; gap: 23px; flex-wrap: wrap; }
.hero .button { border-radius: 100px; min-height: 48px; padding: 12px 22px; font-size: 12px; font-weight: 550; gap: 22px; }
.hero .primary { background: #f2f7ff; color: #102d59; box-shadow: none; transition: background .2s, transform .2s; }
.hero .primary:hover { background: #fff; transform: translateY(-2px); filter: none; }
.hero .button svg { width: 18px; height: 18px; }
.hero-text-link { font-size: 11px; font-weight: 500; padding: 14px 0; color: #e1ebfc; }
.hero-text-link span { margin-left: 7px; color: #81bcff; }
.hero-text-link:hover { color: #81bcff; }
.hero-art {
  position: absolute; left: 69%; top: 49%; width: min(56vw, 830px); height: 100%;
  min-height: 0; transform: translate(-50%, -50%); pointer-events: none;
  transition: left .85s cubic-bezier(.22, 1, .36, 1), top .85s, width .85s;
}
.hero-art img {
  position: absolute; left: 50%; top: 50%; width: 100%; height: auto; max-width: none; max-height: none;
  object-fit: contain; transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(16px 28px 28px #020a20a0);
  transition: transform .85s cubic-bezier(.22, 1, .36, 1);
}
.hero[data-scene='cambia'] .hero-copy { left: 58%; width: 37%; }
.hero[data-scene='cambia'] .hero-art { left: 29%; top: 48%; width: min(52vw, 780px); }
.hero[data-scene='cambia'] .hero-art img { transform: translate(-50%, -50%) rotate(8deg); }
.hero[data-scene='cambia'] .hero-glow { transform: translateX(-45%); }
.hero[data-scene='cambia'] .hero-wordmark { left: 0; top: 34%; }
.hero[data-scene='vende'] .hero-copy { left: 8%; top: 42%; width: 43%; }
.hero[data-scene='vende'] h1 { font-size: clamp(50px, 5.1vw, 80px); }
.hero[data-scene='vende'] .hero-art { left: 74%; top: 57%; width: min(61vw, 920px); }
.hero[data-scene='vende'] .hero-art img { transform: translate(-50%, -50%); }
.hero[data-scene='vende'] .hero-glow { transform: translate(6%, 8%); opacity: .7; }
.hero[data-scene='vende'] .hero-wordmark { left: 5%; top: 68%; opacity: .055; }
.hero-bottom {
  z-index: 3; justify-content: flex-end; align-items: center; min-height: 78px; padding: 14px 5vw; gap: 20px;
  font-size: 10px; font-weight: 400; letter-spacing: 0; border: 0;
  background: linear-gradient(transparent, #07132f8c);
}
.hero-scroll { font-size: 8px; letter-spacing: .13em; color: #d4e4fb; white-space: nowrap; }
.hero-scroll span { margin-left: 14px; font-size: 18px; display: inline-block; }
.value-strip { background: #f0f4fb; color: #425b7d; padding: 22px 5vw; }
.value-strip div { border-color: #17386719; font-size: 11px; font-weight: 500; }
.value-strip b { color: #2585ee; font-size: 10px; font-weight: 600; }

@media (min-width: 1600px) {
  .header, .hero-bottom { padding-left: max(5vw, calc((100vw - 1440px)/2)); padding-right: max(5vw, calc((100vw - 1440px)/2)); }
  .hero-copy { left: max(5vw, calc((100vw - 1440px)/2)); }
}
@media (max-width: 1000px) {
  .header { gap: 18px; }
  .nav { gap: 24px; }
  .hero h1 { font-size: 57px; }
  .hero[data-scene='vende'] h1 { font-size: 48px; }
  .hero[data-scene='cambia'] .hero-copy { left: 56%; width: 39%; }
  .hero .eyebrow { font-size: 9px; }
  .hero-actions { gap: 13px; }
}
@media (max-width: 760px) {
  :root { scroll-padding-top: 80px; }
  .header { height: 66px; grid-template-columns: 1fr auto; padding: 0 24px; }
  .nav { display: none; }
  .menu-button.nav-icon { display: inline-flex; }
  .head-actions { gap: 3px; }
  .hero { height: 780px; min-height: 780px; }
  .hero .hero-copy, .hero[data-scene='cambia'] .hero-copy, .hero[data-scene='vende'] .hero-copy {
    left: 24px; top: 47px; transform: none; width: calc(100% - 48px); max-width: none;
  }
  .hero .eyebrow { margin-bottom: 18px; font-size: 9px; }
  .hero h1, .hero[data-scene='vende'] h1 { font-size: clamp(44px, 7vw, 60px); line-height: 1.04; margin-bottom: 12px; }
  .hero-subtitle { font-size: 21px; margin-bottom: 12px; }
  .hero-lead { font-size: 12px; margin-bottom: 19px; max-width: 400px; }
  .hero-actions { gap: 22px; }
  .hero-actions .button { width: auto; min-height: 44px; padding: 10px 19px; }
  .hero .hero-art, .hero[data-scene='cambia'] .hero-art, .hero[data-scene='vende'] .hero-art { left: 55%; top: 65%; height: 350px; width: min(72vw, 480px); max-width: none; }
  .hero[data-scene='cambia'] .hero-art { left: 44%; }
  .hero[data-scene='vende'] .hero-art { left: 55%; width: min(76vw, 510px); }
  .hero-glow { width: 150%; left: -22%; height: 110%; top: 16%; }
  .hero[data-scene='cambia'] .hero-glow { transform: translateX(-8%); }
  .hero-wordmark, .hero[data-scene='cambia'] .hero-wordmark, .hero[data-scene='vende'] .hero-wordmark { left: 4%; top: 51%; font-size: 43vw; }
  .hero-bottom { padding: 16px 24px; min-height: 76px; }
  .hero-bottom { display: none; }
}
@media (max-width: 540px) {
  .header { padding: 0 18px; }
  .header .brand { font-size: 24px; }
  .header .brand img { width: 19px; height: 34px; }
  .hero { height: 730px; min-height: 730px; }
  .hero .hero-copy, .hero[data-scene='cambia'] .hero-copy, .hero[data-scene='vende'] .hero-copy { left: 24px; top: 35px; }
  .hero h1, .hero[data-scene='vende'] h1 { font-size: clamp(40px, 12vw, 58px); }
  .hero .hero-art, .hero[data-scene='cambia'] .hero-art, .hero[data-scene='vende'] .hero-art { top: 68%; width: 82vw; }
  .hero[data-scene='vende'] .hero-art { width: 86vw; }
  .hero-bottom { padding: 14px 24px; }
  .value-strip { padding: 18px 16px; }
  .value-strip div { font-size: 9px; gap: 5px; line-height: 1.5; }
}
@media (max-width: 360px) {
  .header { padding: 0 12px; }
  .hero .hero-copy, .hero[data-scene='cambia'] .hero-copy, .hero[data-scene='vende'] .hero-copy { left: 20px; width: calc(100% - 40px); }
  .hero-actions { gap: 15px; }
  .hero .button { gap: 13px; font-size: 11px; }
  .hero-text-link { font-size: 10px; }
  .hero-bottom { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .hero *, .header, .nav a::after, .nav-icon { transition: none !important; animation: none !important; }
}
