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

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  line-height: 1.6;
}

/* Utilidades */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #0f172a;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #1d4ed8;
  transform: translateY(-1px);
}

/* Botón menú mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background-color: #0f172a;
  border-radius: 999px;
}

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  background: radial-gradient(circle at top left, #dbeafe 0, transparent 50%), #ffffff;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero-text p {
  color: #4b5563;
  max-width: 32rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Card lateral hero */
.hero-card {
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  border-radius: 1.25rem;
  padding: 2rem;
  color: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.hero-card h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.hero-card p {
  font-size: 0.95rem;
  color: #e5f0ff;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn.primary {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.45);
}

.btn.ghost {
  background-color: #ffffff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn.ghost:hover {
  background-color: #eff6ff;
}

/* Secciones generales */
.section {
  padding: 4rem 0;
}

.section-alt {
  background-color: #f9fafb;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
  color: #0f172a;
}

.section-header p {
  color: #6b7280;
}

/* Layout dos columnas */
.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  color: #4b5563;
}

/* Cards de servicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: #1d4ed8;
}

.card p {
  font-size: 0.95rem;
  color: #4b5563;
}

/* Contacto */
.contact-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form {
  background-color: #ffffff;
  border-radius: 1.25rem;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
}

.form-field input,
.form-field textarea {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.7rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.15);
}

.form-field textarea {
  resize: vertical;
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Footer */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 1.5rem 0;
  background-color: #ffffff;
}

.footer-content {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Responsivo */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card {
    order: -1;
  }

  .two-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    inset: 72px 0 auto 0;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    flex-direction: column;
    padding: 1rem 1.5rem 1.25rem;
    gap: 0.75rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}