.hero {
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  min-height: 400px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px 20px;
}

.alerta-precios {
  background: #ffcc00;
  color: #000;
  font-weight: bold;
  text-align: center;
  padding: 15px;
  margin: 20px auto;
  border-radius: 5px;
  max-width: 800px;
}

.alerta-precios a.btn-contacto {
  display: inline-block;
  margin-left: 10px;
  background: #0077cc;
  color: #fff;
  padding: 8px 15px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.alerta-precios a.btn-contacto:hover {
  background: #005599;
  transform: scale(1.05);
}


/* Menú responsivo */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;   /* apila los elementos */
    align-items: stretch;     /* que ocupen todo el ancho */
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.2); /* separador */
  }

  nav a {
    text-align: center;
    padding: 14px;
    font-size: 1.1em;
    display: block;
  }
}

/* Encabezado con logo Talimotor */
/* Encabezado */
.encabezado {
  text-align: center;
  background: #003366;
  color: #fff;
  padding: 20px;
}

.logo img {
  max-width: 180px;   /* tamaño en escritorio */
  height: auto;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
  margin-bottom: 10px; /* separación con el título */
}

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

.titulo h1 {
  margin: 10px 0 5px;
  font-size: 1.8rem;
}

.titulo p {
  margin: 0;
  font-size: 1rem;
  color: #ddd; /* contraste sobre fondo oscuro */
}


/* Barra de navegación */
nav {
  background: #005599; /* azul intermedio */
}

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: #003366;
}



/* Grid de catálogo */
.grid-acuamotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 20px;
}

/* Tarjeta Acuamoto */
.acuamoto {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 10px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 200px;
  margin: auto;
}

.acuamoto:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.acuamoto img {
  width: 120px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

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

.acuamoto h3 {
  font-size: 0.95rem;
  margin: 5px 0;
  color: #003366;
}

.acuamoto p {
  font-size: 0.8rem;
  color: #555;
}

/* Botón regresar */
.regresar {
  text-align: center;
  margin: 30px 0;
}

.regresar .btn {
  display: inline-block;
  background: #0077cc;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.regresar .btn:hover {
  background: #005599;
  transform: scale(1.05);
}

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

/* Hero exclusivo Acuamotos */
.hero-acuamotos {
  background-position: center 60%;
  min-height: 500px;
}

.hero-acuamotos::before {
  content: none;
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1;
}

.hero-acuamotos h2,
.hero-acuamotos p {
  position: relative;
  z-index: 2;
}

.hero-acuamotos h2 {
  font-size: 3em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero-acuamotos p {
  font-size: 1.3em;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  color: #f0f0f0;
  text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-contenido {
  background: #fff;
  position: relative;
  top: 30px;         /* sube o baja el bloque */
  margin: 0 auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
}

.slider {
  text-align: center;
  margin-bottom: 15px;
}

.slider img {
  max-width: 100%;
  border-radius: 6px;
}

.controles-slider {
  text-align: center;
  margin-bottom: 15px;
}

.controles-slider button {
  margin: 0 5px;
  padding: 6px 12px;
  cursor: pointer;
}

/* Grid de catálogo */
.grid-acuamotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* columnas flexibles */
  gap: 20px;
  margin: 40px 20px;
}

/* Tarjeta Acuamoto */
.acuamoto {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 12px;
  text-align: center;
  cursor: pointer;
  border: 1px solid #ddd;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.acuamoto:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.acuamoto img {
  width: 140px;        /* tamaño compacto en escritorio */
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

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

.acuamoto h3 {
  font-size: 1rem;
  margin: 5px 0;
  color: #003366;
}

.acuamoto p {
  font-size: 0.85rem;
  color: #555;
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .grid-acuamotos {
    grid-template-columns: 1fr; /* una tarjeta por fila en móvil */
  }

  .acuamoto {
    max-width: 100%;
    padding: 15px; /* más aire en móvil */
  }

  .acuamoto img {
    width: 100%;   /* imagen ocupa todo el ancho de la tarjeta */
    max-width: 280px; /* límite para que no se deforme */
    margin: 0 auto 12px;
    display: block;
  }

  .acuamoto h3 {
    font-size: 1.1rem; /* un poco más grande en móvil */
  }

  .acuamoto p {
    font-size: 0.9rem;
  }
}

.cerrar {
  font-size: 2rem;       /* tamaño más grande */
  font-weight: bold;     /* más gruesa */
  color: #333;           /* color más visible */
  float: right;          /* alineada a la derecha */
  cursor: pointer;       /* cursor de mano */
  transition: color 0.3s ease, transform 0.2s ease;
}

.cerrar:hover {
  color: #cc0000;        /* se pone roja al pasar el mouse */
  transform: scale(1.2); /* efecto de zoom */
}

footer {
  background-color: #003366; /* Azul marino */
  color: #eee;
  padding: 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.footer-info {
  flex: 1 100%;
  text-align: center;
}

.footer-links {
  flex: 1 100%;
  text-align: center;
  margin-top: 10px;
}

.footer-links a {
  color: #eee;
  margin: 0 12px;
  text-decoration: none;
  font-weight: bold;
}

.footer-links a:hover {
  color: #00aaff; /* Azul claro al pasar el mouse */
}

.footer-social {
  flex: 1 100%;
  text-align: center;
  margin-top: 10px;
}

.footer-social a {
  font-size: 1.5em;
  margin: 0 10px;
  color: #eee;
}

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

.footer-legal {
  margin-top: 15px;
  text-align: center;
  font-size: 0.9em;
}

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

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

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }
}