:root {
  --brand:        #e63030;
  --brand-hover:  #f04545;
  --brand-dim:    rgba(230, 48, 48, 0.18);
  --dark:         #050505;   /* negro puro cool */
  --gray:         #111111;
  --warm:         #0f0f0f;
  --light:        #ffffff;

  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-brand: 0 0 28px rgba(230, 48, 48, 0.22);

  --border-light: rgba(230, 48, 48, 0.12);
  --border-hover: rgba(230, 48, 48, 0.4);
}


/* ================================
   ANIMACIONES
   ================================ */

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(56px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.hero-animate {
  opacity: 0;
  animation: slideUpFade 0.7s ease forwards;
}
.hero-animate-1 { animation-delay: 0.1s;  }
.hero-animate-2 { animation-delay: 0.25s; }
.hero-animate-3 { animation-delay: 0.4s;  }
.hero-animate-4 { animation-delay: 0.58s; }


/* ================================
   BASE
   ================================ */

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.font-sync { font-family: "Syncopate", sans-serif; }


/* ================================
   BACKGROUNDS
   ================================ */

.bg-street {
  background-image:
    linear-gradient(
      to bottom,
      rgba(10, 5, 0, 0.72) 0%,
      rgba(10, 5, 0, 1) 100%
    ),
    url("Img/Banner.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.bg-street::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% -5%,
    rgba(230, 48, 48, 0.26) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.bg-street > * { position: relative; z-index: 1; }


/* ================================
   HOVERS
   ================================ */

.hover-lift {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hover-lift:hover {
  transform: translateY(-6px) scale(1.015);
}

.glow-blue {
  box-shadow: 0 6px 24px rgba(230, 48, 48, 0.45);
}


/* ================================
   MARQUEE — MUNDIAL 2026
   ================================ */

.mundial-marquee {
  overflow: hidden;
  width: 100%;
  padding: 14px 0;
  background: var(--brand);
  position: relative;
  z-index: 10;
}

.mundial-marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marqueeScroll 28s linear infinite;
}

.mundial-marquee-track:hover {
  animation-play-state: paused;
}

.mundial-marquee-item {
  font-family: "Syncopate", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.mundial-marquee-item::after {
  content: "🏆";
  font-size: 13px;
}

/* ================================
   CATÁLOGO — GRID DE PRODUCTOS
   ================================ */
 
#productos-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-top: 1.5rem;
}
 
@media (min-width: 640px) {
  #productos-container { gap: 1rem; }
}
 
@media (min-width: 1024px) {
  #productos-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}
 
@media (min-width: 1440px) {
  #productos-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}
 
 
/* ================================
   CARD
   ================================ */
 
.card {
  background: var(--gray);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border: 1px solid rgba(230, 48, 48, 0.06);
}
 
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(230,48,48,0.15);
}
 
.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}
 
.info {
  padding: 0.55rem 0.65rem 0.7rem;
}
 
.info h2 {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.18rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
 
.info p {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
 
@media (min-width: 768px) {
  .info h2 { font-size: 0.78rem; }
  .info p  { font-size: 1rem; }
}
 
@media (min-width: 768px) {
  .info h2 { font-size: 0.78rem; }
  .info p  { font-size: 1rem; }
}
 
 
/* ================================
   DESCUENTOS — CARD
   ================================ */
 
/* Wrapper necesario para posicionar el badge sobre la imagen */
.card-img-wrap {
  position: relative;
  overflow: hidden;
}
 
/* Badge "-XX% OFF" sobre la foto */
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 2;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(230, 48, 48, 0.5);
}
 
/* ── Overlay AGOTADO ── */
.card-sold-out {
  opacity: 0.6;
}
 
.card-agotado {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}
 
.card-agotado span {
  font-family: "Syncopate", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  padding: 7px 14px;
  border-radius: 4px;
}
 
 
/* ================================
   TOAST — NOTIFICACIÓN
   ================================ */
 
.toast {
  position: fixed;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: #161616;
  border: 1px solid var(--brand);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 13px 22px;
  border-radius: 12px;
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  max-width: 88vw;
  text-align: center;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(230, 48, 48, 0.15);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
 
.toast::before {
  content: "⚠\00a0";
  color: var(--brand);
}
 
.toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
 
@media (min-width: 768px) {
  .toast { bottom: 32px; }
}
 
 
/* ================================
   BOTÓN MODAL — ESTADO AGOTADO
   ================================ */
 
.btn-agotado {
  background: linear-gradient(135deg, #1a1a1a, #252525) !important;
  box-shadow: none !important;
  color: rgba(255, 255, 255, 0.55) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
  letter-spacing: 0.08em;
}
 
.btn-agotado:hover {
  opacity: 1 !important;
  transform: none !important;
}
 
 
 
/* Contenedor de precio cuando hay descuento */
.precios {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
 
/* Precio original tachado */
.precio-tachado {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  font-weight: 400;
}
 
/* Precio con descuento (acento de marca) */
.precio-oferta {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand);
}
 
 
/* ================================
   DESCUENTOS — MODAL
   ================================ */
 
/* Precio original tachado en el modal */
.precio-tachado-modal {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: line-through;
  font-weight: 400;
  margin-right: 2px;
}
 
/* Precio con descuento en el modal */
.precio-nuevo-modal {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
}
 
/* Badge "-XX% OFF" inline en el precio del modal */
.modal-badge-off {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1.4;
}
 
@media (min-width: 768px) {
  .precio-nuevo-modal { font-size: 1.25rem; }
}
 
 
/* ================================
   UTILIDADES
   ================================ */
 
.talla {
  background: #333;
  padding: 5px 10px;
  border-radius: 4px;
}
 
 
/* ================================
   BOTÓN VER MÁS
   ================================ */
 
.ver-mas-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
}
 
.btn-ver-mas {
  background: transparent;
  border: 1.5px solid rgba(230, 48, 48, 0.35);
  color: rgba(255, 255, 255, 0.75);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 100px;
  cursor: pointer;
  width: auto;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.15s;
}
 
.btn-ver-mas:hover {
  background: rgba(230, 48, 48, 0.08);
  border-color: var(--brand);
  color: #fff;
}
 
.btn-ver-mas:active {
  transform: scale(0.97);
}
 
 
/* ================================
   MODAL — OVERLAY
   ================================ */
 
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 1000;
  padding: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: overlayIn 0.22s ease;
}
 
.hidden { display: none !important; }
 
 
/* ================================
   MODAL — CONTENEDOR
   ================================ */
 
.modal-content {
  background: #0e0e0e;
  width: 100%;
  max-width: 100%;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid rgba(230, 48, 48, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 94vh;
  position: relative;
  animation: sheetUp 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
 
 
/* ================================
   DRAG HANDLE
   ================================ */
 
.modal-handle {
  flex-shrink: 0;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.modal-handle::after {
  content: "";
  width: 36px;
  height: 4px;
  background: #1a1a1a;
  border-radius: 4px;
}
 
 
/* ================================
   GALERÍA MODAL
   ================================ */
 
.modal-gallery {
  flex-shrink: 0;
  width: 100%;
  height: 42vh;
  min-height: 180px;
  max-height: 320px;
  background: #090909;
  overflow: hidden;
  position: relative;
}
 
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* imagen completa sin recortar */
  display: block;
}
 
/* Dots indicadores */
.modal-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 5;
}
 
.modal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.25s, transform 0.25s;
}
 
.modal-dot.active {
  background: var(--brand);
  transform: scale(1.4);
}
 
 
/* ================================
   MODAL INFO
   ================================ */
 
.modal-info {
  padding: 1rem 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
 
.modal-info h2 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
 
#modal-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}
 
#modal-description {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
  margin: 0;
}
 
.modal-info::-webkit-scrollbar { width: 3px; }
.modal-info::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 10px;
}
 
 
/* ================================
   BOTÓN CERRAR
   ================================ */
 
#close-modal {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 18px;
  cursor: pointer;
  z-index: 20;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(230, 48, 48, 0.1);
  border-radius: 50%;
  color: #fff;
  line-height: 1;
  user-select: none;
  transition: background 0.2s;
}
 
#close-modal:hover {
  background: rgba(230, 48, 48, 0.28);
}
 
 
/* ================================
   BOTÓN CTA MODAL
   ================================ */
 
#modal-button {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 14px 16px;
  border: none;
  background: linear-gradient(135deg, var(--brand), #ff2e2e);
  color: white;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 12px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(230, 48, 48, 0.4);
}
 
#modal-button:hover  { opacity: 0.88; }
#modal-button:active { transform: scale(0.98); }
 
 
/* ================================
   VARIANTES
   ================================ */
 
.variantes-header {
  margin-bottom: 0.25rem;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 500;
}
 
.grupo-color { margin-bottom: 0.85rem; }
 
.color-title {
  margin-bottom: 0.4rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}
 
.tallas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
 
.variante-btn {
  min-width: unset;
  width: 100%;
  height: 56px;
  padding: 5px 4px;
  background: #161616;
  border: 1.5px solid #1f1f1f;
  border-radius: 9px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: "Space Grotesk", sans-serif;
  transition: border-color 0.18s, background 0.18s;
}
 
.variante-btn:not(:disabled):hover {
  border-color: var(--brand);
  background: #180404;
}
 
.variante-btn.selected {
  border-color: var(--brand) !important;
  background: #1f0606 !important;
}
 
.variante-btn.agotado {
  opacity: 0.28;
  cursor: not-allowed;
}
 
.talla-name {
  font-size: 14px;
  font-weight: 700;
  display: block;
}
 
.stock-text {
  font-size: 9px;
  color: rgba(255,255,255,0.38);
  font-weight: 400;
  display: block;
}
 
.variante-btn.selected .stock-text { color: #ff8080; }
 
 
/* ================================
   DESKTOP (≥ 768px)
   ================================ */
 
@media (min-width: 768px) {
  .modal {
    align-items: center;
    padding: 1.5rem;
  }
 
  .modal-content {
    max-width: 980px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: min(88vh, 700px);
    max-height: 88vh;
    flex-direction: unset;
    animation: modalPop 0.28s ease;
  }
 
  .modal-handle { display: none; }
 
  .modal-gallery {
    height: 100%;
    min-height: unset;
    max-height: unset;
  }
 
  /* En desktop la imagen puede cubrir la columna completa */
  .modal-gallery img { object-fit: cover; }
 
  .modal-info {
    padding: 2rem 1.75rem 1.5rem;
    gap: 0.75rem;
    height: 100%;
    max-height: unset;
    overflow-y: auto;
  }
 
  .modal-info h2    { font-size: 1.65rem; }
  #modal-price      { font-size: 1.25rem; }
  #modal-description { font-size: 0.88rem; }
  .variante-btn     { height: 62px; }
}
 
 
/* ================================
   ENTREGAS — SECCIÓN
   ================================ */
 
.deliveries-section {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at top, rgba(230, 48, 48, 0.14), transparent 45%),
    var(--dark);
  overflow: hidden;
  position: relative;
}
 
 
/* ================================
   SWIPER ENTREGAS
   ================================ */
 
.deliveries-swiper {
  width: 100%;
  overflow: visible;
  position: relative;
}
 
.deliveries-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
  will-change: transform;
}
 
