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

body {
  font-family: 'Poppins', sans-serif;
  background-color: #34495e;
  color: white;
  line-height: 1.6;
  padding-top: 60px;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #2c3e50;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

nav .logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: 0.3s;
}

nav ul li a:hover {
  border-bottom: 2px solid white;
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav ul {
      display: none;
      flex-direction: column;
      background-color: #2c3e50;
      position: absolute;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
  }

  nav ul.active {
      display: flex;
  }

  .menu-toggle {
      display: block;
  }
}

/* Secciones */
section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  border-bottom: 2px solid white;
  padding-bottom: 5px;
}

/* Contacto */
.contact-form {
  max-width: 500px;
  margin: 20px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px 15px;
  border: 1.5px solid white;
  border-radius: 6px;
  background-color: transparent;
  color: white;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #bbb;
  font-style: italic;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f472b6;
  background-color: rgba(244, 114, 182, 0.1);
}

.contact-form .btn {
  padding: 12px 20px;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  align-self: flex-start;
}

.contact-form .btn:hover {
  background-color: #f472b6;
  color: #34495e;
}


/* Header principal */
.main-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 60vh;
  text-align: center;
}

.main-header h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.main-header p {
  font-size: 1.5rem;
  color: #f1f1f1;
}

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

footer .social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .social-icons a {
  color: white;
  font-size: 2rem;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #f472b6;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
}

/* Proyectos */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.project {
  padding: 20px;
  border: 1px solid white;
  border-radius: 8px;
  background-color: #3e5870;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.project h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project p {
  font-size: 1rem;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.project .btn {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid white;
  border-radius: 5px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.project .btn:hover {
  background-color: white;
  color: #34495e;
}

.project-divider {
  margin: 60px auto;
  border: none;
  border-top: 2px solid #fff;
  width: 60%;
  opacity: 0.2;
}
.project {
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.project-group {
  margin-bottom: 40px;
}

.project-divider,
.sub-divider {
  border: none;
  border-top: 1px solid #ccc;
  margin: 30px 0;
}
