/* Reset b芍sico */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

/* Barra de navegaci車n */
nav {
  background: #e30613;
}

.aviso-precios {
  background: #f5f5f5;          /* gris claro, más discreto */
  color: #333;
  font-size: 0.9rem;            /* texto más pequeño */
  text-align: center;
  padding: 8px 12px;
  margin: 10px auto 20px;
  border-left: 4px solid #ffcc00; /* detalle amarillo lateral */
  border-radius: 4px;
  max-width: 800px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  opacity: 0;                   /* inicio invisible */
  animation: fadeIn 1s forwards; /* efecto entrada suave */
}

.aviso-precios p {
  margin: 0;
  line-height: 1.4;
}

/* Animación de entrada */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}

nav ul li {
  position: relative;
}

nav a {
  display: block;
  padding: 15px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover,
nav a.active {
  background: #b00010;
}

.dropdown-content {
  display: none;
  position: absolute;
  background: #333;
  min-width: 180px;
  z-index: 10; /* asegura que quede encima */
}

.dropdown-content li a {
  padding: 10px;
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Encabezado */
.encabezado {
  display: flex;
  align-items: center;
  background-color: #000;
  color: #fff;
  padding: 15px 20px;
}

.logo img {
  height: 40px;
  width: auto;
  margin-right: 20px;
}

.titulo h1 {
  margin: 0;
  font-size: 2em;
}

.titulo p {
  margin: 5px 0 0;
  font-size: 1em;
}

/* Banner principal */
.hero {
  position: relative;
  background-image: url('../img/banner.jpg');
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  min-height: 400px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.hero h2, .hero p, .hero .btn-explorar {
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.hero .btn-explorar {
  background: #e30613;
  color: #fff;
  padding: 6px 12px;       /* más compacto */
  font-size: 14px;         /* más pequeño */
  font-weight: bold;
  border-radius: 18px;     /* redondeado compacto */
  margin: 15px auto 0;     /* centrado */
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-align: center;
  white-space: nowrap;     /* evita que se parta en dos líneas */
  width: auto;             /* se ajusta al texto */
  max-width: fit-content;  /* no se expande más de lo necesario */
  text-decoration: none;   /* elimina subrayado */
}

.hero .btn-explorar:hover {
  background: #b00010;
  transform: scale(1.05);
}


/* Sucursales en tarjetas */
#sucursales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

#sucursales div {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#sucursales div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

#sucursales h3 {
  margin-top: 0;
  color: #e30613;
}

/* Testimonios */
#testimonios {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

#testimonios h2 {
  margin-bottom: 20px;
  color: #e30613;
}

#testimonios blockquote {
  font-style: italic;
  margin: 15px auto;
  max-width: 600px;
  color: #333;
}

/* CTA con imagen */
#cta {
  background-image: url('../img/moto1.jpg'); /* imagen de fondo */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

#cta::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5); /* overlay para legibilidad */
  z-index: 0;
}

#cta h2,
#cta .btn {
  position: relative;
  z-index: 1;
}

#cta h2 {
  margin-bottom: 20px;
}

#cta .btn {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
  padding: 12px 24px;
  font-weight: bold;
  font-size: 1.1em;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

#cta .btn:hover {
  background: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

/* Footer estilizado */
footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: #e30613;
  text-decoration: none;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsividad */
@media (max-width: 768px) {
  .hero {
    min-height: 250px;
    padding: 10px;
  }
  .hero h2 {
    font-size: 1.5em;
  }
  .hero p {
    font-size: 1em;
  }
  nav ul {
    flex-direction: column;
    text-align: center;
  }
  .encabezado {
    flex-direction: column;
    text-align: center;
  }
}


#testimonios {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

#testimonios h2 {
  margin-bottom: 30px;
  color: #e30613;
}

.testimonio {
  display: inline-block;
  width: 250px;
  margin: 15px;
  vertical-align: top;
}

.testimonio img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  margin-bottom: 10px;
}

.testimonio blockquote {
  font-style: italic;
  color: #333;
  margin: 0;
}

.testimonio p {
  margin-top: 5px;
  font-weight: bold;
  color: #555;
}

#servicios {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
}

#servicios h2 {
  color: #e30613;
  margin-bottom: 30px;
}

