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

/* 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 */
#catalogo-lanchas {
  padding: 40px 20px;
}

.grid-lanchas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

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

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

.lancha img {
  max-width: 180px;   /* nunca más ancho que 180px */
  max-height: 140px;  /* nunca más alto que 140px */
  width: auto;        /* ajusta proporción */
  height: auto;       /* ajusta proporción */
  margin: 0 auto 10px;
  display: block;
  object-fit: contain; /* asegura que se vea completa */
  border-radius: 6px;
}
/* Todas las imágenes dentro del slider */
.slider img {
  max-width: 100%;       /* que nunca se pase del ancho del modal */
  max-height: 400px;     /* altura máxima controlada */
  width: auto;           /* mantiene proporción */
  height: auto;          /* mantiene proporción */
  display: block;
  margin: 0 auto 15px;   /* centradas */
  object-fit: contain;   /* se ajustan sin recortarse */
  border-radius: 6px;
}


.miniaturas-slider {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.miniaturas-slider img {
  width: 80px;          /* tamaño pequeño */
  height: 60px;         /* altura fija */
  object-fit: cover;    /* recorta sin deformar */
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.miniaturas-slider img:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.lancha h3 {
  font-size: 1rem;
  margin: 5px 0;
  color: #003366;
}

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

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

.modal-contenido {
  background: #fff;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-width: 800px;
  border-radius: 8px;
}

.cerrar {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* Footer */
footer {
  background: #003366;
  color: #fff;
  text-align: center;
  padding: 15px;
}

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

.regresar .btn {
  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);
}

/* Alerta precios */
.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);
}

/* Responsive para móvil */
@media (max-width: 768px) {
  .logo img {
    max-width: 140px;
  }

  .titulo h1 {
    font-size: 1.4rem;
  }

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

  .grid-lanchas {
    grid-template-columns: 1fr;
  }

  .lancha img {
    height: 200px;
  }
}

/* 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;
  }
}

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;
  }
}


