/* ==========================================================================
   Solu Industrial Supply — sitio público
   Paleta y tipografía tomadas del ERP interno de Solu para mantener
   consistencia de marca entre el ERP y el sitio web.
   ========================================================================== */
:root {
  --bg: #f6f7fa;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e2e5ec;

  --text: #161a22;
  --muted: #6b7280;
  --muted-2: #9198a3;

  /* Acento de marca (engrane del logo) */
  --brand: #ff4d3d;
  --brand-dark: #e0361f;
  --brand-light: #fff0ed;
  --brand-ring: rgba(255, 77, 61, 0.18);

  /* Ink corporativo — navegación, énfasis, enlaces (mismo tono que la barra/footer) */
  --primary: #38383a;
  --primary-dark: #202021;
  --primary-light: #ececed;

  /* Acero industrial — jerarquía secundaria */
  --secondary: #55708a;
  --secondary-dark: #3d5468;
  --secondary-light: #e7ecf1;

  /* Ink — footer / superficies oscuras */
  --ink: #38383a;
  --ink-2: #2c2c2e;
  --ink-soft: #48484b;
  --ink-border: #4c4c4f;
  --ink-text: #c9c9cc;
  --ink-text-strong: #ffffff;
  --ink-muted: #8b8b8f;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, 0.16);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 140ms var(--ease);
  --med: 220ms var(--ease);

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-dark);
  background: var(--brand-light);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img { height: 54px; width: auto; object-fit: contain; }

@media (max-width: 860px) {
  .brand img { height: 44px; }
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  transition: background var(--fast), color var(--fast);
}

.main-nav a:hover { background: var(--surface-2); }
.main-nav a.active { color: var(--primary); background: var(--primary-light); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  border: none;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg { width: 20px; height: 20px; stroke: var(--text); }

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 16px;
    box-shadow: var(--shadow-md);
  }
  nav.main-nav.open { display: flex; }
  nav.main-nav a { padding: 12px 10px; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-primary { display: none; }
  .nav-actions .btn-primary.mobile-cta { display: inline-flex; }
}

/* ==========================================================================
   Botones
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-primary {
  background: linear-gradient(180deg, var(--brand), var(--brand-dark));
  border-color: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 14px var(--brand-ring);
}

.btn-primary:hover { box-shadow: 0 8px 20px var(--brand-ring); }

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-ghost-light {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); }

.btn-lg { padding: 15px 26px; font-size: 15.5px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 62%, #4a4a4c 100%);
  color: #fff;
}

.hero .wrap {
  padding: 88px 24px 96px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-gear {
  position: absolute;
  top: -140px;
  right: -160px;
  width: 620px;
  height: 620px;
  opacity: 0.7;
  z-index: 1;
  animation: heroGearSpin 60s linear infinite;
  transform-origin: 50% 50%;
}

@keyframes heroGearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-gear { animation: none; transform: rotate(12deg); }
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 17px;
  color: rgba(255,255,255,0.86);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero .eyebrow {
  background: rgba(255,255,255,0.14);
  color: #fff;
  margin-bottom: 18px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stat strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.hero-stat span {
  font-size: 12.5px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(6px);
}

.hero-card h3 { color: #fff; font-size: 16px; margin-bottom: 14px; }

.hero-steps { display: flex; flex-direction: column; gap: 12px; }

.hero-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13.5px;
  color: rgba(255,255,255,0.88);
}

.hero-step b {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 56px 20px 64px; }
  .hero-gear { width: 380px; height: 380px; top: -80px; right: -140px; }
}

/* ==========================================================================
   Secciones generales
   ========================================================================== */
section { padding: 76px 0; }
.section-alt { background: var(--surface); }
.section-dark { background: var(--ink); color: var(--ink-text); }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 12px 0 12px;
}

.section-head p {
  color: var(--muted);
  font-size: 15.5px;
}

.section-dark .section-head p { color: var(--ink-muted); }

/* ==========================================================================
   Tarjetas
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--med), box-shadow var(--med);
}

.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; }
.card-icon.brand { background: var(--brand-light); color: var(--brand-dark); }
.card-icon.secondary { background: var(--secondary-light); color: var(--secondary-dark); }

.card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }

.card ul.mini-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.card ul.mini-list li {
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.card ul.mini-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ==========================================================================
   Proceso (timeline)
   ========================================================================== */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-num {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  z-index: 2;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: -12px;
  width: 2px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-body h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.timeline-body p { color: var(--muted); font-size: 14px; }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
}

.cta-banner h3 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.cta-banner p { color: rgba(255,255,255,0.86); font-size: 14.5px; }

/* ==========================================================================
   Tabla de contacto / info bloques
   ========================================================================== */
.info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; }

.info-row h4 { font-size: 14px; margin-bottom: 3px; }
.info-row p, .info-row a { font-size: 14px; color: var(--muted); text-decoration: none; }
.info-row a:hover { color: var(--primary); }

/* Formulario */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}
textarea { resize: vertical; min-height: 110px; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
  background: var(--ink);
  color: var(--ink-text);
  padding: 60px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink-border);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; }
.footer-brand strong { color: var(--ink-text-strong); font-size: 16px; }

.footer-col h4 {
  color: var(--ink-text-strong);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--ink-text); font-size: 13.5px; transition: color var(--fast); }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 13.5px; color: var(--ink-text); line-height: 1.7; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--ink-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 80;
  transition: transform var(--fast);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ==========================================================================
   Utilidades
   ========================================================================== */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

.page-hero {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 16px; max-width: 60ch; }
