:root {
  --red: #e51218;
  --red-dark: #9e0a0f;
  --red-deep: #5e0508;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, .10);
  --glass-border: rgba(255, 255, 255, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', system-ui, sans-serif;
  color: var(--white);
  background: var(--red-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 64px;
  background:
    radial-gradient(ellipse at 50% 30%, #f7343a 0%, var(--red) 35%, var(--red-dark) 75%, var(--red-deep) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Capas del fondo: foto (0) → tinte (0, encima por orden) → contenido (2) */
.hero > * { position: relative; z-index: 2; }

/* foto en blanco y negro que el tinte vuelve duotono rojo */
.hero > .hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url(../img/hero.jpg) center 35% / cover no-repeat;
  filter: grayscale(1) brightness(1.15) contrast(1.05);
  transform: scale(1.06);
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.14) translate(-1.5%, -1%); }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, #f7343a 0%, var(--red) 35%, var(--red-dark) 75%, var(--red-deep) 100%);
  mix-blend-mode: multiply;
}

/* Variante: foto a color con velo oscuro, sin tinte rojo.
   Quitar la clase .hero--natural del HTML para volver al duotono rojo. */
.hero--natural > .hero-photo {
  filter: saturate(1.05) brightness(.95);
}

/* identidad de marca sobre la foto: contador y punto en rojo #e51218 */
.hero--natural .unit {
  background: rgba(229, 18, 24, .88);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.hero--natural .label { color: rgba(255, 255, 255, .92); }

.hero--natural .badge .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(229, 18, 24, .35); }

.hero--natural::after {
  mix-blend-mode: normal;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, .40) 55%, rgba(0, 0, 0, .75) 100%);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeUp .8s .1s forwards;
}

.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.7); }
}

.logo {
  width: min(560px, 88vw);
  height: auto;
  margin: 28px 0 8px;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .35));
  opacity: 0;
  animation: fadeUp 1s .25s forwards, float 6s 1.3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-10px) rotate(0deg); }
}

.headline {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 4.2rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: .01em;
  opacity: 0;
  animation: fadeUp .9s .45s forwards;
}

.headline span { display: block; color: rgba(255, 255, 255, .72); font-size: .55em; letter-spacing: .12em; }

.date {
  margin-top: 14px;
  font-weight: 600;
  font-size: clamp(.95rem, 2.6vw, 1.15rem);
  letter-spacing: .06em;
  opacity: 0;
  animation: fadeUp .9s .6s forwards;
}

.date strong { font-weight: 800; }

/* ---------- CONTADOR ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 20px);
  width: min(820px, 100%);
  margin-top: 36px;
  opacity: 0;
  animation: fadeUp .9s .75s forwards;
}

.unit {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: clamp(14px, 3vw, 26px) 4px clamp(10px, 2vw, 18px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .15);
}

.num {
  display: block;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 20px rgba(0, 0, 0, .3);
}

.num.tick { animation: tick .45s ease; }

@keyframes tick {
  0%   { transform: translateY(-14px) scale(1.06); opacity: .2; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.label {
  display: block;
  margin-top: 8px;
  font-size: clamp(.62rem, 1.8vw, .85rem);
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.opened {
  display: none;
  margin-top: 36px;
  font-family: 'Anton', Impact, sans-serif;
  font-size: clamp(2.4rem, 9vw, 5rem);
  text-transform: uppercase;
  animation: fadeUp .8s forwards;
}

.opened small {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: .3em;
  font-weight: 600;
  letter-spacing: .1em;
  margin-top: 8px;
}

.is-open .countdown { display: none; }
.is-open .opened { display: block; }

.scroll-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .75);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-hint svg { animation: bounce 1.8s infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- UBICACIÓN ---------- */
.location {
  background: #0f0f10;
  padding: 72px 16px;
}

.location-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

/* pantallas anchas: la sección ocupa más ancho y el mapa acompaña la altura del texto */
@media (min-width: 1200px) {
  .location { padding-inline: clamp(32px, 6vw, 120px); }
  .map { aspect-ratio: 16 / 10; }
  section.location h2 { font-size: clamp(3.4rem, 4.2vw, 4.6rem); }
  section.location .info-list { gap: 18px; }
  section.location .info-list li { font-size: 1.08rem; }
  section.location .store-tag span { font-size: .9rem; padding: 10px 16px; }
}

