:root {
  --azul: #0056b3;
  --rojo: #d90429;
  --gris: #f4f4f4;
  --blanco: #ffffff;
  --fuente: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--fuente);
  background: var(--gris);
  color: #333;
}

.logo {
  /*max-width: 280px;*/
  margin-bottom: 1rem;
  filter: drop-shadow(2px 2px 4px white);
}

.logo-small {
  width: 120px;
  height: auto;
  margin-right: auto;
  filter: drop-shadow(1px 1px 3px white);
}
.navbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}


.hero {
  position: relative;
  background: url('https://images.unsplash.com/photo-1672040649586-b8bfe9ea4c80?q=80&w=1470&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--rojo);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: #b70320;
}

.navbar {
  position: sticky;
  top: 0;
  background: white;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  z-index: 100;
}

.navbar a {
  text-decoration: none;
  color: var(--azul);
  font-weight: 600;
}

.section {
  padding: 3rem 1rem;
  max-width: 1000px;
  margin: auto;
  background: white;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  flex: 1 1 calc(33% - 1rem);
  background: var(--azul);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input, textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  font-size: 2rem;
  padding: 0.6rem 0.8rem;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp:hover {
  transform: scale(1.1);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .project-list {
    flex-direction: column;
  }

  .project-card {
    flex: 1 1 100%;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .navbar {
    flex-wrap: wrap;
  }
}
