/* ============================================
   NICOLAI STORE - ESTILOS PRINCIPALES
   ============================================ */

/* ========== RESET Y CONFIGURACIÓN GENERAL ========== */
* {
  box-sizing: border-box;
}

/* ---- Scrollbar personalizado ---- */
html {
  scrollbar-width: thin;
  scrollbar-color: #ff8a00 #0e0e11;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0e0e11;
}

::-webkit-scrollbar-thumb {
  background: #ff8a00;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e67600;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0e0e11;
  color: #fff;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
header {
  background: #08080f;
  padding: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Fondo con brillo radial naranja en la parte superior */
.header-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% -10%, rgba(255, 138, 0, 0.18) 0%, transparent 70%),
    linear-gradient(160deg, #0a0a12 0%, #08080f 40%, #050508 100%);
  pointer-events: none;
  z-index: 0;
}


/* Efecto scanline sutil (CRT) */
.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.07) 3px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 0;
}

/* Línea inferior naranja con shimmer deslizante */
.header-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 138, 0, 0.4);
  overflow: hidden;
  z-index: 3;
}

.header-border-bottom::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ff8a00, rgba(255,255,255,0.7), #ff8a00, transparent);
  animation: headerShimmer 3.5s ease-in-out infinite;
}

@keyframes headerShimmer {
  0%   { left: -60%; }
  100% { left: 160%; }
}

/* Canvas de partículas flotantes */
#headerCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Esquinas HUD en las 4 puntas */
.hud-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  z-index: 2;
  pointer-events: none;
  opacity: 0.5;
}
.hud-tl { top: 14px;    left: 14px;  border-top: 2px solid #ff8a00;    border-left: 2px solid #ff8a00; }
.hud-tr { top: 14px;    right: 14px; border-top: 2px solid #ff8a00;    border-right: 2px solid #ff8a00; }
.hud-bl { bottom: 14px; left: 14px;  border-bottom: 2px solid #ff8a00; border-left: 2px solid #ff8a00; }
.hud-br { bottom: 14px; right: 14px; border-bottom: 2px solid #ff8a00; border-right: 2px solid #ff8a00; }

.header-container {
  max-width: 1400px;
  margin: auto;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

/* Logo y Título */
.logo-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: dropIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

/* Anillo cónico giratorio alrededor del logo */
.logo-ring-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff8500 0deg 80deg,
    rgba(255, 133, 0, 0.08) 80deg 170deg,
    #ff8500 170deg 215deg,
    rgba(255, 133, 0, 0.06) 215deg 330deg,
    #ff8500 330deg 360deg
  );
  animation: ringRotate 5s linear infinite;
  pointer-events: none;
  z-index: 1;
}

/* Máscara interior oscura que crea el efecto de anillo */
.logo-ring-inner {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  background: #08080f;
  z-index: 2;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.site-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 138, 0, 0.45));
  position: relative;
  z-index: 3;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

h1 {
  margin: 0;
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 5px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 138, 0, 0.5), 3px 3px 0 rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.6s ease 0.25s both;
}

h1 span {
  color: #ff8a00;
}

/* Texto japonés bajo el nombre de la tienda */
.store-tagline-jp {
  font-size: 0.7rem;
  color: rgba(255, 138, 0, 0.6);
  letter-spacing: 6px;
  font-weight: 400;
  margin-top: -4px;
  animation: fadeUp 0.6s ease 0.35s both;
}

/* Badges HUD angulares */
.subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
  animation: fadeUp 0.6s ease 0.45s both;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.store-badge.badge-orange {
  background: rgba(255, 138, 0, 0.1);
  border: 1px solid rgba(255, 138, 0, 0.45);
  color: #ff8a00;
}

.store-badge.badge-white {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ccc;
}

/* Divisor entre badges y redes */
.header-divider {
  width: 50%;
  max-width: 280px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 0, 0.45), transparent);
  margin: 6px auto;
  animation: fadeUp 0.6s ease 0.5s both;
}

/* Animaciones de entrada */
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Badges (mantenidos por compatibilidad) */
.info-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 138, 0, 0.08);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ff8a00;
  border: 1px solid rgba(255, 138, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s;
}