/* Fades laterales */
.deliveries-swiper::before,
.deliveries-swiper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 140px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}
 
.deliveries-swiper::before {
  left: 0;
  background: linear-gradient(to right, var(--dark), transparent);
}
 
.deliveries-swiper::after {
  right: 0;
  background: linear-gradient(to left, var(--dark), transparent);
}
 
 
/* ================================
   DELIVERY CARD
   ================================ */
 
.delivery-card {
  width: 340px !important;
  height: 500px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--gray);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  transition: transform 0.35s ease, border-color 0.35s ease;
}
 
.delivery-card:hover {
  will-change: transform;
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-soft), var(--shadow-brand);
}
 
.delivery-card:not(:hover) { will-change: auto; }
 
.delivery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
 
.delivery-card:hover img {
  will-change: transform;
  transform: scale(1.04);
}
 
.delivery-card:not(:hover) img { will-change: auto; }
 
 
/* ── Skeleton para carga inicial ── */
.delivery-skeleton {
  background: linear-gradient(
    90deg,
    #111111 25%,
    #2a1800 50%,
    #111111 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.card.delivery-skeleton {
  min-height: 420px;
  cursor: default;
  border-color: rgba(230, 48, 48, 0.08);
}

.card.delivery-skeleton:hover {
  transform: none;
  box-shadow: none;
}


/* ================================
   DELIVERY OVERLAY & INFO
   ================================ */
 
.delivery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.15) 45%,
    transparent 70%
  );
  pointer-events: none;
}
 
.delivery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 28px;
  z-index: 2;
}
 
.location {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
 
.status {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
 
 
/* ================================
   FOOTER SOCIALS
   ================================ */
 
.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 40px;
}
 
.social-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(230, 48, 48, 0.06);
  border: 1px solid rgba(230, 48, 48, 0.15);
  color: #fff;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
 
.social-icon:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(230, 48, 48, 0.14);
  border-color: rgba(230, 48, 48, 0.45);
  box-shadow: 0 8px 24px rgba(230, 48, 48, 0.22);
}
 
.social-icon svg { pointer-events: none; }
 
 
/* ================================
   RESPONSIVE ENTREGAS
   ================================ */
 
@media (max-width: 768px) {
  .deliveries-section { padding: 90px 0; }
 
  .delivery-card {
    width: 280px !important;
    height: 420px;
    border-radius: 22px;
  }
 
  .delivery-info { padding: 22px; }
  .location { font-size: 16px; }
 
  .deliveries-swiper::before,
  .deliveries-swiper::after { width: 70px; }
}