

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;      
}

@supports not (height: 100dvh) {
  html, body { height: 100vh; }
}

:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 3px;
  border-radius: 4px;
}

button { font: inherit; color: inherit; }

.landing {
  position: relative;
  width: 100%;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #081B4C 0%, var(--bg-dark) 70%);
  
  padding: calc(3.6rem + env(safe-area-inset-top, 0px))
           calc(1.25rem + env(safe-area-inset-right, 0px))
           calc(1rem + env(safe-area-inset-bottom, 0px))
           calc(1.25rem + env(safe-area-inset-left, 0px));
  
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@supports not (height: 100dvh) {
  .landing { height: 100vh; }
}

.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--fondo-img, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: var(--fondo-opacidad, 0);
  mix-blend-mode: var(--fondo-mezcla, overlay);
}

.cloud-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }

.cp {
  position: absolute;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(65px);
  border-radius: 50%;
  opacity: 0.55;
  animation: drift 20s linear infinite alternate;
  will-change: transform;
}
.cp1 { top: 10%; left: -10%; width: 320px; height: 320px; }
.cp2 { bottom: 15%; right: -15%; width: 380px; height: 380px; animation-delay: -5s; }
.cp3 { top: 40%; right: 20%; width: 260px; height: 260px; animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(25px, -18px) rotate(3deg); }
  100% { transform: translate(-15px, 12px) rotate(-2deg); }
}

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-height: 920px;
  max-width: 540px;
  width: 100%;
  text-align: center;
  padding: 0.4rem 0;
}

.hero-content > * { max-width: 100%; }

@keyframes fadeDown { from { opacity: 0; transform: translateY(-25px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(35px);  } to { opacity: 1; transform: none; } }

.badges-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  animation: fadeDown 0.8s var(--ease) both;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.15);
}

@media (pointer: fine) {
  .brand-badge {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.badge-dot {
  width: 6px; height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.65); } }

.rating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;          
  max-width: 100%;
  gap: 0.1rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFD166;
  background: rgba(255, 209, 102, 0.1);
  padding: 0.28rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 209, 102, 0.25);
}
.rating-badge span { color: #FFFFFF; font-weight: 700; }
.rating-count { color: var(--text-muted) !important; font-weight: 400 !important; font-size: 0.72rem; }

.shoe-stage {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 520px;
  flex: 1 1 auto;
  min-height: 120px;
  
  max-height: min(520px, 56dvh);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.9s var(--ease) 0.12s both;
  perspective: 1000px;
}

.shoe-glow {
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.45), transparent 70%);
  z-index: 1;
  filter: blur(30px);
  border-radius: 50%;
  animation: glowPulse 3.6s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

.shoe-float {
  position: relative;
  z-index: 2;
  height: 100%;
  
  max-height: min(500px, 53dvh);
  display: flex;
  align-items: center;
  transform-style: preserve-3d;
  animation: levitate 3.6s ease-in-out infinite;
}
.shoe-float picture { display: contents; }
@keyframes levitate {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-16px) rotate(1.5deg); }
}

.shoe-img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.75))
          drop-shadow(0 0 26px rgba(var(--accent-rgb), 0.35));
  transition: opacity 0.28s ease, transform 0.18s cubic-bezier(0.1, 1, 0.1, 1);
  will-change: transform;
}

.shoe-shadow {
  position: absolute;
  bottom: -5px; left: 50%;
  width: 200px; height: 20px;
  background: rgba(var(--accent-rgb), 0.45);
  border-radius: 50%;
  filter: blur(14px);
  z-index: 0;
  animation: shadowFloat 3.6s ease-in-out infinite;
}
@keyframes shadowFloat {
  0%,100% { transform: translateX(-50%) scale(1); opacity: 0.5; }
  50%     { transform: translateX(-50%) scale(0.7); opacity: 0.22; }
}

.hero-swatches {
  display: flex;
  gap: 0.85rem;
  z-index: 5;
  animation: fadeUp 0.9s var(--ease) 0.2s both;
}

.hero-swatch-btn {
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  border-radius: 50%;
  touch-action: manipulation;
}
.hero-swatch-btn::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--sw, #888);
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.hero-swatch-btn:hover::after { transform: scale(1.16); border-color: var(--accent); }
.hero-swatch-btn.active::after {
  transform: scale(1.22);
  border-color: #FFFFFF;
  box-shadow: 0 0 15px var(--accent);
}

