/* ======= RESET Y FUENTES ======= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #ff1616 #181818;
}
html, body {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #000;
  color: #fff;
  min-height: 100vh;
  width: 100%;              /* iOS-safe: evita 100vw */
  max-width: 100%;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ======= SCROLLBAR ROJO ELEGANTE ======= */
::-webkit-scrollbar {
  width: 8px;
  background: #181818;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #ff1616 50%, #b10000 100%);
  border-radius: 10px;
  border: 2px solid #181818;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #d10000 70%, #ff1616 100%);
}

/* ======= BANNER 3 CAPAS ======= */
.banner-3capas {
  width: 100%;              /* iOS-safe */
  min-height: 180px;
  height: 22vw;
  max-height: 240px;
  position: relative;
  background: #000;
  overflow: hidden;
  box-shadow: 0 4px 32px #0006;
}
.banner-capa {
  position: absolute;
  width: 100%;              /* iOS-safe */
  height: 100%;
  left: 0; 
  bottom: 0;
  object-fit: cover;
  object-position: 50% 65%;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s, filter 0.4s;
  will-change: opacity, filter;
  -webkit-backface-visibility: hidden; /* reduce parpadeos en iOS */
}
.capa1 { z-index: 1; filter: brightness(0.92);}
.capa2 { z-index: 2; opacity: 0;}
.capa3 { z-index: 3; opacity: 0;}

