/* =============== CATALOGO MATE.BIKE =============== */
body.modal-open {
  overflow: hidden;
  height: 100vh;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
}

/* Sección del título principal */
.catalogo-header {
  text-align: center;
  padding: 4rem 1rem 2rem;
}

.site-title {
  font-size: 3rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.5px;
}

/* Sección HERO interactivo */
.bike-hero-interactive {
  background: #f7f7f7;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.catalog-hero {
  padding: 8rem 1rem 5rem;
  background: #f9f9f9; /* Fondo ultra suave */
  text-align: center;
  position: relative;
}


.catalog-hero-bg {
  padding: 10rem 2rem 6rem;
  background: url('/images/catalogo.jpg') no-repeat center 40% / cover;
  background-attachment: fixed;
  background-size: 110% auto;

  text-align: center;
  color: white;
  position: relative;
}

.catalog-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* oscurece para dar más fuerza al texto */
  backdrop-filter: blur(4px);
}

.catalog-hero-content {
  position: relative;
  z-index: 1;
}

.catalog-title {
  font-size: 3.5rem;
  font-weight: 800;
}

.catalog-subtitle {
  margin-top: 1rem;
  font-size: 1.3rem;
}

/* Corrige la posición para que los hotspots no bajen */
.bike-hero-wrapper {
  position: relative;
  display: inline-block;
}

.bike-hero-img {
  width: 100%;
  max-width: 900px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.25));
  transform: scale(1.05) translateY(-30px); /* <-- NUEVO */
  transition: transform 0.3s ease;
}

.hotspot {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #0dc143;
  border-radius: 50%;
  animation: pulse 2s infinite;
  cursor: pointer;
  z-index: 5;
}

.hotspot-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.8);
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #111;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.hotspot:hover .hotspot-tooltip {
  opacity: 1;
}

/* Ajuste del detalle emergente */
.bike-detail-box {
  position: absolute;
  display: none;
  width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  padding: 0.8rem;
  z-index: 99;
  pointer-events: none;
  transform: translate(-50%, -130%); /* <-- MÁS CERCA del hotspot */
  transition: all 0.3s ease;

}
.bike-detail-box img {
  width: 100%;
  border-radius: 10px;
}

/* Grid de catálogo de bicicletas */
.bike-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  max-width: 1300px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.bike-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
  transition: all 0.4s ease;
}

.bike-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.1);
}

.bike-card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.bike-card:hover img {
  transform: scale(1.05);
}
.bike-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #222;
}

.bike-card button {
  background: #115CFA;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.bike-card button:hover {
  background: #003fb3;
}

.bike-card .buy-btn {
  background: #115CFA;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  background: linear-gradient(90deg, #ee0979, #ff6a00);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 105, 135, 0.5);
}

/* =========== RESPONSIVE AJUSTES =========== */

@media (max-width: 768px) {
  .site-title {
    font-size: 2.2rem;
  }

  .bike-catalog {
    gap: 2rem;
  }

  .bike-hero-wrapper {
    max-width: 95%;
  }

  .bike-card img {
    max-width: 260px;
  }
}



@media (max-width: 480px) {
  .bike-catalog {
    padding: 0 1rem;
  }

  .bike-card img {
    max-width: 220px;
  }

  .bike-detail-box {
    width: 180px;
  }

  
}
.bike-card {
  margin-left: auto;
  margin-right: auto;
}

/* ==== MODAL BASE ==== */
.accesorios-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s ease;
}

.accesorios-modal.hidden {
  display: none;
}

.accesorios-modal-content {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem 2rem 2.5rem;
  max-width: 1100px;
  width: 90%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-out;
}


/* ==== TÍTULOS ==== */
.accesorios-modal-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  text-align: center;
}
.accesorios-modal-content p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  text-align: center;
}

/* ==== GRID DE ACCESORIOS ==== */
.accesorios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.accesorio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  padding: 1.2rem 1rem;
  border-radius: 16px;
  background: #f9f9f9;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  min-height: 260px;
  max-width: 240px;
  margin: 0 auto;
}

.accesorio-card:hover {
  transform: translateY(-2px);
}
.accesorios-modal .btn:active {
  transform: scale(0.97);
}

.accesorio-card img {
  max-width: 90px;
  max-height: 70px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}
.accesorio-card h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0.5rem 0 0.2rem;
}
.accesorio-card p {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: auto;
}

/* Botón AGREGAR visualmente limpio */
.btn-agregar {
  margin-top: 1.2rem;
  padding: 0.6rem 1.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: white;
  background: #115CFA;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: auto;
  min-width: 120px;
  align-self: center;
}

.btn-agregar:hover {
  background-color: #003fb3;
  transform: scale(1.05);
}

/* En pantallas grandes evitamos que se estiren */
@media (min-width: 769px) {
  .accesorio-card {
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .btn-agregar {
    width: 100%;
  }
}


/* ==== BOTONES DE ACCIÓN ==== */
.accesorios-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem;
}
.accesorio-card img {
  width: 90px;
  max-height: 80px;
  object-fit: contain;
}