.badge:hover {
  background: rgba(255, 138, 0, 0.18);
  transform: translateY(-2px);
}

/* ========== BANNER CARRUSEL ========== */
#banner {
  padding: 30px 20px 0;
  max-width: 1400px;
  margin: 0 auto;
}

.banner-container {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  border: 3px solid rgba(0, 0, 0, 0.2);
  height: 380px;
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.banner-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay del banner */
.banner-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 30px;
  color: white;
  z-index: 2;
}

.banner-text {
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.banner-subtext {
  font-size: 1rem;
  margin-top: 5px;
  opacity: 0.9;
}

/* Controles del carrusel */
.banner-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  transform: translateY(-50%);
  z-index: 3;
}

.banner-btn {
  background: rgba(255, 138, 0, 0.8);
  border: none;
  color: #111;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}

.banner-btn:hover {
  background: rgba(255, 138, 0, 1);
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(255, 138, 0, 0.5);
}

.banner-btn:active {
  transform: scale(0.95);
}

/* Indicadores (dots) */
.banner-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.banner-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 138, 0, 0.8);
  cursor: pointer;
  transition: all 0.3s;
}

.banner-dot.active {
  background: #ff8a00;
  width: 30px;
  border-radius: 10px;
}

.banner-dot:hover {
  background: rgba(255, 138, 0, 0.8);
  transform: scale(1.2);
}

/* ========== REDES SOCIALES ========== */
.socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.55s both;
}

.social-btn {
  position: relative;
  color: #999;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  padding: 9px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  font-size: 0.9rem;
  overflow: hidden;
}

/* Línea inferior deslizante al hacer hover */
.social-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--btn-color, #ff8a00);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.social-btn:hover {
  color: var(--btn-color, #ff8a00);
  border-color: var(--btn-color, #ff8a00);
  box-shadow: 0 4px 18px rgba(var(--btn-rgb, 255, 138, 0), 0.3);
  transform: translateY(-2px);
}

.social-btn:hover::after {
  transform: scaleX(1);
}

.social-btn i {
  font-size: 1.1rem;
}

.updated {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 20px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: inline-block;
}

/* ========== CATÁLOGO DE PRODUCTOS ========== */
section {
  max-width: 1400px;
  margin: 50px auto;
  padding: 0 20px;
}

/* ---- Encabezado del catálogo ---- */
.catalog-header {
  text-align: center;
  margin-bottom: 40px;
}

.catalog-eyebrow {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  color: #ff8a00;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.catalog-title {
  font-family: 'Bebas Neue', 'Poppins', sans-serif;
  font-size: clamp(40px, 6vw, 70px);
  font-weight: 400;
  color: #fff;
  margin: 6px 0 30px;
  letter-spacing: 3px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(255, 138, 0, 0.5), 3px 3px 0 rgba(0, 0, 0, 0.5);
  text-transform: uppercase;
}

/* ---- Filtros (estado y tags) ---- */
.catalog-filters,
.catalog-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.catalog-tags {
  margin-top: 12px;
  /* Oculto por ahora: filtro por marca/origen es funcionalidad futura (figuras de marcas chinas) */
  display: none;
}

/* ---- Franja de subastas semanales ---- */
.auction-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #1a1a1f;
  border-top: 2px solid #ff8a00;
  border-bottom: 2px solid #ff8a00;
  color: #ff8a00;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: 0.5px;
  padding: 14px 20px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.auction-banner i {
  font-size: 1.1rem;
}

.auction-banner:hover {
  background: #ff8a00;
  color: #0e0e11;
}

.filter-btn,
.tag-btn {
  background: #1a1a1f;
  color: #ccc;
  border: 1px solid #2a2a2a;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.2s;
}

.filter-btn:hover,
.tag-btn:hover {
  border-color: #ff8a00;
  color: #ff8a00;
  transform: translateY(-2px);
}

.filter-btn.active,
.tag-btn.active {
  background: #ff8a00;
  color: #14141a;
  border-color: #ff8a00;
}

.tag-btn {
  padding: 8px 18px;
  font-size: 0.8rem;
}

/* Tarjetas ocultas por el filtro activo */
.card--hidden {
  display: none !important;
}

/* Animación de entrada al aplicar un filtro o al cargar la página */
@keyframes cardPopIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card--anim {
  animation: cardPopIn 0.45s ease both;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* ========== TARJETAS DE PRODUCTO ========== */
.card {
  background: #1a1a1f;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s, box-shadow 0.35s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(255, 138, 0, 0.3);
}

.card-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #0e0e11;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* ---- Indicador de video disponible ---- */
.card[data-video]:not([data-video=""]) .card-image::after {
  content: "\f144";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 17, 0.85);
  border: 2px solid #ff8a00;
  color: #ff8a00;
  border-radius: 50%;
  font-size: 1rem;
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s;
}

.card[data-video]:not([data-video=""]):hover .card-image::after {
  transform: scale(1.12);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.05);
}

