/* ===== Mc Suministros — claro minimalista, acento navy ===== */

:root {
  --navy: #1b2545;
  --navy-soft: #26327a;
  --ink: #171a20;
  --muted: #5d6470;
  --bg: #fafaf7;
  --surface: #ffffff;
  --line: #e8e5dc;
  --cream: #f0ead9;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 32, .06), 0 4px 14px rgba(23, 26, 32, .06);
  --shadow-md: 0 8px 30px rgba(23, 26, 32, .10);
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Sora", var(--font-body);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-soft);
  margin-bottom: .8em;
}

.section-sub { color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ===== Botones ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .7em 1.35em;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.btn:active { transform: scale(.97); }

.btn-lg { padding: .9em 1.7em; font-size: 1rem; }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--navy-soft); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-1px); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { border-color: #fff; transform: translateY(-1px); }

/* ===== Header ===== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, .82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { width: 40px; height: 40px; border-radius: 10px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--navy); }

/* ===== Hero ===== */

.hero { padding: 96px 0 72px; }

.hero .container { max-width: 820px; }
.hero-sub { color: var(--muted); font-size: 1.15rem; max-width: 600px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust-row li {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--line);
  padding: .45em 1em;
  border-radius: 999px;
}

/* ===== Secciones ===== */

.section { padding: 84px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark .eyebrow { color: var(--cream); }
.section-dark .section-sub { color: rgba(255,255,255,.72); }

/* ===== Líneas de negocio ===== */

.lines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}

.line-card {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease, color .25s ease;
}
.line-card:focus { outline: none; }
.line-card:focus-visible { box-shadow: 0 0 0 3px rgba(27, 37, 69, .35); }

@media (hover: hover) {
  .line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
}

.line-card.is-active {
  background: linear-gradient(160deg, var(--navy), var(--navy-soft));
  border-color: var(--navy);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.line-card.is-active h3 { color: #fff; }
.line-card.is-active p { color: rgba(255,255,255,.78); }
.line-card.is-active li { border-color: rgba(255,255,255,.14); }
.line-card.is-active .line-icon {
  background: rgba(255,255,255,.12);
  color: var(--cream);
  box-shadow: none;
}

.line-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-soft));
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(27, 37, 69, .22);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.line-icon svg { width: 26px; height: 26px; fill: currentColor; }

.line-card p { color: var(--muted); font-size: .95rem; transition: color .25s ease; }

.line-card ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  font-size: .9rem;
}
.line-card li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  transition: border-color .25s ease;
}

/* ===== Stats ===== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 44px 0;
}

.stat {
  text-align: left;
  padding: 22px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.02em;
}
.stat-label { font-size: .85rem; color: var(--muted); }

/* ===== Perks ===== */

.perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.perk {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.perk svg { width: 30px; height: 30px; fill: var(--navy); margin-bottom: 14px; }
.perk h4 { font-size: 1.05rem; }
.perk p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ===== Ubicación ===== */

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  margin-top: 40px;
  align-items: stretch;
}

.location-info { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

.info-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.info-row svg { width: 24px; height: 24px; fill: var(--navy); flex: none; margin-top: 2px; }
.info-row strong { display: block; font-family: var(--font-display); }
.info-row span { color: var(--muted); font-size: .93rem; }

.map-link { margin-top: 22px; align-self: flex-start; }

.map-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 340px;
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
}
.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ===== Contacto ===== */

.contact-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 40px; }

.social-row { display: flex; gap: 14px; }
.social-row a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  transition: background .15s ease, transform .15s ease;
}
.social-row a:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.social-row svg { width: 22px; height: 22px; fill: currentColor; }

/* ===== Footer ===== */

.footer { padding: 26px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--navy); text-decoration: none; font-weight: 500; }

/* ===== Botón flotante "Volver arriba" ===== */

.btn-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.btn-top svg { width: 20px; height: 20px; fill: currentColor; }
.btn-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

@media (hover: hover) {
  .btn-top.is-visible:hover { transform: translateY(-3px); }
}

/* ===== Reveal animation ===== */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */

@media (max-width: 860px) {
  .nav { display: none; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 60px 0; }
  .lines-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .header .btn { margin-left: auto; }
}
