/* =========================================================
   VARIABLES
========================================================= */

:root {
  --red:       #C8102E;
  --red-dark:  #a50d26;
  --dark:      #0d0d0d;
  --gray:      #f5f5f5;
  --text:      #111;
  --muted:     #666;
  --nav-h:     100px;
}

/* =========================================================
   RESET
========================================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  overflow-x: hidden;
  padding-top: var(--nav-h); /* ← coincide exactamente con el nav */
}

/* =========================================================
   NAVBAR
========================================================= */

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: var(--nav-h);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.25);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  transition:
    background .35s ease,
    box-shadow .35s ease;
}

nav.scrolled {
  background: #fff;
  box-shadow: 0 2px 24px rgba(0,0,0,.08);
  border-bottom: 1px solid #eee;
}

.nav-logo img {
  height: 85px;
  width: auto;
  display: block;
}

/* LINKS */

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width .3s ease;
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-btn {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  transition: background .25s, transform .25s;
}

.nav-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* =========================================================
   BOTÓN HAMBURGUESA
========================================================= */

.menu-toggle {
  display: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text);
  user-select: none;
  line-height: 1;
}

/* =========================================================
   BANNER
========================================================= */

.banner {
  position: relative; /* ← era "center", valor inválido */
  height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #fff;
  margin: 0 5%;
  border-radius: 0 0 24px 24px;
}

/* SLIDER */

.banner-slider {
  position: absolute;
  inset: 0;
}

.banner-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  transform: scale(1.04);
}

.banner-slider img.active {
  opacity: 1;
}

/* OVERLAY */

.banner-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(140,0,0,.75) 0%,
      rgba(140,0,0,.25) 30%,
      rgba(0,0,0,.05) 55%
    );
  z-index: 1;
}

/* CONTENIDO */

.banner-content {
  position: relative;
  z-index: 2;
  padding: 0 8%;
  max-width: 680px;
}

.banner-content h1 {
  font-size: 68px;
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 18px;
  color: #ffffff00; /* ←invisible */
  text-shadow: 0 2px 20px rgba(0,0,0,.25);
}

.banner-content p {
  font-size: 20px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0); /* ←invisible */
}

/* =========================================================
   CATEGORÍAS
========================================================= */

.categories {
  display: flex;
  height: 260px;
  overflow: hidden;
  margin: 16px 5% 0;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
}

.cat-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex .4s cubic-bezier(.25,.8,.25,1);
}

.cat-item:hover {
  flex: 1.5;
}


.cat-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray);
  transition: background .4s;
}

.cat-bg img {
  width: 55%;
  height: auto;
  object-fit: contain;
  transition: transform .4s ease, filter .4s ease;
}

.cat-item:hover .cat-bg {
  background: #eaeaea;
}

.cat-item:hover .cat-bg img {
  transform: scale(1.06);
  filter: brightness(.45);
}

/* Separador entre items */
.cat-item + .cat-item {
  border-left: 1px solid rgba(0,0,0,.06);
}

.cat-overlay {
  position: absolute;
  inset: 0;
  transition: background .4s;
}

.cat-item:hover .cat-overlay {
  background: rgba(200,16,46,.28);
}

.cat-label {
  position: absolute;
  left: 1.4rem;
  bottom: 1.6rem;
  color: #ff0000; /* ← era #ff0000, ilegible sobre oscuro */
  z-index: 2;
  opacity: 100;
  transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}

.cat-item:hover .cat-label {
  opacity: 1;
  transform: translateY(0);
}

.cat-label h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

.cat-label p {
  font-size: 13px;
  opacity: .85;
}

.cat-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--red);
  transition: width .45s cubic-bezier(.25,.8,.25,1);
  z-index: 3;
}

.cat-item:hover .cat-bar {
  width: 100%;
}

.cat-item.selected {
  outline: 3px solid var(--red);
  outline-offset: -3px;
  flex: 1.5;
}

/* =========================================================
   SECCIÓN MOTOS
========================================================= */

.bikes-section {
  padding: 2.5rem 2rem;
  background: #fff;
  box-shadow: inset 0 16px 48px rgba(0,0,0,.07);
}

.bikes-header {
  margin-bottom: 1.5rem;
}

.bikes-header span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.bikes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.bike-card {
  border: 1px solid #eee;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}

.bike-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0,0,0,.10);
  border-color: #ddd;
}

.bike-img-wrap {
  height: 300px;
  background: var(--gray);
  overflow: hidden;
  position: relative;
}

.bike-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  transition: transform .4s ease;
}

.bike-card:hover .bike-img-wrap img {
  transform: scale(1.04);
}