.headline-block { width: 100%; animation: fadeUp 0.9s var(--ease) 0.25s both; }

.headline-main {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 10.5vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-shadow: 0 2px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
}
.headline-main > span { display: inline-block; max-width: 100%; }
.headline-accent { color: var(--accent); text-shadow: 0 0 30px rgba(var(--accent-rgb), 0.6); }

.headline-sub {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.4;
  margin-top: 0.35rem;
  letter-spacing: 0.8px;
}

.cta-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  animation: fadeUp 0.9s var(--ease) 0.35s both;
}

.main-price {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--accent-light);
  line-height: 1;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(var(--accent-rgb), 0.4);
}
.main-price .currency {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--accent);
  font-weight: 600;
  vertical-align: top;
}

.main-price.is-cotizacion {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent-light);
  text-shadow: none;
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-cloud {
  background: linear-gradient(135deg, var(--accent-bright) 0%, var(--accent) 50%, var(--accent-deep) 100%);
  border: 1.5px solid var(--accent-light);
  padding: 0.95rem 1.5rem;
  min-height: 62px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
  max-width: 380px;
  touch-action: manipulation;
  animation: attentionPulse 3s infinite ease-in-out;
}
@keyframes attentionPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.035); } }

.btn-cloud:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 0 45px rgba(var(--accent-rgb), 0.7), inset 0 2px 6px rgba(255, 255, 255, 0.6);
  animation-play-state: paused;
}
.btn-cloud:active { transform: scale(0.98); animation-play-state: paused; }

.btn-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  
  white-space: nowrap;
  font-size: clamp(1.05rem, 4.4vw, 1.45rem);
  letter-spacing: 1.6px;
  color: #041028;
}

@media (max-width: 380px) { .btn-sparkle { display: none; } }
.btn-sparkle { font-size: 1.2rem; animation: sparklePulse 2.5s ease-in-out infinite alternate; }
@keyframes sparklePulse { 0% { transform: scale(0.9) rotate(-8deg); } 100% { transform: scale(1.18) rotate(12deg); } }

.stock-note {
  font-size: 0.78rem;
  color: rgba(244, 244, 244, 0.65);
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.noscript-box {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}
.noscript-box a {
  background: var(--accent);
  color: #041028;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

@media (max-height: 740px) {
  .headline-main { font-size: clamp(2.1rem, 9.5vw, 2.7rem); letter-spacing: 1.5px; }
  .headline-sub  { font-size: 0.88rem; margin-top: 0.2rem; }
  .main-price    { font-size: 2rem; }
  .btn-cloud     { padding: 0.75rem 1.4rem; min-height: 54px; }
  .brand-badge   { font-size: 0.63rem; padding: 0.28rem 0.9rem; letter-spacing: 2px; }
  .hero-swatches { gap: 0.5rem; }
  .stock-note    { font-size: 0.7rem; }
  .rating-badge  { font-size: 0.72rem; }
  .rating-count  { font-size: 0.68rem; }
}

@media (max-height: 640px) {
  .rating-badge { display: none; }
  .headline-sub { display: none; }
  .main-price   { font-size: 1.8rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 0.5rem 1.25rem;
    max-width: 900px;
  }
  
  .shoe-stage { grid-row: span 4; min-height: 0; max-height: 100%; }
  .shoe-float { max-height: 100%; height: auto; }
  
  .shoe-img   { height: auto; max-height: calc(100dvh - 5rem); }
  .badges-group, .hero-swatches, .headline-block, .cta-wrapper { grid-column: 2; }
  .hero-swatches { justify-content: center; }
  .headline-main { font-size: 1.9rem; }
  .main-price    { font-size: 1.6rem; }
  .btn-cloud     { padding: 0.55rem 1.2rem; min-height: 46px; }
  .stock-note, .headline-sub { display: none; }
}

@media (min-width: 1024px) and (min-height: 800px) {
  .hero-content { max-width: 640px; }
  .shoe-stage   { max-height: min(520px, 54dvh); }
  .shoe-float   { max-height: min(490px, 52dvh); }
}

body.modal-abierto .cp,
body.modal-abierto .shoe-float,
body.modal-abierto .shoe-glow,
body.modal-abierto .shoe-shadow,
body.modal-abierto .btn-cloud,
body.modal-abierto .btn-sparkle,
body.modal-abierto .badge-dot {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .shoe-float, .shoe-shadow, .shoe-glow, .cp, .btn-cloud, .btn-sparkle { animation: none !important; }
}
