/* Estilos base para Talimotor Náutica */

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

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f0f6fa; /* azul claro tipo mar */
  color: #333;
}

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

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

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

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

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

/* Hero / Banner principal */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
}

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

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

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 20px;
}

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

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

/* Productos destacados */
#productos {
  padding: 40px 20px;
  text-align: center;
}

#productos h2 {
  margin-bottom: 30px;
  color: #003366;
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.producto {
  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;
  text-align: center;
}

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

.producto img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}
.producto.lancha {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;   /* coloca el contenido hacia abajo */
  align-items: center;         /* centra horizontalmente */
  text-align: center;
  min-height: 350px;           /* asegura altura suficiente */
}

.producto.lancha img {
  max-width: 100%;
  height: auto;
  object-fit: contain;         /* muestra completa sin recorte */
  margin-top: 30px;            /* baja aún más la imagen */
}
/* Servicios */
#servicios {
  background: #e6f2f8;
  padding: 40px 20px;
  text-align: center;
}

#servicios h2 {
  color: #003366;
  margin-bottom: 20px;
}

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

/* Responsivo */
@media (max-width: 768px) {
  .titulo h1 {
    font-size: 1.6em;
  }
  .hero h2 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
}

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


@media (max-width: 768px) {
  .producto.lancha {
    min-height: 400px;          /* un poco más alta en móvil */
    justify-content: flex-end;  /* mantiene el contenido abajo */
    align-items: center;        /* centra horizontalmente */
  }

  .producto.lancha img {
    margin-top: 40px;   /* más espacio arriba en móvil */
    margin-bottom: 20px;
  }
}

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