/* ---- Tarjeta vendida ---- */
.card--sold {
  position: relative;
  opacity: 0.65;
  cursor: default;
}

.card--sold::before {
  content: "VENDIDO";
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%) rotate(-12deg);
  background: rgba(220, 38, 38, 0.88);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 6px;
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 5;
}

.card.card--sold:hover {
  transform: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.card.card--sold:hover img {
  transform: none;
}

.btn-wsp--sold {
  opacity: 0.4 !important;
  background: #555 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* ---- Tarjeta en oferta ---- */
.card--offer {
  position: relative;
  border: 2px solid #ff4d4d;
  box-shadow: 0 0 16px rgba(255, 77, 77, 0.35);
}

.card.card--offer:hover {
  box-shadow: 0 16px 40px rgba(255, 77, 77, 0.45);
}

.card--offer::after {
  content: "🔥 OFERTA";
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #ff2d2d, #ff8a00);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1.5px;
  pointer-events: none;
  z-index: 5;
  animation: offerPulse 1.6s ease-in-out infinite;
}

@keyframes offerPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.5); }
  50%       { transform: scale(1.07); box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
}

/* Precio de oferta en la tarjeta: muestra el original tachado a la izquierda via CSS */
.price--offer {
  color: #ff4d4d;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price--offer::before {
  content: attr(data-original);
  text-decoration: line-through;
  color: #777;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Precio original tachado en el modal */
.price-original-big {
  text-decoration: line-through;
  color: #777;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 4px;
  display: none;
}

/* Precio de oferta en el modal */
.price-big--offer {
  color: #ff4d4d !important;
  text-shadow: 0 2px 10px rgba(255, 77, 77, 0.35) !important;
}

/* Badge de oferta dentro del modal */
.offer-badge-modal {
  display: inline-block;
  background: linear-gradient(135deg, #ff2d2d, #ff8a00);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 10px 0;
  font-size: 1.1rem;
  color: #fff;
  min-height: 2.4em;
}

.price {
  color: #ff8a00;
  font-weight: 700;
  margin: 6px 0;
  font-size: 1.3rem;
}

.stock {
  font-size: 0.85rem;
  color: #ffb347;
  margin-bottom: 15px;
}

/* ========== BOTONES ========== */
.btn-group {
  margin-top: auto;
}

.btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  width: 100%;
}

.btn-wsp {
  background: #ff8a00;
  color: #111;
  margin-bottom: 8px;
}

.btn-wsp:hover {
  background: #ff9a1a;
  transform: translateY(-2px);
}

.btn-desc {
  border: 1px solid #ff8a00;
  color: #ff8a00;
  background: none;
}

.btn-desc:hover {
  background: rgba(255, 138, 0, 0.1);
}

/* ========== MODAL ========== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1f 0%, #252530 100%);
  color: #fff;
  padding: 0;
  border-radius: 24px;
  max-width: 1100px;
  width: 100%;
  animation: fadeUp 0.4s ease;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 138, 0, 0.2);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ========== MODAL HEADER ========== */
.modal-header {
  background: linear-gradient(135deg, #ff8a00, #e67600);
  padding: 25px 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(255, 138, 0, 0.3);
}

.modal-header h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #111;
  font-weight: 700;
}

.close-btn {
  background: rgba(0, 0, 0, 0.2);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  color: #111;
  font-size: 1.5rem;
  font-weight: bold;
}

.close-btn:hover {
  background: rgba(0, 0, 0, 0.4);
  transform: rotate(90deg);
}

/* ========== MODAL BODY ========== */
.modal-body {
  padding: 35px;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.modal-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}

/* ========== MODAL - SECCIÓN DE IMÁGENES ========== */
.modal-main {
  background: #0e0e11;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 138, 0, 0.1);
}

.main-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1f 0%, #0e0e11 100%);
  border-radius: 12px;
  overflow: hidden;
}

