/* ===== BuildTech Landing Page — buildtech.mx ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #0a1628;
  --bg-surface: #0f1e35;
  --bg-card: #162035;
  --bg-elevated: #1a2744;
  --border: #1e3050;
  --primary: #4dabf7;
  --primary-dark: #339af0;
  --primary-glow: rgba(77,171,247,0.15);
  --success: #4ade80;
  --warning: #fb923c;
  --error: #f87171;
  --teal: #22d3ee;
  --purple: #c084fc;
  --text: #e2eaf6;
  --text-muted: #8ba3c7;
  --text-subtle: #5a7ca0;
  --radius: 12px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal); }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,22,40,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 64px;
}
.nav .container {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--text);
}
.nav-logo .icon { font-size: 28px; }
.nav-logo span { background: linear-gradient(135deg, var(--primary), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

.nav-cta { display: flex; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 8px; font-weight: 600;
  font-size: 14px; border: none; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--bg-dark); }
.btn-primary:hover { background: var(--teal); color: var(--bg-dark); box-shadow: 0 0 20px rgba(34,211,238,.3); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid rgba(77,171,247,.4); }
.btn-outline:hover { background: var(--primary-glow); border-color: var(--primary); color: var(--text); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

.hamburger { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; }

/* ===== HERO ===== */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(77,171,247,.08) 0%, transparent 60%);
}
.hero h1 {
  font-size: clamp(36px, 5vw, 64px); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p {
  font-size: clamp(16px, 2vw, 20px); color: var(--text-muted);
  max-width: 700px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; margin-top: 32px; padding: 8px 20px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-muted); font-size: 13px;
}
.hero-badge strong { color: var(--success); }

/* ===== FEATURES ===== */
.features { padding: 100px 24px; }
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-header h2 {
  font-size: 36px; font-weight: 700; margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }
.section-badge {
  display: inline-block; padding: 6px 16px; margin-bottom: 16px;
  background: var(--primary-glow); color: var(--primary); border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: all .3s;
}
.feature-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(77,171,247,.1);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 16px;
}
.feature-icon.blue { background: rgba(77,171,247,.15); color: var(--primary); }
.feature-icon.green { background: rgba(74,222,128,.15); color: var(--success); }
.feature-icon.orange { background: rgba(251,146,60,.15); color: var(--warning); }
.feature-icon.purple { background: rgba(192,132,252,.15); color: var(--purple); }
.feature-icon.teal { background: rgba(34,211,238,.15); color: var(--teal); }
.feature-icon.red { background: rgba(248,113,113,.15); color: var(--error); }

.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }

/* ===== SUPPLIER BUTTON ===== */
.btn-supplier { border-color: rgba(251,146,60,.5); color: var(--warning); }
.btn-supplier:hover { background: rgba(251,146,60,.15); border-color: var(--warning); color: var(--warning); }
.btn-teal { background: var(--teal); color: var(--bg-dark); }
.btn-teal:hover { background: #06b6d4; box-shadow: 0 0 20px rgba(34,211,238,.3); }
.btn-orange { background: var(--warning); color: var(--bg-dark); }
.btn-orange:hover { background: #f97316; box-shadow: 0 0 20px rgba(251,146,60,.3); }

/* ===== 3 PORTALS ===== */
.portals { padding: 100px 24px; background: var(--bg-surface); }
.portals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.portal-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 36px;
  border: 1px solid var(--border); transition: all .3s; position: relative; overflow: hidden;
}
.portal-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.portal-blue::before { background: linear-gradient(90deg, var(--primary), var(--teal)); }
.portal-teal::before { background: linear-gradient(90deg, var(--teal), #06b6d4); }
.portal-orange::before { background: linear-gradient(90deg, var(--warning), #f97316); }
.portal-card:hover { transform: translateY(-6px); }
.portal-blue:hover { border-color: var(--primary); box-shadow: 0 12px 40px rgba(77,171,247,.12); }
.portal-teal:hover { border-color: var(--teal); box-shadow: 0 12px 40px rgba(34,211,238,.12); }
.portal-orange:hover { border-color: var(--warning); box-shadow: 0 12px 40px rgba(251,146,60,.12); }
.portal-icon { font-size: 40px; margin-bottom: 16px; }
.portal-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.portal-card > p { color: var(--text-muted); font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.portal-features { list-style: none; margin-bottom: 28px; }
.portal-features li {
  padding: 6px 0; font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; gap: 8px;
}
.portal-features li::before { content: '✓'; font-weight: 700; font-size: 12px; }
.portal-blue .portal-features li::before { color: var(--primary); }
.portal-teal .portal-features li::before { color: var(--teal); }
.portal-orange .portal-features li::before { color: var(--warning); }
.portal-card .btn { width: 100%; justify-content: center; }

/* ===== MARKETPLACE ===== */
.marketplace { padding: 100px 24px; }
.marketplace-flow {
  display: flex; align-items: flex-start; justify-content: center; gap: 16px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.flow-step {
  flex: 1; min-width: 180px; max-width: 220px; text-align: center;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 16px;
}
.flow-icon { font-size: 32px; margin-bottom: 12px; }
.flow-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.flow-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.flow-arrow { font-size: 24px; color: var(--warning); margin-top: 40px; font-weight: 700; }
.marketplace-cta { text-align: center; }
.marketplace-note {
  display: block; margin-top: 12px; color: var(--text-muted); font-size: 13px;
}

/* ===== MOBILE APP ===== */
.mobile-app { padding: 100px 24px; background: var(--bg-surface); }
.mobile-content { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }
.mobile-text h2 { font-size: 36px; margin: 12px 0; }
.mobile-text > p { color: var(--text-muted); font-size: 16px; line-height: 1.7; margin-bottom: 24px; }
.mobile-features { list-style: none; margin-bottom: 32px; }
.mobile-features li { padding: 8px 0; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.mobile-features li strong { color: var(--text); }
.app-badges { display: flex; gap: 10px; align-items: center; }
.app-badge {
  padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
}
.app-badge-soon { font-size: 12px; color: var(--text-subtle); font-style: italic; }

/* Phone mockup */
.phone-frame {
  width: 280px; margin: 0 auto; background: var(--bg-elevated);
  border-radius: 32px; padding: 12px; border: 2px solid var(--border);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.phone-screen {
  background: var(--bg-dark); border-radius: 24px; padding: 20px 16px; min-height: 400px;
  display: flex; flex-direction: column; gap: 12px;
}
.mock-header {
  text-align: center; font-weight: 700; font-size: 18px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--primary), var(--teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mock-card {
  background: var(--bg-card); border-radius: 10px; padding: 14px;
  font-weight: 600; font-size: 16px; border: 1px solid var(--border);
}
.mock-item {
  background: var(--bg-card); border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: var(--text-muted); border-left: 3px solid var(--primary);
}
.mock-item.mock-teal { border-left-color: var(--teal); }
.mock-item.mock-orange { border-left-color: var(--warning); }
.mock-nav {
  margin-top: auto; display: flex; justify-content: space-around;
  padding-top: 12px; border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-subtle);
}

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 24px; background: var(--bg-surface); }
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 900px; margin: 0 auto;
}
.step { text-align: center; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--teal));
  color: var(--bg-dark);
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 14px; }

/* ===== PRICING ===== */
.pricing { padding: 100px 24px; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 800px; margin: 0 auto;
}
.price-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; position: relative; overflow: hidden;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(77,171,247,.15);
}
.price-card.featured::before {
  content: 'Recomendado'; position: absolute; top: 16px; right: -32px;
  background: var(--primary); color: var(--bg-dark); font-size: 12px; font-weight: 700;
  padding: 4px 40px; transform: rotate(45deg);
}
.price-name { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.price-amount { font-size: 48px; font-weight: 800; margin-bottom: 4px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-desc { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.price-features { list-style: none; margin-bottom: 32px; }
.price-features li {
  padding: 8px 0; font-size: 14px; color: var(--text-muted);
  display: flex; align-items: center; gap: 10px;
}
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; }
.price-card .btn { width: 100%; justify-content: center; }

/* ===== FAQ ===== */
.faq { padding: 100px 24px; background: var(--bg-surface); }
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border); padding: 24px 0;
}
.faq-item summary {
  font-size: 16px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--primary); }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== CTA ===== */
.cta-section {
  padding: 100px 24px; text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(77,171,247,.08) 0%, transparent 60%);
}
.cta-section h2 { font-size: 36px; margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 32px; font-size: 18px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  padding: 60px 24px 30px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-top: 12px; line-height: 1.6; }
.footer h4 { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-muted); font-size: 13px; }
.footer ul a:hover { color: var(--primary); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-subtle);
}

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 120px 24px 80px; }
.legal-page h1 { font-size: 36px; margin-bottom: 8px; }
.legal-page .last-updated { color: var(--text-muted); margin-bottom: 40px; font-size: 14px; }
.legal-page h2 { font-size: 22px; margin: 40px 0 16px; color: var(--primary); }
.legal-page h3 { font-size: 18px; margin: 24px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; line-height: 1.8; margin-bottom: 12px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page .highlight-box {
  background: var(--bg-card); border-left: 4px solid var(--warning);
  padding: 20px; border-radius: 0 8px 8px 0; margin: 24px 0;
}
.legal-page .highlight-box p { color: var(--warning); margin: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .portals-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .marketplace-flow { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 0; }
  .flow-step { max-width: 100%; }
  .mobile-content { grid-template-columns: 1fr; }
  .mobile-mockup { order: -1; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
}
@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 16px 60px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .app-badges { flex-wrap: wrap; }
}