.eyebrow {
  color: #ff4046;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.location h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 10px 0 16px;
}

.location p {
  color: rgba(255, 255, 255, .72);
  line-height: 1.6;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .2s, background .2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #f52a30; }

.btn-ghost { border: 1px solid rgba(255, 255, 255, .3); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }

.map {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 0 0 4px var(--red), 0 30px 60px rgba(0, 0, 0, .5);
  background: #222;
}

/* --- ubicación: fondo animado, tarjeta del local, lista e insignia del mapa --- */
.location {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.location-inner { position: relative; z-index: 1; }

.store-tag {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 22px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(229, 18, 24, .25);
}

.store-tag span {
  padding: 9px 14px;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.store-brand { background: var(--red); color: var(--white); }
.store-num { background: var(--white); color: var(--red); }

.info-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255, 255, 255, .75);
  line-height: 1.5;
}

.info-list b { color: var(--white); font-weight: 700; }

.info-link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}

.info-link:hover { color: #ff4046; }

.info-list svg {
  flex: none;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(229, 18, 24, .14);
  color: #ff4046;
}

.map-wrap { position: relative; }

/* brillo rojo que "respira" detrás del mapa */
.map-wrap::before {
  content: "";
  position: absolute;
  inset: -40px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 18, 24, .35), transparent);
  filter: blur(20px);
  animation: loc-glow 4s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes loc-glow {
  from { opacity: .45; transform: scale(.94); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* insignia montada sobre el borde superior del mapa (así no tapa los controles de Google) */
.map-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  pointer-events: none;
}

/* punto que late como "estás aquí" */
.map-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 255, 255, .7);
  animation: badge-ping 1.6s ease-out infinite;
}

@keyframes badge-ping {
  to { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--red);
  padding: 40px 16px;
  text-align: center;
}

footer p {
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0;
}

.socials a {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  transition: background .2s, transform .2s;
}

.socials a:hover { background: rgba(255, 255, 255, .28); transform: translateY(-3px); }

.socials svg { width: 22px; height: 22px; fill: currentColor; }

footer small { color: rgba(255, 255, 255, .7); font-size: .75rem; }

/* ---------- PRODUCTOS (carrusel) ---------- */
.showcase {
  background: #0f0f10;
  padding: 72px 0 24px;
  text-align: center;
  overflow: hidden;
}

.showcase h2 {
  font-family: 'Anton', Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  text-transform: uppercase;
  line-height: 1;
  margin: 10px 16px 0;
}

/* carrusel deslizable: se arrastra con el dedo, cada tarjeta se acomoda (snap)
   y el JS lo hace avanzar de a una prenda */
.reel {
  margin-top: 36px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  padding: 4px 24px 8px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.reel::-webkit-scrollbar { display: none; }

/* el JS duplica los productos para que el bucle sea infinito */
.reel-track {
  position: relative;
  display: flex;
  width: max-content;
}

.product {
  position: relative;
  flex: none;
  width: clamp(170px, 20vw, 250px);
  margin-right: 16px;
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  background: #e9e9ea;
}

.product img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s;
}

.product:hover img { transform: scale(1.05); }

/* fotos donde la prenda llena todo el ancho (ej. chaqueta): se aleja un poco
   y el borde se rellena con el color de fondo de la foto (--bg) */
.product--fit { background: var(--bg, #e9e9ea); }
.product--fit img { transform: scale(.86); }
.product--fit:hover img { transform: scale(.9); }

.product figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 32px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .72));
  text-align: left;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.reel-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
}

.reel-btn:hover { background: var(--red); border-color: var(--red); }
.reel-btn:active { transform: scale(.94); }
.reel-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* barra de progreso del avance automático (solo PC, ver abajo) */
.reel-status { display: none; }

