/* ============================================================
   Route 360 — Brand Book v2.0 Stylesheet
   Colores oficiales: Route Navy, Signal Blue, Road Steel,
   Evidence Green, Alert Amber, Cloud White
   ============================================================ */

:root {
  --navy: #000080;
  --navy-dark: #000060;
  --navy-light: #1a1a8c;
  --signal-blue: #1F6FEB;
  --signal-blue-dark: #1A67D2;
  --road-steel: #475569;
  --road-steel-light: #64748B;
  --evidence-green: #2E7D32;
  --alert-amber: #F5A623;
  --alert-amber-dark: #D88706;
  --cloud-white: #F8FAFC;
  --color-bg: #FFFFFF;
  --color-text: #1E293B;
  --color-border: #E2E8F0;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 14px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --max-width: 1200px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', monospace;
  --transition: 0.3s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-sans); color: var(--color-text); line-height: 1.6; background: var(--color-bg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--cloud-white); }

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(248,250,252,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--navy); }
.logo img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-size: 0.95rem; font-weight: 500; color: var(--color-text); transition: var(--transition); }
.nav a:hover { color: var(--signal-blue); }
.nav-cta {
  background: var(--navy); color: white !important;
  padding: 10px 24px; border-radius: 8px; font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--signal-blue); transform: translateY(-1px); }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* HERO */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 50%, #000050 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8L72 32L60 40L72 48L40 72L8 48L20 40L8 32Z' fill='white' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 100px;
}
.hero-inner { position: relative; z-index: 2; color: white; padding: 120px 0 60px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
  margin-bottom: 24px; color: var(--alert-amber);
}
.hero h1 { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; max-width: 800px; }
.hero h1 .highlight { color: var(--alert-amber); }
.hero-sub { font-size: 1.3rem; color: rgba(255,255,255,0.7); font-weight: 500; margin-bottom: 24px; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 8px; font-weight: 600; font-size: 1rem;
  border: none; cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-primary { background: var(--alert-amber); color: var(--navy-dark); }
.btn-primary:hover { background: var(--alert-amber-dark); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: rgba(255,255,255,0.1); color: white; border: 2px solid rgba(255,255,255,0.3); }
.btn-secondary:hover { background: rgba(255,255,255,0.2); border-color: white; }
.btn-navy { background: var(--navy); color: white; }
.btn-navy:hover { background: var(--signal-blue); transform: translateY(-2px); }
.btn-blue { background: var(--signal-blue); color: white; }
.btn-blue:hover { background: var(--signal-blue-dark); transform: translateY(-2px); }

/* SECTION TITLES */
.section-title { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-title h2 { font-size: 2.5rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.section-title p { font-size: 1.15rem; color: var(--road-steel); }
.eyebrow { color: var(--signal-blue); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; display: block; }

/* PRODUCT CARDS */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.product-card {
  background: white; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 40px 32px; transition: var(--transition); position: relative; overflow: hidden;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--signal-blue); }
.product-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--navy); }
.product-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.product-card .product-role { color: var(--signal-blue); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; display: block; }
.product-card p { color: var(--road-steel); margin-bottom: 24px; font-size: 0.95rem; }
.product-card ul { margin-bottom: 28px; }
.product-card li { padding-left: 24px; position: relative; margin-bottom: 8px; font-size: 0.9rem; color: var(--color-text); }
.product-card li::before { content: '✓'; position: absolute; left: 0; color: var(--evidence-green); font-weight: 700; }
.product-link { color: var(--signal-blue); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 4px; transition: var(--transition); }
.product-link:hover { color: var(--navy); gap: 8px; }

/* STATS */
.stats { background: var(--navy); color: white; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat h3 { font-size: 3rem; font-weight: 800; color: var(--alert-amber); margin-bottom: 8px; }
.stat p { font-size: 0.95rem; color: rgba(255,255,255,0.7); }

/* PROBLEM SECTION */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem-text h2 { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 20px; }
.problem-text p { font-size: 1.1rem; color: var(--road-steel); margin-bottom: 16px; }
.problem-list { margin-top: 24px; }
.problem-list li { padding-left: 28px; position: relative; margin-bottom: 12px; font-size: 1rem; color: var(--color-text); }
.problem-list li::before { content: '—'; position: absolute; left: 0; color: var(--alert-amber); font-weight: 700; }

/* PROCESS */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-step { text-align: center; position: relative; }
.process-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800; margin: 0 auto 24px;
}
.process-step h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.process-step p { color: var(--road-steel); font-size: 0.95rem; }

/* FEATURES */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.feature-item { padding: 32px; background: white; border: 1px solid var(--color-border); border-radius: var(--radius); transition: var(--transition); }
.feature-item:hover { box-shadow: var(--shadow); border-color: var(--signal-blue); }
.feature-item h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.feature-item p { color: var(--road-steel); font-size: 0.95rem; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: white; text-align: center; }
.cta-section h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-item-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--cloud-white); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item h4 { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.contact-item p { font-size: 0.95rem; color: var(--road-steel); }
.contact-form { background: white; padding: 40px; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; color: var(--navy); font-size: 0.9rem; }
.form-control { width: 100%; padding: 12px 16px; border: 1px solid var(--color-border); border-radius: 8px; font-size: 1rem; font-family: var(--font-sans); transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--signal-blue); box-shadow: 0 0 0 3px rgba(31,111,235,0.1); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* FOOTER */
.footer { background: var(--navy-dark); color: rgba(255,255,255,0.6); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand h4 { color: white; font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.footer-brand p { font-size: 0.9rem; max-width: 300px; }
.footer-brand .tagline { color: var(--alert-amber); font-style: italic; margin-top: 8px; font-size: 0.85rem; }
.footer-col h5 { color: white; font-size: 0.95rem; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.9rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 0.85rem; }

/* PRODUCT PAGE */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: white; padding: 140px 0 60px;
}
.page-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 16px; max-width: 700px; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,0.85); max-width: 600px; }

/* RESPONSIVE */
@media (max-width: 968px) {
  .products-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: white; padding: 24px; gap: 16px; border-bottom: 1px solid var(--color-border); }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1.1rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 2rem; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}