.video-servicio {
  max-width: 200px;   /* ajusta el ancho m芍ximo */
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.video-servicio video {
  width: 100%;        /* ocupa todo el ancho del contenedor */
  display: block;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.servicio {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 280px;
  padding: 15px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%; /* fuerza altura uniforme si est芍 dentro de un grid */
}
.servicio:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.servicio img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.servicio h3 {
  margin: 10px 0 5px;
  color: #e30613;
  font-size: 1.2em;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.servicio p {
  color: #333;
  flex-grow: 1; /* empuja el texto para que las tarjetas se alineen abajo */
}

.hero-nosotros {
  background: url('../img/nosotros-banner.jpg') center 30%/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
  position: relative;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-nosotros h2, .hero-nosotros p {
  position: relative;
  z-index: 1;
}

.mision-vision {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 40px 20px;
}

.mision-vision .card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 300px;
  padding: 20px;
  text-align: center;
}

.mision-vision .card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.mision-vision h3 {
  color: #e30613;
  margin-bottom: 10px;
}

.valores {
  background: #f9f9f9;
  padding: 40px 20px;
  text-align: center;
}

.valores h2 {
  color: #e30613;
  margin-bottom: 20px;
}

.valores ul {
  list-style: none;
  padding: 0;
}

.valores li {
  margin: 10px 0;
  font-weight: bold;
  color: #333;
}

.quienes-somos {
  background: #fff;
  padding: 40px 20px;
}

.quienes-somos .contenido {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.quienes-somos img {
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.quienes-somos .texto {
  flex: 1;
  min-width: 280px;
}

.quienes-somos h2 {
  color: #e30613;
  margin-bottom: 15px;
}

.quienes-somos p {
  color: #333;
  line-height: 1.6;
}

/* Animaciones */
section, .card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

section.visible, .card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botón volver arriba */
#btnTop {
  display: none; /* oculto al cargar */
  position: fixed;
  bottom: 90px; /* justo encima del WhatsApp */
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  background-color: #d60000;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

#btnTop:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  #btnTop {
    bottom: 80px; /* también ajustado en móviles */
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Men迆 din芍mico */
nav.scrolled {
  background: #b00010;
  transition: background 0.3s ease;
}

#motos-slider {
  text-align: center;
  padding: 40px 20px;
  background: #f5f5f5;
}

#motos-slider img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
}

.slider {
  display: flex;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: auto;
  gap: 20px; /* separa las motos */
  padding: 0 10px; /* margen lateral interno */
}

.slide {
  opacity: 0;
  transform: translateY(30px);
  animation: aparecer 0.8s ease forwards;
  animation-delay: calc(var(--i) * 0.3s);
}

@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain; /* mantiene proporci車n sin recortar */
  border-radius: 8px;
}

.moto-texto {
  margin-top: 8px;       /* espacio entre imagen y texto */
  font-weight: bold;
  color: #333;
  font-size: 1em;
  text-align: center;
}


#contacto {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border-top: 2px solid #e30613;
}

.contacto-box {
  max-width: 600px;
  margin: auto;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-correo {
  display: inline-block;
  margin: 15px 0;
  padding: 12px 24px;
  background: #e30613;
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-correo:hover {
  background: #b00010;
  transform: scale(1.05);
}

.categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8); /* efecto vidrio */
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.categorias button {
  padding: 10px 20px;
  background: transparent;
  color: #e30613;
  border: 2px solid #e30613;
  border-radius: 50px; /* pill shape */
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.categorias button::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: #e30613;
  transition: left 0.3s ease;
  z-index: -1;
}

.categorias button:hover::before {
  left: 0;
}

.categorias button:hover {
  color: #fff;
}

.categorias button.active {
  background: #e30613;
  color: #fff;
  border-color: #e30613;
}



.galeria-categoria {
  display: none;              /* ocultas por defecto */
  scroll-margin-top: 160px;   /* margen al hacer scroll */
}

.galeria-categoria.activa {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.modelo {
  width: 250px;       /* tamaño fijo más compacto */
  margin: 10px;
  padding: 12px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center; /* centra contenido dentro */
}

.modelo p {
  min-height: 80px; /* reserva espacio para la descripción */
  text-align: center;
}

.modelo strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
  text-align: center;
  min-height: 24px; /* reserva espacio para el título */
}


.modelo .precio {
  display: block;
  min-height: 60px; /* reserva espacio para 2–3 líneas de precio */
  font-weight: bold;
  text-align: center;
}



.modelo img.foto-chica {
  width: 180px;       /* más compacto que 220px */
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px auto; /* centrado con margen inferior */
}


/* Imagen pequeña de ficha */
.foto-chica {
  width: 180px;       /* ancho fijo */
  height: 120px;      /* alto fijo */
  object-fit: cover;  /* recorta sin deformar */
  border-radius: 8px;
  display: block;
  margin: 0 auto 10px auto;
}


button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #e30613;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  background: #b00010;
}

.galeria-oculta {
  width: 100%;
  text-align: center;
  margin-top: 20px;
 
  display: none;

}

.foto-grande {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.foto-grande img {
  max-width: 300px;   /* tamaño máximo por imagen */
  width: auto;        /* que respete proporción */
  height: auto;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.btn-ficha {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background: #e30613;
  color: white;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-ficha:hover {
  background: #b00010;
  transform: scale(1.05);
}

.offroad-hero {
  background: url('../img/offroad-hero.jpg') no-repeat top center; /* antes estaba center center */
  background-size: cover;
  min-height: 500px;
  padding: 40px;
  color: white;
  text-align: center;
  border-radius: 8px;
}
/* Hero como fondo */
#offroad .offroad-hero {
  background-image: url("../img/offroad-hero.jpg"); /* tu imagen */
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 300px;          /* altura del banner */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;           /* texto encima del fondo */
  text-align: center;
}



.offroad-hero h3,
.offroad-hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Aviso debajo */
#offroad .aviso-pedido {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#offroad .aviso-pedido::before {
  content: "⚠";               /* ícono de alerta */
  font-size: 1.5rem;
  color: #d60000;
  display: block;
  margin-bottom: 8px;
}



#offroad .aviso-pedido strong {
  color: #d60000;             /* el ícono ⚠ en rojo */
}

#offroad .aviso-pedido .btn {
  display: inline-block;
  margin-top: 12px;
  background: #d60000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}


#offroad .aviso-pedido .btn:hover {
  background: #a50000;
}




