@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1a1a2e; }

.hero-bg {
  background: linear-gradient(135deg, rgba(15,23,42,0.85), rgba(30,58,95,0.8)),
    url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1600&q=80') center/cover;
  min-height: 100vh;
}

.section-divider {
  height: 4px;
  background: linear-gradient(90deg, #c9a96e, #e8d5a3, #c9a96e);
}

.gold-gradient { background: linear-gradient(135deg, #c9a96e, #b8860b); }
.gold-text { color: #c9a96e; }
.navy-bg { background-color: #0f172a; }
.navy-text { color: #0f172a; }

.btn-gold {
  background: linear-gradient(135deg, #c9a96e, #b8860b);
  color: white;
  padding: 16px 40px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(201,169,110,0.4); }

.btn-outline-gold {
  border: 2px solid #c9a96e;
  color: #c9a96e;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-gold:hover { background: #c9a96e; color: white; }

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
}
.feature-card:hover { transform: translateY(-4px); }

.stat-card {
  background: linear-gradient(135deg, #0f172a, #1e3a5f);
  border-radius: 16px;
  padding: 32px;
  color: white;
  text-align: center;
}

.calc-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.calc-input:focus { outline: none; border-color: #c9a96e; }

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus { outline: none; border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }

select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' fill='none' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.animate-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }

.floating { animation: floating 3s ease-in-out infinite; }
@keyframes floating {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Admin styles */
.admin-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.95rem;
}
.admin-input:focus { outline: none; border-color: #c9a96e; }

.admin-btn {
  background: #0f172a;
  color: white;
  padding: 10px 24px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.admin-btn:hover { background: #1e3a5f; }

.leads-table { width: 100%; border-collapse: collapse; }
.leads-table th { background: #f8fafc; padding: 12px; text-align: left; font-size: 0.85rem; color: #64748b; text-transform: uppercase; }
.leads-table td { padding: 12px; border-top: 1px solid #e2e8f0; font-size: 0.9rem; }
.leads-table tr:hover td { background: #f8fafc; }

/* Scroll smooth */
html { scroll-behavior: smooth; }

/* Mobile hamburger menu */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: #0f172a; margin: 6px 0; transition: all 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: white;
  padding: 16px 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 49;
  flex-direction: column;
  gap: 12px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 10px 0; font-size: 1rem; font-weight: 500; color: #374151; border-bottom: 1px solid #f3f4f6; text-decoration: none; }

/* Mobile card comparison tables */
.mobile-compare-card { display: none; }

/* Responsive */
@media (max-width: 768px) {
  .hero-bg { min-height: 90vh; }
  .btn-gold { padding: 14px 28px; font-size: 1rem; }
  .mobile-menu-btn { display: block; }

  /* Reduce section padding on mobile */
  section.py-20 { padding-top: 3rem; padding-bottom: 3rem; }
  section.py-16 { padding-top: 2.5rem; padding-bottom: 2.5rem; }

  /* Nav CTA smaller on mobile */
  nav .btn-gold { padding: 8px 14px !important; font-size: 0.75rem !important; }

  /* Hero stats */
  .hero-bg .flex-wrap.gap-8 { gap: 1rem; }
  .hero-bg .flex-wrap.gap-8 > div { flex: 1 1 40%; }

  /* Stat cards grid 2 cols */
  .stat-card { padding: 20px; }

  /* Tables: horizontal scroll hint */
  .overflow-x-auto { -webkit-overflow-scrolling: touch; }
  .overflow-x-auto table { min-width: 600px; }

  /* Comparativa inversiones: show cards instead of table on mobile */
  .desktop-compare-table { display: none; }
  .mobile-compare-card { display: block; }

  /* Map smaller on mobile */
  .map-container iframe { height: 280px !important; }

  /* Location grid 2 cols on mobile */
  .location-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Feature cards less padding */
  .feature-card { padding: 20px; }

  /* Comparativa MX vs US less padding */
  .compare-country { padding: 20px !important; }
}