.modal-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.modal-main img:hover {
  transform: scale(1.05);
}

/* La imagen principal usa lupa (desktop) o lightbox (click/tap): sin scale hover propio */
#mainImg {
  cursor: zoom-in;
}

#mainImg:hover {
  transform: none;
}

/* ---- Lupa de zoom (solo dispositivos con mouse/hover real) ---- */
.img-zoom-lens {
  display: none;
  position: absolute;
  width: 220px;
  height: 140px;
  border: 2px solid #ff8a00;
  background-repeat: no-repeat;
  background-color: #0e0e11;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 0 2000px rgba(0, 0, 0, 0.25);
  z-index: 6;
}

@media (hover: hover) and (pointer: fine) {
  .main-image-container:hover .img-zoom-lens.is-active {
    display: block;
  }
}

/* ---- Lightbox: imagen a pantalla completa con zoom nativo (pinch en mobile) ---- */
.img-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 7, 0.94);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  overflow: auto;
  touch-action: pinch-zoom;
}

.img-lightbox.active {
  display: flex;
}

.img-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
  object-fit: contain;
  touch-action: pinch-zoom;
}

.img-lightbox-close {
  position: fixed;
  top: 18px;
  right: 24px;
  background: rgba(255, 138, 0, 0.15);
  border: 1px solid #ff8a00;
  color: #ff8a00;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3001;
  transition: background 0.3s, color 0.3s;
}

.img-lightbox-close:hover {
  background: #ff8a00;
  color: #0e0e11;
}

/* ========== MINIATURAS ========== */
.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s;
  background: #1a1a1f;
}

.thumbs img:hover {
  border-color: #ff8a00;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 138, 0, 0.4);
}

.thumbs img.active {
  border-color: #ff8a00;
}