/* ---------- Carrusel en PC / laptop ---------- */
@media (min-width: 761px) {
  .reel { padding-top: 16px; }

  .reel-controls { align-items: center; gap: 20px; }

  .reel-status {
    display: flex;
    align-items: center;
  }

  .reel-progress {
    display: block;
    width: 100px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, .15);
    overflow: hidden;
  }

  .reel-progress i {
    display: block;
    height: 100%;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 80ms linear;
  }

  .product {
    transition: transform .35s ease, box-shadow .35s ease;
  }

  .product figcaption::before {
    content: "";
    display: block;
    width: 22px;
    height: 3px;
    margin-bottom: 8px;
    border-radius: 3px;
    background: var(--red);
    transition: width .35s ease;
  }

  .product-sub {
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: none;
    color: rgba(255, 255, 255, .85);
    transition: max-height .35s ease, opacity .35s ease, margin-top .35s ease;
  }
}

/* efectos al pasar el mouse: solo en equipos con mouse */
@media (min-width: 761px) and (hover: hover) {
  .product:hover {
    transform: translateY(-10px);
    box-shadow: 0 26px 44px rgba(0, 0, 0, .55), 0 0 0 2px var(--red);
  }

  .product:hover figcaption::before { width: 48px; }

  .product:hover .product-sub {
    max-height: 24px;
    opacity: 1;
    margin-top: 4px;
  }
}

.showcase .note {
  margin: 28px 16px 0;
  color: rgba(255, 255, 255, .55);
  font-size: .85rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 760px) {
  .hero > .hero-photo { background-image: url(../img/hero-sm.jpg); background-position: 40% center; }
  /* tablet: tarjetas medianas, se asoma la siguiente */
  .reel { padding-inline: 16px; scroll-padding-inline: 16px; }
  .product { width: 250px; margin-right: 12px; border-radius: 12px; }
  .location-inner { grid-template-columns: 1fr; text-align: center; }
  .info-list { text-align: left; max-width: 380px; margin: 0 auto; }
  .map-badge { font-size: .68rem; }
  .buttons { justify-content: center; }
  .unit { border-radius: 12px; }
}

/* celular: una sola prenda centrada. Ancho = pantalla - 2×32px y separación de 32px,
   así las prendas vecinas quedan justo fuera de la pantalla */
@media (max-width: 560px) {
  .reel {
    padding-inline: 32px;
    scroll-padding-inline: 0;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .product {
    width: calc(100vw - 64px);
    margin-right: 32px;
    border-radius: 14px;
    scroll-snap-align: center;
  }
  .product figcaption { font-size: .9rem; padding: 40px 16px 14px; }
}

@media (max-width: 480px) {
  .hero { padding: 32px 12px 72px; }
  .badge { font-size: .66rem; letter-spacing: .16em; padding: 7px 14px; }
  .logo { width: 92vw; margin: 18px 0 4px; }
  .headline { font-size: clamp(1.7rem, 9vw, 2.2rem); }
  .headline span { font-size: .6em; letter-spacing: .08em; margin-top: 4px; }
  .date { font-size: .85rem; line-height: 1.5; }
  .countdown { gap: 6px; margin-top: 26px; }
  .unit { padding: 12px 2px 10px; border-radius: 10px; }
  .num { font-size: clamp(2.2rem, 12vw, 3rem); }
  .label { font-size: .56rem; letter-spacing: .08em; margin-top: 6px; }
  .location { padding: 56px 16px; }
  .buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .map { aspect-ratio: 1 / 1; }
}

/* laptops: todo el hero entra en una pantalla, escalando con el alto disponible */
@media (min-width: 761px) and (max-height: 1000px) {
  .hero { padding-top: 28px; padding-bottom: 56px; }
  .logo { width: min(580px, 56vh); margin: 14px 0 4px; }
  .headline { font-size: min(4.2rem, 7vh); }
  .date { margin-top: 10px; }
  .countdown { margin-top: 3vh; width: min(820px, 100%); }
  .unit { padding: 2.2vh 4px 1.6vh; }
  .num { font-size: min(6.5rem, 11vh); }
  .label { margin-top: 4px; }
  .scroll-hint { bottom: 12px; }
}

/* celulares en horizontal o pantallas bajas */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { padding-top: 24px; padding-bottom: 24px; }
  .logo { width: min(320px, 50vw); margin: 10px 0 0; }
  .headline { font-size: 1.8rem; }
  .countdown { margin-top: 16px; width: min(560px, 100%); }
  .num { font-size: 2.6rem; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; opacity: 1 !important; }
}
