/* ===== Base ===== */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.55;
  color: #1f2937;
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
.container { width: min(1100px, 92%); margin: 0 auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.lead { font-size: 1.08rem; color: #374151; }
.muted { color: #6b7280; }
.small { font-size: 0.9rem; }

/* ===== Header / Nav ===== */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-row {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: #111827;
  color: #ffffff;
  font-weight: 800;
}
.brand-text { font-weight: 800; }
.brand-subtitle { margin: 4px 0 0; font-size: 0.92rem; color: #6b7280; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-link {
  text-decoration: none;
  color: #111827;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav-link:hover { background: #f3f4f6; }
.nav-link.active { background: #111827; color: #ffffff; }

/* ===== Sections ===== */
.section { padding: 44px 0; }
.section-alt { background: #f9fafb; border-top: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; }

/* ===== Hero ===== */
.hero {
  padding: 48px 0;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: start;
}
.quick-points { margin: 16px 0 0; padding-left: 18px; color: #374151; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  text-decoration: none;
  color: #111827;
  background: #ffffff;
  font-weight: 650;
}
.btn:hover { background: #f3f4f6; }
.btn.primary {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}
.btn.primary:hover { background: #0b1220; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}
.list { margin: 10px 0 0; padding-left: 18px; }

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 14px;
}
.price-card {
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  position: relative;
}
.price { font-size: 1.6rem; font-weight: 850; margin: 8px 0 10px; }
.featured { border: 2px solid #111827; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 750;
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.form label { display: block; font-weight: 750; margin-top: 10px; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font: inherit;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 18px 0;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== The Spanish->English hover swap ===== */
.swap {
  display: inline-block;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px dashed transparent;
  cursor: pointer;
  user-select: none;
  outline: none;
}
.swap:hover,
.swap:focus {
  background: #fff7ed;       /* soft highlight */
  border-color: #fdba74;     /* warm border */
}
.swap:active {
  transform: translateY(1px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Services page upgrade */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.card h2 {
  margin-bottom: 0.75rem;
}

.card .list li {
  margin-bottom: 0.55rem;
}

/* Mobile */
@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 1.1rem;
  }
}

/* Fix hover translation readability */
.swap:hover,
.swap:focus {
  background: #ffffff !important;
  color: #111827 !important;
  border-radius: 6px;
  padding: 2px 4px;
}

/* If swap text is inside dark buttons */
.btn.primary .swap:hover,
.btn.primary .swap:focus {
  background: #ffffff !important;
  color: #111827 !important;
}