/* ========== VIDEO EMBEBIDO (YouTube) ========== */
.video-embed {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding-top: 56.25%; /* relación 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: #0e0e11;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== MODAL - INFORMACIÓN DEL PRODUCTO ========== */
.modal-info {
  display: flex;
  flex-direction: column;
}

.product-badge {
  display: inline-block;
  background: rgba(255, 138, 0, 0.15);
  color: #ff8a00;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  width: fit-content;
}

/* ========== ESPECIFICACIONES ========== */
.specs-section {
  background: rgba(255, 138, 0, 0.05);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #ff8a00;
  margin: 20px 0;
}

.specs-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ff8a00;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spec {
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
}

.spec i {
  color: #ff8a00;
  width: 20px;
}

/* ========== SECCIÓN DE PRECIO ========== */
.price-section {
  background: linear-gradient(135deg, rgba(255, 138, 0, 0.1) 0%, rgba(255, 138, 0, 0.05) 100%);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin: 25px 0;
  border: 2px dashed rgba(255, 138, 0, 0.3);
}

.price-label {
  font-size: 0.85rem;
  color: #aaa;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-big {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ff8a00;
  margin: 0;
  text-shadow: 0 2px 10px rgba(255, 138, 0, 0.3);
}

.stock-info {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #ffb347;
}

/* ========== BOTONES DEL MODAL ========== */
.buttons-section {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ========== RESPONSIVE ========== */

/* Tablets */
@media (max-width: 1024px) {
  .catalog {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Móviles */
@media (max-width: 768px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-body {
    padding: 25px;
  }
  
  .modal-header {
    padding: 20px 25px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .site-logo {
    width: 110px;
    height: 110px;
  }
  
}

@media (max-width: 640px) {
  .catalog {
    grid-template-columns: 1fr;
  }

  .catalog-title {
    font-size: 1.8rem;
  }

  .filter-btn,
  .tag-btn {
    padding: 8px 16px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2rem;
  }
  
  .banner-container {
    height: 250px;
  }
  
  .banner-text {
    font-size: 1.2rem;
  }
  
  .banner-subtext {
    font-size: 0.85rem;
  }
  
  .banner-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .banner-controls {
    padding: 0 10px;
  }
  
  .subtitle {
    font-size: 0.95rem;
    gap: 10px;
  }
  
  .info-badges {
    gap: 8px;
  }
  
  .badge {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

/* ========== FOOTER ========== */
footer {
  background: linear-gradient(135deg, #1a1a1f 0%, #0e0e11 100%);
  color: #fff;
  padding: 50px 20px 20px;
  margin-top: 80px;
  border-top: 3px solid #ff8a00;
  position: relative;
  overflow-x: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8a00, #e67600, #ff8a00);
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.footer-container {
  max-width: 1400px;
  margin: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 138, 0, 0.2);
}

.footer-section:last-child {
  border-right: none;
}

.footer-section h4 {
  color: #ff8a00;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section p {
  color: #aaa;
  line-height: 1.6;
  margin: 8px 0;
  font-size: 0.95rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a:hover {
  color: #ff8a00;
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.footer-social a {
  color: #fff;
  background: rgba(255, 138, 0, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: #ff8a00;
  color: #111;
  transform: translateY(-3px) rotate(5deg);
}

.footer-auction {
  color: #ff8a00 !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Línea divisoria */
.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 138, 0, 0.5), transparent);
  margin: 30px 0;
}

/* Footer bottom */
.footer-bottom {
  text-align: center;
  padding-top: 20px;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
  margin: 5px 0;
}

.developer-credit {
  color: #aaa;
  margin-top: 10px;
}

.developer-credit a {
  color: #ff8a00;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.developer-credit a:hover {
  color: #ff9a1a;
  text-decoration: underline;
}

.made-with-love {
  color: #888;
  font-size: 0.85rem;
  margin-top: 15px;
}

.made-with-love .heart {
  color: #ff8a00;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.1); }
  50% { transform: scale(1); }
}

/* ========================================
   ENTREGAS (integrado en el footer)
   ======================================== */
.footer-entregas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 0;
}

.entregas-info {
  padding: 0 20px;
  border-right: 1px solid rgba(255, 138, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.entregas-section-title {
  color: #ff8a00;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.entregas-section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, #ff8a00, transparent);
}

.entregas-delivery-card {
  background: #1a1a1f;
  border: 1px solid #2a2a2a;
  border-left: 4px solid #ff8a00;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.entregas-delivery-card:hover {
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(255, 138, 0, 0.2);
}

.entregas-delivery-type {
  font-size: 11px;
  color: #ff8a00;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.entregas-delivery-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.entregas-delivery-detail {
  font-size: 13px;
  color: #aaa;
  line-height: 1.6;
  margin: 0;
}

.entregas-delivery-detail strong {
  color: #ff8a00;
}

.entregas-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 138, 0, 0.1);
  color: #ff8a00;
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  align-self: flex-start;
  border: 1px solid rgba(255, 138, 0, 0.45);
  letter-spacing: 0.3px;
}


.entregas-map-side {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.entregas-map-title {
  color: #ff8a00;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-frame-container {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #2a2a2a;
  position: relative;
  height: 260px;
}

.map-frame-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(20%) contrast(1.1);
}

.map-pin-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff8a00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
  pointer-events: none;
}

.entregas-location {
  background: #1a1a1f;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #2a2a2a;
  font-style: normal;
}

.entregas-location i {
  font-size: 1.2rem;
  color: #ff8a00;
  flex-shrink: 0;
}

.entregas-location div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.entregas-location strong {
  font-size: 14px;
  color: #fff;
}

.entregas-location span {
  font-size: 11px;
  color: #888;
}

/* --- Responsive footer completo --- */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-section {
    border-right: none;
    border-bottom: 1px solid rgba(255, 138, 0, 0.2);
    padding: 0 0 20px;
    margin-bottom: 20px;
  }

  .footer-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .footer-entregas {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .entregas-info {
    border-right: none;
    border-bottom: 1px solid rgba(255, 138, 0, 0.2);
    padding: 0 0 24px;
  }

  .entregas-map-side {
    padding: 0;
  }
}

