body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f9f9f9;
  color: #333;
  padding-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.3rem;
  color: white;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

/* Animación de entrada */
@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: linear-gradient(90deg, #4cb5a6 0%, #319c8d 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 20px;

  animation: slideDownFade 0.6s ease-out;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);

  flex-wrap: wrap;
  box-sizing: border-box;           /* ✅ IMPORTANTE */
}


#navbar-container {
  margin-bottom: 70px; /* ajusta según el alto de tu navbar */
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  transition: transform 0.3s ease;
}
.logo-img:hover {
  transform: scale(1.1) rotate(-2deg);
}

.logo-text {
  font-size: 1.3rem;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Enlaces de navegación */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  padding-right: 10px;              /* ✅ PARA QUE NO SE CORTE "Contacto" */
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links li a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #e0f7f4;
}

.nav-links li a:hover::after {
  width: 100%;
}


/* HERO */
.hero {
  background: linear-gradient(to right, #2fa59a, #197d72);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}


/* Sections */
.featured-section {
  padding: 40px 20px;
  text-align: center;
}
.featured-section h2 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 30px;
}

.features-list {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.features-list li {
  margin: 8px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  loading: lazy; /* <-- No es CSS, pero recuerda usarlo en HTML */
}

.card h3 {
  margin: 15px 0 10px;
  color: #16a085;
}
.card p {
  font-size: 14px;
  line-height: 1.5;
}

.card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
}

.btn {
  display: inline-block;
  margin-top: 10px;
  background: #16a085;
  color: white;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn:hover {
  background: #13856e;
}

/* Botón estilo outline */
.btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border: 2px solid white;
  color: white;
  background-color: transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: white;
  color: #2fa59a;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

input, textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

button[type="submit"] {
  background-color: #4cb5a6;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background-color: #3ba390;
}


/* Footer */
footer {
  text-align: center;
  background: #2c3e50;
  color: white;
  padding: 20px;
}

.menu-toggle {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
}

/* Oculta el botón hamburguesa por defecto */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* Responsive styles para móviles */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .nav-toggle {
    display: block; /* ✅ Muestra botón hamburguesa */
  }

  .nav-links {
    display: none; /* ✅ Oculta el menú inicialmente */
    flex-direction: column;
    width: 100%;
    background-color: #319c8d;
    margin-top: 10px;
  }

  .nav-links.active {
    display: flex; /* ✅ Aparece cuando se hace toggle */
  }

  .nav-links li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-links li a {
    transition: color 0.3s ease;
  }

  .nav-links li a:hover {
    color: #e0f7f4;
  }
}