/* ======= BADGE HONDA ======= */
.redix-badge-banner {
  position: absolute;
  top: 18px;
  left: 22px;
  z-index: 10;
  background: linear-gradient(90deg, #ff3225 65%, #ae0700 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.17rem;
  padding: 0 38px 0 22px;
  height: 56px;
  line-height: 56px;
  border-radius: 70px 70px 70px 0;
  box-shadow: 0 2px 12px #0007;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px #000a;
  min-width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-transform: uppercase;
  text-align: center;
  filter: drop-shadow(0 2px 8px #ae070088);
}

/* ======= ANIMACIONES ENTRADA CAPAS ======= */
@keyframes animCapa2In {
  0% { opacity: 0; transform: translateX(-120px);}
  80% { opacity: 1; transform: translateX(6px);}
  100% { opacity: 1; transform: translateX(0);}
}
.anim-capa2 {
  animation: animCapa2In 0.46s cubic-bezier(.70,0,.58,1.01) .05s forwards;
}
@keyframes animCapa3In {
  0% { opacity: 0; transform: translateX(-60px) scale(.97);}
  65% { opacity: 1; transform: translateX(6px) scale(1);}
  100% { opacity: 1; transform: translateX(0) scale(1);}
}
.anim-capa3 {
  animation: animCapa3In 1.1s cubic-bezier(.69,.13,.42,1.01) .70s forwards;
}

/* ======= SEPARADOR ANIMADO BANNER ======= */
.banner-separator-anim {
  height: 1.5px;
  width: 0;
  background: #4b4b4b;
  opacity: 0.29;
  margin: 0 auto;
  border-radius: 1px;
  transition: width 1.5s cubic-bezier(.72,-0.16,.39,1.2), opacity 0.3s;
  max-width: 100%;
  will-change: width;
}
.banner-separator-anim.show {
  width: 100%;              /* iOS-safe */
  opacity: 1;
}

/* ======= CABECERA/TÍTULO MOTO ======= */
.modelo-titulo-section {
  text-align: center;
  background: none;
  margin: 0;
  padding: 16px 0 2px 0;
  position: relative;
  z-index: 3;
}
.catalogo-disclaimer {
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: .09em;
  color: #ffffff32;
  margin: 14px 0 2px 0;
  text-transform: uppercase;
  font-style: italic;
  font-family: 'Montserrat', sans-serif;
}
.titulo-con-linea {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 7px 0;
  gap: 16px;
}
.titulo-con-linea .linea {
  flex: 1;
  height: 2px;
  border-radius: 2px;
  opacity: 0.17;
  min-width: 22px;
  max-width: 55px;
  background: linear-gradient(90deg,#fff0 0%, #fff 68%, #fff 100%);
}
.titulo-con-linea .linea:last-child {
  background: linear-gradient(270deg,#fff0 0%, #fff 68%, #fff 100%);
}
.titulo-moto-xl {
  font-size: 2.22rem;
  font-weight: 800;
  color: #fff;
  margin: 0 8px;
  line-height: 1.12em;
  letter-spacing: .008em;
  white-space: pre-line;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
  text-shadow: 0 2px 6px #0008;
}

/* ======= DESCRIPCIÓN Y LÍNEA ANIMADA ======= */
.catalogo-desc-general {
  color: #fff;
  font-size: 1.08rem;
  font-weight: 400;
  margin: 14px 0 12px 0;
  text-align: center;
  white-space: nowrap;
  overflow-x: auto;
  max-width: 98vw; /* ok porque es contenido acotado */
  display: block;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
  filter: drop-shadow(0 1px 2px #0007);
  -webkit-overflow-scrolling: touch; /* iOS inercia */
}
.catalogo-desc-general .mayus-modelo {
  font-style: italic;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-family: 'Montserrat', sans-serif;
  color: #ff3225;
  filter: drop-shadow(0 2px 8px #0009);
}

/* Línea animada bajo la descripción */
.linea-animada {
  height: 1.5px;
  width: 0;
  background: linear-gradient(90deg, #4b4b4b 0%, #ff1616 100%);
  opacity: 0.19;
  margin: 13px auto 0 auto;
  border-radius: 1px;
  transition: width 1.1s cubic-bezier(.72,-0.16,.39,1.2), opacity 0.3s;
  will-change: width;
  max-width: 220px;
  box-shadow: 0 1px 5px #ff16162e;
}
.linea-animada.show {
  width: 180px;
  opacity: 1;
}

/* ======= GALERÍA Y LOADER BASE ======= */
/* OJO: esta clase .spinner puede chocar con la del embed.
   Si tu catálogo tiene su propio #catalogo-embed .spinner, esa es más específica.
   Dejamos esta como estilo genérico fuera del embed. */
.spinner {
  border: 4px solid #fff2;
  border-top: 4px solid #ff3225;
  border-radius: 50%;
  width: 34px; height: 34px;
  animation: spin 0.7s linear infinite;
  margin: 30px auto;
}
@keyframes spin {
  100% { transform: rotate(360deg);}
}

/* ======= BOTONES DE FILTRO ======= */
#catalogo-embed .filters button {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  background: #191919;
  color: #ff3225;
  padding: 8px 22px;
  margin: 4px 8px 4px 0;
  border-radius: 20px;
  box-shadow: 0 2px 8px #0005;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
#catalogo-embed .filters button.active,
#catalogo-embed .filters button:hover {
  background: linear-gradient(90deg, #ff3225 65%, #ae0700 100%);
  color: #fff;
  box-shadow: 0 2px 16px #ff322570;
}

/* ======= ELIMINA FLECHA (LEGADO) ======= */
.arrow-down { display: none !important; }

/* ======= FOOTER ======= */
footer {
  flex-shrink: 0;
  width: 100%;
  background: #0c0c0c;
  box-shadow: 0 -1px 24px #0006;
  color: #fff;
  font-size: 0.96rem;
  padding: 22px 0 12px 0;
  letter-spacing: .02em;
}

/* ======= MEDIA QUERIES - RESPONSIVE ======= */
@media (max-width: 900px) {
  .banner-3capas {
    min-height: 130px;
    height: 28vw;
    max-height: 180px;
  }
  .titulo-moto-xl { font-size: 1.38rem; }
}

@media (max-width: 700px) {
  .banner-3capas {
    min-height: 110px;
    height: 38vw;
    max-height: 155px;
  }
  .redix-badge-banner {
    top: 8px;
    left: 10px;
    font-size: 1rem;
    padding: 0 17px 0 10px;
    min-width: 60px;
    height: 32px;
    line-height: 32px;
    border-radius: 18px 18px 18px 0;
  }
  .titulo-moto-xl {
    font-size: 1.15rem;
    margin-bottom: 2px;
  }
  .catalogo-disclaimer { font-size: .79rem; }
  .catalogo-desc-general {
    font-size: .84rem;
    max-width: 96vw;
    white-space: normal;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .titulo-con-linea .linea {
    min-width: 10px;
    max-width: 28px;
    opacity: 0.13;
  }
  .linea-animada.show { width: 72px; }
}
@media (max-width: 480px) {
  .banner-3capas {
    min-height: 90px;
    height: 45vw;
    max-height: 110px;
  }
  .titulo-moto-xl { font-size: 0.95rem;}
  .catalogo-disclaimer { font-size: .71rem;}
  .catalogo-desc-general {
    font-size: .67rem;
    max-width: 99vw;
    margin-bottom: 2px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .titulo-con-linea .linea {
    min-width: 5px;
    max-width: 20px;
    opacity: 0.22;
  }
  .linea-animada.show {
    width: 22vw;
    min-width: 10px;
  }
}

main {
  padding-bottom: 54px; /* Ajusta según el espacio deseado */
}
@media (max-width: 700px) {
  main { padding-bottom: 32px; }
}

/* ======= Preferencias de movimiento (accesibilidad) ======= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