/* Solo se muestra cuando está activa */
#offroad.activa {
  display: flex;
  flex-direction: column; /* hero arriba, luego tarjetas, luego aviso */
  align-items: center;
}

/* Tarjetas encima del hero */
#offroad .tarjetas-offroad {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -100px;     /* sube las tarjetas para que se monten sobre el hero */
  position: relative;
  z-index: 2;             /* asegura que estén encima */
}





/* Estilos exclusivos para las tarjetas dentro de la sección Off-Road */
#offroad .modelo {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  max-width: 280px;
  color: #222;
}

#offroad .modelo h4,
#offroad .modelo p,
#offroad .precio,
#offroad .financiamiento {
  color: #222; /* asegura que todo el contenido sea oscuro */
}

#offroad .modelo h4 {
  color: #004aad; /* azul Yamaha */
}

#offroad .precio {
  margin: 6px 0;
  font-weight: bold;
  min-height: 40px; /* reserva espacio */
}

#offroad .financiamiento {
  background: #f9f9f9;
  border: 1px dashed #999;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.9rem;
  margin-top: 8px;
}

#offroad .acciones {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

/* Hero Utilitarios */
#utilitarios .utilitarios-hero {
  background: url('../img/utilitarios-hero.jpg') no-repeat center;
  background-size: cover;
  background-position: center 60%; /* mueve el foco hacia abajo */
  min-height: 500px;
  padding: 40px;
  color: white;
  text-align: center;
  border-radius: 8px;

  width: 100%;
  height: 300px;          
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#utilitarios .utilitarios-hero h3,
#utilitarios .utilitarios-hero p {
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Aviso debajo */
#utilitarios .aviso-pedido {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 20px;
  margin-top: 30px;
  border-radius: 8px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

#utilitarios .aviso-pedido::before {
  content: "⚠";               
  font-size: 1.5rem;
  color: #d60000;
  display: block;
  margin-bottom: 8px;
}

#utilitarios .aviso-pedido strong {
  color: #d60000;             
}

#utilitarios .aviso-pedido .btn {
  display: inline-block;
  margin-top: 12px;
  background: #d60000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

