body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f9fafb;
  color: #1f2937;
  overflow-x: hidden;
  padding-bottom: 6rem;
}

.header {
  background: #ffffff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.logo {
  color: #1d4ed8;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.logo:hover {
  color: #2563eb;
}

.nav {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  align-items: center;
}

.nav a {
  color: #1f2937;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #3b82f6;
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a:hover {
  color: #3b82f6;
}

.hamburger {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #1f2937;
  cursor: pointer;
  z-index: 1100;
  transition: color 0.3s ease;
}

.hamburger:hover {
  color: #3b82f6;
}

.hero {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 6rem 0;
  text-align: center;
  margin-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"%3E%3Cfilter id="a"%3E%3CfeTurbulence type="fractalNoise" baseFrequency=".03" numOctaves="3"/%3E%3C/filter%3E%3Crect width="800" height="800" filter="url(%23a)" opacity=".15"/%3E%3C/svg%3E');
  animation: subtleMove 15s infinite linear;
}

@keyframes subtleMove {
  0% { transform: translate(0, 0); }
  50% { transform: translate(30px, 30px); }
  100% { transform: translate(0, 0); }
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  line-height: 1.2;
}

.hero-text {
  font-size: 1.4rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  background: #1d4ed8;
  color: #ffffff;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-soft {
  background: #f3f4f6;
  color: #1f2937;
  border: 1px solid #d1d5db;
  padding: 0.8rem 1.5rem;
  font-weight: 500;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-soft:hover {
  background: #e5e7eb;
  color: #1d4ed8;
  transform: translateY(-3px);
}

.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #1d4ed8;
  position: relative;
}

.section-title::after {
  content: '';
  width: 80px;
  height: 4px;
  background: #3b82f6;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  will-change: transform;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.card.visible {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #1f2937;
}

.card p {
  color: #374151;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-content {
  background: #ffffff;
  padding: 3rem;
  border-radius: 1rem;
  max-width: 90%;
  width: 600px;
  position: relative;
  transform: scale(0.7);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border: 1px solid #e5e7eb;
}

.modal.show .modal-content {
  transform: scale(1);
  opacity: 1;
}

.close {
  position: absolute;
  top: 1.5rem;
  right: 2.5rem;
  font-size: 2rem;
  color: #374151;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #1d4ed8;
}

.tool-content {
  margin-top: 1.5rem;
}

.tool-content label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.tool-content input {
  width: 100%;
  padding: 0.9rem;
  margin-bottom: 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #1f2937;
  font-size: 1rem;
}

.tool-content input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.search-input {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #1f2937;
  font-size: 1rem;
}

.search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
}

.search-message {
  color: #dc2626;
  font-size: 0.95rem;
  margin-top: 0.5rem;
  display: none;
}

.contact-form {
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #1f2937;
  text-align: left;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #f9fafb;
  color: #1f2937;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  width: auto;
  margin: 0 auto;
}

.btn-whatsapp {
  display: block;
  margin: 2.5rem auto;
  width: fit-content;
}

.footer {
  background: #ffffff;
  color: #1f2937;
  padding: 2rem 0;
  text-align: center;
  font-size: 1rem;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.05);
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: transform, opacity;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  display: flex;
  justify-content: space-around;
  padding: 1.2rem 0;
  box-shadow: 0 -3px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.bottom-nav-item {
  color: #1f2937;
  text-decoration: none;
  font-size: 1.8rem;
  transition: color 0.3s ease, transform 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.bottom-nav-item:hover {
  color: #3b82f6;
  transform: scale(1.15);
}

.bottom-hamburger {
  display: none;
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.2rem;
  }

  .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }

  .nav.nav-open {
    display: flex;
    transform: translateY(0);
  }

  .nav a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
    width: 100%;
    text-align: center;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-text {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 2rem;
  }

  .modal-content {
    width: 95%;
    padding: 2.5rem;
  }

  .bottom-nav {
    padding: 1rem 0;
  }

  .bottom-nav-item {
    font-size: 1.6rem;
  }

  .bottom-hamburger {
    display: block;
  }

  .contact-form {
    max-width: 100%;
  }

  .btn-whatsapp {
    width: 90%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .hero-text {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.8rem 1.6rem;
    font-size: 1rem;
  }

  .btn-soft {
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .card h3 {
    font-size: 1.3rem;
  }

  .card p {
    font-size: 0.95rem;
  }
}