/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  height: 100%;
}
body {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #333;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 77, 64, 0.8);
  padding: 15px 20px;
  z-index: 1000;
  transition: background 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
}
.navbar nav ul li {
  margin: 0 20px;
}
.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.navbar nav ul li a:hover,
.navbar nav ul li a.active {
  color: #80cbc4;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 1; /* ocupa el espacio disponible */
  background: linear-gradient(135deg, #004d40, #009688);
  color: white;
  text-align: center;
  padding: 20px;
}
.logo-container {
  animation: fadeInUp 1.5s ease;
}
.logo {
  width: 150px;
  margin-bottom: 20px;
  animation: bounceIn 2s ease;
}
.titulo {
  font-size: 2rem;
  margin-bottom: 10px;
}
.titulo span {
  color: #ffe082;
}
.subtitulo {
  font-size: 1rem;
  margin-bottom: 20px;
}
.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #ffe082;
  color: #004d40;
  font-weight: bold;
  text-decoration: none;
  border-radius: 30px;
  transition: transform 0.3s, background 0.3s;
}
.btn:hover {
  background: #ffd54f;
  transform: scale(1.1);
}

/* Servicios */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  animation: fadeInUp 1.5s ease;
}
.servicio {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.servicio h2 {
  color: #004d40;
  margin-bottom: 10px;
}
.servicio p {
  color: #555;
}
.servicio:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Animaciones */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); opacity: 1; }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Footer */
footer {
  background: #004d40;
  color: white;
  text-align: center;
  padding: 10px;
  margin-top: auto; /* empuja el footer al final */
}

/* Responsive */
.menu-toggle {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.8rem;
}
@media (max-width: 768px) {
  .navbar nav ul {
    flex-direction: column;
    background: rgba(0,77,64,0.95);
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: none;
  }
  .navbar nav ul.show {
    display: flex;
  }
  .navbar nav ul li {
    margin: 15px 0;
    text-align: center;
  }
  .menu-toggle {
    display: block;
  }
}
