/* styles.css */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f4f8fb;
  color: #333;
  line-height: 1.6; /* mejor legibilidad */
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #0a3d62;
  color: white;
  position: sticky; /* header fijo arriba */
  top: 0;
  z-index: 1000;
}

.logo {
  height: 80px;
  max-width: 100%;
}

/* Navegación */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00a8cc; /* efecto hover */
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(to right, #00a8cc, #0077b6);
  color: white;
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin: auto;
}

/* Botones CTA */
.cta {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #ffcc00;
  color: #0a3d62;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cta:hover {
  background-color: #0a3d62;
  color: white;
}

.cta.secondary {
  background-color: #0077b6;
  color: white;
}

.cta.secondary:hover {
  background-color: #005f87;
}

/* Secciones */
.content {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: auto;
}

.content h2 {
  color: #0a3d62;
  margin-bottom: 1rem;
}

.content ul {
  padding-left: 1.5rem;
}

/* Flex para secciones con imagen */
.section-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-img {
  width: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Íconos en listas */
.icon {
  width: 24px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Galería */
.gallery {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.gallery img {
  width: 30%;
  min-width: 200px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Tabla de precios */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

table,
th,
td {
  border: 1px solid #ccc;
}

th,
td {
  padding: 1rem;
  text-align: left;
}

th {
  background-color: #f2f2f2;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0a3d62;
  color: white;
  margin-top: 2rem;
}

/* 📱 Responsive ajustes */

/* Tablets */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  nav ul {
    gap: 0.5rem;
  }

  .section-img {
    width: 100%;
  }

  .gallery img {
    width: 45%;
  }
}

/* Celulares */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo {
    height: 60px;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .hero {
    padding: 3rem 1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .content {
    padding: 1.5rem;
  }

  .gallery img {
    width: 100%;
  }
}