.bike-info {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.bike-info h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.bike-info p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.bike-price {
  margin-top: 12px;
  color: var(--red);
  font-weight: 800;
  font-size: 19px;
}

/* =========================================================
   UBICACIÓN
========================================================= */

.location-section {
  padding: 60px 5%;
  background: var(--dark);
  margin-top: 60px;
}

.location-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 50px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.location-info h2 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.1;
}

.location-info h2 span {
  color: var(--red);
}

.location-info p {
  font-size: 16px;
  color: rgba(255,255,255,.6);
  margin-bottom: 32px;
  line-height: 1.7;
}

.map-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: background .25s, transform .25s;
}

.map-btn:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.map-container {
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.map-container iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* =========================================================
   WHATSAPP
========================================================= */

.wa-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 16px 22px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  transition: transform .25s, box-shadow .25s;
}

.wa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37,211,102,.45);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: var(--dark);
  color: #fff;
  padding-top: 60px;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5% 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
}

.footer-column {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  width: 160px;
  margin-bottom: 20px;
}

.footer-column h3 {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255,255,255,.4);
}

.footer-column a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 14px;
  transition: color .25s, transform .25s;
  display: inline-block;
}

.footer-column a:hover {
  color: #fff;
  transform: translateX(4px);
}

.footer-column p {
  color: rgba(255,255,255,.5);
  margin-bottom: 10px;
  line-height: 1.7;
  font-size: 14px;
}

.footer-text {
  max-width: 280px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  text-align: center;
  padding: 24px;
  color: rgba(255,255,255,.3);
  font-size: 13px;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px) scale(.97);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.animate-card {
  animation: fadeUp .8s cubic-bezier(.22,.8,.22,1) forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(50px) scale(.97);
  filter: blur(5px);
  transition:
    opacity .65s ease,
    transform .65s ease,
    filter .65s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* =========================================================
   PÁGINA MOTO (clases legacy, por si se usan)
========================================================= */

.moto-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
}

.moto-left {
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.moto-left img {
  width: 90%;
  max-width: 700px;
}

.moto-right {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.moto-right h1 {
  font-size: 54px;
  margin-bottom: 20px;
}

.moto-right p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 30px;
}

.moto-price {
  font-size: 40px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 10px;
}

.moto-cc {
  font-size: 20px;
  margin-bottom: 30px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width: 768px) {

  /* HAMBURGUESA */

  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  /* MENÚ */

  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    box-shadow: 0 12px 32px rgba(0,0,0,.10);
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .4s ease, opacity .4s ease;
    border-top: 1px solid #eee;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 16px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #f5f5f5;
    font-size: 13px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-btn {
    margin: 16px 0 24px;
    padding: 14px 28px;
  }

  /* BANNER */

  .banner {
    height: 360px;
    margin: 0 3%;
    border-radius: 0 0 16px 16px;
  }

  .banner-content {
    padding: 0 6%;
  }

  .banner-content h1 {
    font-size: 36px;
  }

  .banner-content p {
    font-size: 15px;
  }

  /* CATEGORÍAS */

  .categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    height: auto;
    margin: 12px 3% 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
  }

  .cat-item {
    height: 175px;
    border-radius: 14px;
    overflow: hidden;
    flex: none;
  }

  .cat-item + .cat-item {
    border-left: none;
  }

  .cat-item:hover {
    flex: none;
  }

  /* Labels siempre visibles en mobile */
  .cat-label {
    opacity: 1;
    transform: translateY(0);
  }

  .cat-label h2 {
    font-size: 16px;
  }

  .cat-label p {
    font-size: 11px;
  }

  /* MOTOS */

  .bikes-section {
    padding: 1.5rem 1rem;
  }

  .bikes-grid {
    grid-template-columns: 1fr;
  }

  .bike-img-wrap {
    height: 220px;
  }

  /* UBICACIÓN */

  .location-section {
    padding: 48px 6%;
    margin-top: 0;
  }

  .location-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .map-container {
    order: 1;
  }

  .location-info {
    order: 2;
    align-items: center;
    text-align: center;
  }

  .location-info h2 {
    font-size: 32px;
  }

  .map-container iframe {
    height: 300px;
  }

  /* MOTO PAGE */

  .moto-page {
    grid-template-columns: 1fr;
  }

  .moto-left {
    height: 300px;
  }

  .moto-right {
    padding: 2rem;
  }

  .moto-right h1 {
    font-size: 34px;
  }

  /* FOOTER */

  .footer-container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 0 6% 40px;
    text-align: center;
  }

  .footer-column {
    align-items: center;
  }

  .footer-text {
    max-width: 100%;
  }

  .footer-logo {
    width: 140px;
  }

  /* WA BTN */

  .wa-btn {
    bottom: 20px;
    right: 20px;
    padding: 14px 18px;
    font-size: 13px;
  }

}