.accesorios-modal .btn {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
  transform: translateY(0);
}
/* Botón principal azul */
.btn-primary {
  background: #115CFA;
  color: white;
  border-color: #115CFA;
}
.btn-primary:hover {
  background: #003fb3;
  border-color: #003fb3;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 63, 179, 0.4);
}

/* Botón gris claro */
.btn-light {
  background: #f9f9f9;
  color: #111;
  border: 2px solid #ddd;
}
.btn-light:hover {
  background: #efefef;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Botón contorno oscuro */
.btn-outline-dark {
  background: white;
  color: #111;
  border: 2px solid #999;
}
.btn-outline-dark:hover {
  background: #111;
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


.btn-outline-dark {
  background: transparent;
  color: #111;
  border: 2px solid #999;
  transition: all 0.3s ease;
}

.btn-outline-dark:hover {
  background: #111;
  color: white;
  border-color: #111;
}
/* ==== CIERRE MODAL ==== */

.cerrar-modal {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.accesorios-modal:not(.hidden) .cerrar-modal {
  opacity: 1;
  transform: scale(1);
}
.cerrar-modal:hover {
  color: #ff3333;
  transform: scale(1.2);
}

.bike-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at center, #f0f2f5, #e1e3e6);
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.showcase-content {
  z-index: 2;
  max-width: 700px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out;
}

.showcase-title {
  font-size: 3rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.showcase-subtitle {
  margin-top: 1rem;
  font-size: 1.2rem;
  color: #444;
}

.showcase-btn {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: #115CFA;
  color: white;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.showcase-btn:hover {
  background: linear-gradient(90deg, #ee0979, #ff6a00);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(255, 105, 135, 0.4);
}

.showcase-image-wrapper {
  z-index: 1;
  max-width: 800px;
  width: 100%;
  animation: fadeIn 1s ease-out 0.2s both;
}

.showcase-bike {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}
.bike-hero-cover {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent; /* <- esto es lo que te faltaba */
}


.bike-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  /* filter: grayscale(1) brightness(0.75);*/
  z-index: 0;
  transition: filter 0.4s ease;
}

.bike-hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bike-hero-box {
  background: none;
  box-shadow: none;
  backdrop-filter: none;
}

.bike-hero-title, .bike-hero-subtitle {
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.bike-hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.bike-hero-subtitle {
  font-size: 1.2rem;
  color: #eee;
  margin-bottom: 2rem;
}

.bike-hero-btn {
  background: white;
  color: black;
  font-weight: 700;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.bike-card .buy-btn:hover {
   background: white;
  color: black;
  transition: all 0.3s ease;
  transform: scale(1.03); /* sutil */
  box-shadow: 0 6px 20px rgba(0, 63, 179, 0.25); /* azul suave */
}



.btn-modal {
  min-width: 260px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}
/* Bloquear scroll de fondo cuando modal está abierto */
body.modal-open {
  overflow: hidden;
  height: 100vh;
}

/* MODAL MOBILE AJUSTADO */
@media (max-width: 768px) {
  .bike-catalog {
    justify-content: center;
    grid-template-columns: 1fr;
  }

  .bike-card {
    margin: 0 auto;
    width: 100%;
    max-width: 360px;
  }
}
@media (max-width: 768px) {
  .accesorios-modal {
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .accesorios-modal-content {
    width: 100%;
    max-width: 480px;
    margin: auto;
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.5rem 1rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: modalZoomIn 0.3s ease-out;
    position: relative;
  }

  .cerrar-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    z-index: 10;
  }

  .accesorios-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .accesorio-card {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    text-align: center;
  }

  .accesorio-card img {
    width: 90px;
    object-fit: contain;
    margin-bottom: 0.5rem;
  }

  .accesorios-modal-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .accesorios-modal .btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    padding: 0.9rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }

  .btn-primary {
    background: #115CFA;
    color: white;
  }

  .btn-light {
    background: #f0f0f0;
    color: #111;
  }

  .btn-outline-dark {
    background: white;
    color: #111;
    border: 1px solid #999;
  }

  .btn-primary:hover {
    background: #003fb3;
  }

  .btn-outline-dark:hover {
    background: #111;
    color: white;
  }
}
@media (min-width: 769px) {
  .accesorios-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
  }
}

.bike-card .buy-btn.agotado {
  background-color: #999;
  cursor: not-allowed;
  font-weight: bold;
}

.bike-card .buy-btn.soon {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  cursor: wait;
  min-height: 2.5rem;
}


.stock-badge {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 999px;
  color: white;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.3s ease-out;
}
/* Estados */
.stock-badge.agotado {
  background: #999;
}

.stock-badge.soon {
  background: #000;
  color: #fff;
}

.stock-badge.ultimas {
  background: #fff;
  color: #000;
  font-weight: 800;
}

.bike-card .stock-badge {
  position: absolute;
}

.bike-card {
  position: relative;
  overflow: hidden;
}

.bike-card .stock-badge.agotado {
  background: #999;
}

.bike-card .stock-badge.soon {
  background: #f7c948;
  color: #000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes pulseTextChange {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}

.bike-card .buy-btn.animate-change {
  animation: pulseTextChange 0.3s ease-out;
}
.stock-badge.ultimas {
  background-color: #e53e3e;
}