#utilitarios .aviso-pedido .btn:hover {
  background: #a50000;
}

/* Sección activa */
#utilitarios.activa {
  display: flex;
  flex-direction: column; 
  align-items: center;
}

/* Tarjetas encima del hero */
#utilitarios .tarjetas-utilitarios {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: -100px;     
  position: relative;
  z-index: 2;             
}

/* Estilos exclusivos para las tarjetas dentro de Utilitarios */
#utilitarios .modelo {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  max-width: 280px;
  color: #222;
}

#utilitarios .modelo h4,
#utilitarios .modelo p,
#utilitarios .precio,
#utilitarios .financiamiento {
  color: #222; 
}

#utilitarios .modelo h4 {
  color: #004aad; /* azul Yamaha */
}

#utilitarios .precio {
  margin: 6px 0;
  font-weight: bold;
  min-height: 40px; 
}

#utilitarios .financiamiento {
  background: #f9f9f9;
  border: 1px dashed #999;
  border-radius: 6px;
  padding: 8px;
  font-size: 0.9rem;
  margin-top: 8px;
}

#utilitarios .acciones {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}


.btn, .btn-accion {
  display: inline-block;
  padding: 10px 20px;
  background-color: #d60000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover, .btn-accion:hover {
  background-color: #a80000;
}

.offroad-hero p.destacado {
  font-size: 1.2rem; /* ligeramente más grande que el texto normal */
  line-height: 1.6;
}

.seccion-descubre {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(to right, #f8f8f8, #ffffff);
  border-bottom: 2px solid #d60000;
}

.seccion-descubre h2 {
  font-size: 2.2rem;
  color: #d60000;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.seccion-descubre p {
  font-size: 1.2rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.btn-volver {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #d60000;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #a80000;
}

html {
  scroll-behavior: smooth;
}


.precio {
  display: block;
  min-height: 80px;   /* reserva espacio para 2–3 líneas */
  text-align: center;
}

.lista-precios {
  font-size: 0.9rem;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lista-precios li strong {
  color: #333;
  display: block;
  margin-bottom: 4px;
}

.lista-precios li.con-bono {
  background: #fff3f3;              /* fondo rosado claro */
  border: 1px solid #d60000;        /* borde rojo */
  position: relative;
}

.lista-precios li.con-bono::before {
  content: "BONO";
  position: absolute;
  top: -15px;
  right: 12px;
  background: #d60000;
  color: white;
  font-size: 0.7rem;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: bold;
}

.vigencia {
  color: #d60000;
  font-size: 0.9rem;
  font-style: italic;
  display: block;
  margin-top: 4px;
}

#offroad .precio .lista-precios li.con-bono {
  background: rgba(214, 0, 0, 0.05); /* fondo semitransparente */
  border: 1px solid rgba(214, 0, 0, 0.3);
  position: relative;
}

#offroad .precio .lista-precios li.con-bono::before {
  content: "BONO";
  position: absolute;
  top: -10px;
  right: -10px;
  background: rgba(214, 0, 0, 0.7); /* rojo semitransparente */
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
  font-weight: bold;
}

.lista-precios li:not(.con-bono) {
  background: #fdfdfd;              /* fondo neutro elegante */
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.lista-precios li:not(.con-bono):hover {
  transform: scale(1.02);
}

.lista-precios li:not(.con-bono) strong {
  color: #d60000;                   /* resaltar precio en rojo */
  font-size: 1.1rem;
}

/* Intro de categoría ATV / Utilitarios */
.intro-categoria {
  background: linear-gradient(135deg, #f0f9ff, #e0f7fa);
  border-left: 6px solid #0077b6;
  padding: 20px;
  margin-bottom: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  animation: fadeInIntro 0.8s ease-in-out;
}

.intro-categoria h3 {
  color: #0077b6;
  font-size: 1.6em;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.intro-categoria p {
  color: #333;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Animación suave */
@keyframes fadeInIntro {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ajuste especial para modelos vendidos */
.modelo#kodiak450 {
  opacity: 0.85;
  background: #fafafa;
  border: 1px dashed #999;
  padding: 15px;
  border-radius: 6px;
}

.modelo#kodiak450 p {
  color: #555;
  font-style: italic;
}

.modelo#grizzly700 {
  opacity: 0.85;
  background: #fdfdfd;
  border: 1px dashed #cc0000;
  padding: 15px;
  border-radius: 6px;
}

.modelo#grizzly700 p {
  color: #444;
  font-style: italic;
}

.promo-texto {
  color: #e63946; /* rojo llamativo */
  font-weight: bold;
  font-size: 1.05em;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: #fff3f3;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 6px;
  line-height: 1.5;
  animation: parpadeoPromo 1.5s infinite;
}

.promo-texto em {
  display: block;
  font-size: 0.9em;
  font-weight: normal;
  text-transform: none;
  color: #444;
  margin-top: 4px;
}

@keyframes parpadeoPromo {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.regalo {
  margin-top: 10px;
  background: #f0f8ff;
  border: 1px solid #0077b6;
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  animation: fadeInIntro 0.8s ease-in-out;
}

.regalo img {
  max-width: 120px;
  margin-bottom: 6px;
}

.nota-condicion {
  display: block;
  margin-top: 6px;
  font-size: 0.9em;
  color: #444;
  background: #f5f5f5;
  border-left: 4px solid #0077b6;
  padding: 6px 10px;
  border-radius: 4px;
  font-style: italic;
}

.financiamiento {
  display: block;
  background: #fff3f3;        /* fondo rojo claro */
  border-left: 4px solid #e63946; /* borde rojo intenso */
  padding: 8px 12px;
  margin-top: 6px;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #e63946;             /* texto rojo */
}
.financiamiento em {
  color: #444;
  font-style: italic;
  font-size: 0.9em;
}

.modal {
  display: none; /* oculto por defecto */
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);

  /* Centrado con flexbox */
  justify-content: center;
  align-items: center;
}

.modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain; /* mantiene proporción */
}

.cerrar {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.nav {
  color: #000;                 /* flechas negras */
  font-size: 2em;
  font-weight: bold;
  background: rgba(255,255,255,0.8); /* círculo blanco semitransparente */
  border-radius: 50%;          /* forma circular */
  padding: 10px 14px;
  border: 2px solid #000;      /* borde negro para contraste */
  cursor: pointer;
  text-shadow: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

/* Ubicación izquierda/derecha */
#prev { left: 20px; }
#next { right: 20px; }

/* Hover para dar efecto */
.nav:hover {
  background: rgba(0,0,0,0.8); /* círculo negro */
  color: #fff;                 /* flechas blancas al pasar el mouse */
}

.descripcion-modelo {
  background: #f9f9f9;
  border-left: 4px solid #004aad; /* azul Yamaha */
  padding: 16px;
  margin-top: 12px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95em;
  line-height: 1.5em;
  color: #333;
}

.descripcion-modelo strong {
  color: #004aad; /* resaltar palabras clave */
}

/* Ocultar texto corto en escritorio/tablet */
@media (min-width: 601px) {
  .mobile-only {
    display: none;
  }
}

/* Ocultar texto largo en móvil */
@media (max-width: 600px) {
  .desktop-only {
    display: none;
  }
}



.por-pedido {
  padding: 10px;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  color: #856404;
  font-weight: 500;
  text-align: center;
}

.financiamiento {
  margin-top: 10px;
  padding: 10px;
  background: #e8f4ff;
  border: 1px solid #b3daff;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #004080;
}
.financiamiento strong {
  color: #003366;
}

.existencias {
  font-size: 0.9rem;
  color: #666; /* gris discreto */
  margin-top: 8px;
}

.existencias a {
  color: #004080; /* azul Yamaha */
  font-weight: bold;
  text-decoration: none;
}

.existencias a:hover {
  text-decoration: underline;
}

.aviso-bono {
  background: linear-gradient(135deg, #ffeb3b, #fbc02d);
  color: #212121;
  font-weight: bold;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.05em;
  border: 2px solid #f57f17;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.aviso-bono::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: brillo 2.5s infinite;
}

.precio-financiamiento {
  background: linear-gradient(135deg, #e3f2fd, #90caf9);
  color: #0d47a1;
  font-weight: bold;
  padding: 12px 16px;
  margin: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-size: 1.05em;
  border: 2px solid #1565c0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  position: relative;
  overflow: hidden;
}

.precio-financiamiento::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: brillo 3s infinite;
}


@keyframes brillo {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.bono-250f {
  background: linear-gradient(90deg, #ffe082, #ffca28);
}

.bono-450f {
  background: linear-gradient(90deg, #f48fb1, #ec407a);
}


.whatsapp-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #25D366;
  font-weight: bold;
  margin-top: 8px;
  font-size: 18px; /* número más grande */
}

.whatsapp-link img {
  width: 40px;   /* tamaño más grande */
  height: 40px;  /* tamaño más grande */
  margin-right: 12px;
}

/* Estilos generales del footer */
footer {
  background-color: #111; /* Fondo negro */
  color: #eee;            /* Texto gris claro */
  padding: 20px;
}

/* Contenedor principal del footer */
.footer-container {
  display: flex;                  /* Distribuye en columnas */
  justify-content: space-between; /* Espacio entre columnas */
  align-items: flex-start;
  flex-wrap: wrap;                /* Se acomoda en móvil */
  gap: 20px;
}

/* Bloque de información (© 2026 Talimotor, Distribuidor autorizado Yamaha) */
.footer-info {
  flex: 1 100%;        /* Ocupa todo el ancho en la primera fila */
  text-align: center;  /* Centra el texto */
}

/* Bloque de enlaces centrados */
.footer-links {
  flex: 1 100%;        /* Ocupa todo el ancho en una fila */
  text-align: center;  /* Centra los enlaces */
  margin-top: 10px;
}

.footer-links a {
  color: #eee;         /* Color gris claro */
  margin: 0 12px;      /* Espaciado entre enlaces */
  text-decoration: none;
}

.footer-links a:hover {
  color: #f00;         /* Rojo Yamaha al pasar el mouse */
}

/* Bloque de redes sociales */
.footer-social {
  flex: 1 100%;        /* Ocupa todo el ancho en una fila */
  text-align: center;  /* Centra los íconos */
  margin-top: 10px;
}

.footer-social a {
  font-size: 1.5em;    /* Íconos más grandes */
  margin: 0 10px;
  color: #eee;
}

.footer-social a:hover {
  color: #f00;
}

/* Bloque de enlaces legales */
.footer-legal {
  margin-top: 15px;
  text-align: center;  /* Centrado */
  font-size: 0.9em;
}

.footer-legal a {
  color: #eee;
  text-decoration: none;
}

.footer-legal a:hover {
  color: #f00;
}

/* Responsive: en pantallas pequeñas todo en columna */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}

.whatsapp-float { 
    position: fixed; bottom: 20px; /* pegado a la esquina */
    right: 20px; width: 60px; 
    height: 60px; 
    background-color: #25D366; 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 999; cursor: pointer; }
.whatsapp-float img {
  width: 35px;
  height: 35px;
  animation: floatIcon 3s ease-in-out infinite; /* efecto flotante */
  transition: transform 0.6s ease; /* transición para el giro */
}

/* Animación flotante para el ícono */
@keyframes floatIcon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Giro continuo al pasar el mouse */ 
.whatsapp-float:hover img {
    animation: floatIcon 3s ease-in-out infinite, rotateIcon 1s linear infinite;
}


/* Animación de giro */ 
@keyframes rotateIcon { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Mensaje */
.whatsapp-msg {
  position: absolute;
  right: 70px;
  background: #25D366;
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
}


.formulario-contacto {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.formulario-contacto h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
}

.campo-form {
  margin-bottom: 15px;
}

.campo-form label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.campo-form input,
.campo-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.btn {
  display: block;
  
  padding: 12px;
  background: #0077cc;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  cursor: pointer;
}

.btn:hover {
  background: #005fa3;
}

.alerta.exito {
  background: #dff0d8;
  color: #3c763d;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
}

.alerta.error {
  background: #f2dede;
  color: #a94442;
  padding: 15px;
  margin-top: 20px;
  border-radius: 5px;
  text-align: center;
}

/* Sección de contacto */
#contacto-talimotor {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Título de la sección */
#contacto-talimotor h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.8em;
}

/* Texto introductorio */
.intro-contacto {
  text-align: center;
  font-size: 1.1em;
  color: #555;
  margin-bottom: 25px;
  line-height: 1.6;
}



#prev { left: 20px; }
#next { right: 20px; }