/* ============================================================
   MEGA SUPLIDORA Y SERVICIOS MD C.A. — Sitio Web (tema claro)
   ============================================================ */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 900;
  src: local("Sora");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  src: local("Inter");
}

:root {
  --bg: #ffffff;
  --bg-2: #f3f6fb;
  --surface: #ffffff;
  --navy: #123a6b;
  --blue: #2e7bff;
  --cyan: #0aa7c9;
  --amber: #ff9f1c;
  --text: #0e1a2d;
  --muted: #5a6a85;
  --line: rgba(13, 28, 56, 0.1);
  --line-strong: rgba(13, 28, 56, 0.18);
  --glass: rgba(255, 255, 255, 0.65);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --radius: 20px;
  --radius-sm: 13px;
  --shadow: 0 24px 70px -30px rgba(18, 40, 90, 0.35);
  --font-d: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-b: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: rgba(46, 123, 255, 0.25); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #eef2f8; }
::-webkit-scrollbar-thumb { background: #c3cede; border-radius: 20px; border: 2px solid #eef2f8; }
::-webkit-scrollbar-thumb:hover { background: #a8b6ca; }

.container { width: min(1180px, 92%); margin-inline: auto; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: linear-gradient(90deg, var(--cyan), transparent); border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-d); line-height: 1.12; font-weight: 700; color: var(--text); }
.display { font-size: clamp(2.3rem, 5.4vw, 4.35rem); letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); letter-spacing: -0.02em; }
.h3 { font-size: clamp(1.1rem, 1.9vw, 1.32rem); }
.grad-text {
  background: linear-gradient(96deg, #0b2a5b 5%, #0f5fe0 48%, #0aa7c9 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.grad-text-amber { background: linear-gradient(90deg, #e07f00, #ff4f2e); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 999px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: linear-gradient(120deg, #2e7bff, #3fb6ff);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(46, 123, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -14px rgba(46, 123, 255, 0.85); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}
.btn-ghost:hover { background: #eef2f8; transform: translateY(-2px); }
.btn-amber {
  background: linear-gradient(120deg, #ffb020, #ff8a3d);
  color: #241506;
  box-shadow: 0 12px 30px -12px rgba(255, 158, 32, 0.65);
}
.btn-amber:hover { transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px -22px rgba(18, 40, 90, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 80px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
@media (min-width: 1001px) { .brand img { height: 68px; } }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(13, 28, 56, 0.06); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 10px 18px; font-size: 0.9rem; }

.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10, 18, 30, 0.35);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.drawer.open { opacity: 1; pointer-events: auto; }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 84vw);
  background: #ffffff;
  border-left: 1px solid var(--line);
  padding: 100px 30px 30px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-panel a { font-family: var(--font-d); font-size: 1.25rem; padding: 12px 6px; border-bottom: 1px solid var(--line); }
.drawer-panel .btn { margin-top: 18px; justify-content: center; }

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  flex: none;
}
.lang-btn {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s, background 0.25s, box-shadow 0.25s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: linear-gradient(120deg, #2e7bff, #3fb6ff);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(46, 123, 255, 0.7);
}
.drawer-panel .lang-switch { margin-top: 24px; align-self: flex-start; }

/* Back to top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #2e7bff, #3fb6ff);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(46, 123, 255, 0.8);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 130px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(46, 123, 255, 0.14), transparent 60%),
    radial-gradient(900px 640px at 8% 8%, rgba(63, 214, 246, 0.12), transparent 55%),
    linear-gradient(180deg, #ffffff, #f2f6fc 60%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 28, 56, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 28, 56, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}
.hero-glow.g1 { width: 480px; height: 480px; right: -120px; top: 120px; background: rgba(46, 123, 255, 0.35); }
.hero-glow.g2 { width: 320px; height: 320px; left: -80px; bottom: -60px; background: rgba(63, 214, 246, 0.25); }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  grid-template-areas: "copy art" "cta art" "stats art";
  column-gap: 24px;
  align-items: center;
}
.hero-copy { grid-area: copy; }
.hero-cta { grid-area: cta; }
.hero-stats { grid-area: stats; }
.hero-art { grid-area: art; }
.hero .container { width: min(1400px, 96%); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { margin: 0 0 22px; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); padding-top: 26px; }
.stat { padding-right: 34px; margin-right: 34px; border-right: 1px solid var(--line); }
.stat:last-child { border: 0; margin: 0; padding: 0; }
.stat b { font-family: var(--font-d); font-size: 1.7rem; display: block; line-height: 1.1; }
.stat span { font-size: 0.86rem; color: var(--muted); }

.hero-art { grid-area: art; position: relative; align-self: stretch; }
.hero-art .hero-video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(18, 40, 90, 0.22);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  padding: 20px 0;
  animation: scroll 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.marquee-track span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); opacity: 0.55; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 780px; margin-bottom: 54px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); }

.alt-bg { background: linear-gradient(180deg, #eef3fa, #f7faff 30%, #eef3fa); }

/* ---------- Brand cards ---------- */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.brand-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 30px;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 14px 40px -28px rgba(18, 40, 90, 0.25);
}
.brand-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(18, 40, 90, 0.3); }
.brand-card::before {
  content: "";
  position: absolute;
  top: -70px; right: -70px;
  width: 200px; height: 200px;
  border-radius: 50%;
  opacity: 0.14;
  filter: blur(30px);
  transition: opacity 0.4s;
}
.brand-card:hover::before { opacity: 0.24; }
.brand-top { display: flex; align-items: center; justify-content: space-between; }
.brand-logo-img { height: 66px; width: auto; object-fit: contain; }
.bc-mobil .brand-logo-img { height: 88px; }
.brand-chip {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.brand-card p { color: var(--muted); font-size: 0.95rem; }
.brand-list { display: grid; gap: 9px; margin-top: auto; }
.brand-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(13, 28, 56, 0.035);
  border: 1px solid rgba(13, 28, 56, 0.05);
}
.brand-list li b { font-weight: 700; color: var(--text); font-size: 0.92rem; white-space: nowrap; }
.brand-list li span { color: var(--muted); font-size: 0.85rem; line-height: 1.35; }
.brand-card .tag {
  font-size: 0.78rem; color: var(--blue);
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 6px; margin-top: 2px;
}
.brand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.brand-actions .tag { margin-top: 0; text-transform: none; letter-spacing: 0.01em; }
.brand-actions .tag-dl {
  color: #9a5b00;
  border: 1px solid #f0a820;
  border-radius: 999px;
  padding: 6px 13px;
  background: #fff8e6;
  transition: background 0.2s, color 0.2s;
}
.brand-actions .tag-dl:hover { background: #f0a820; color: #fff; }

.bc-petro::before { background: #c8102e; }
.bc-total::before { background: #2e7bff; }
.bc-mobil::before { background: #ff4f4f; }

/* ---------- Sector bento ---------- */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sector-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 14px 40px -30px rgba(18, 40, 90, 0.22);
}
.sector-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(18, 40, 90, 0.3); }
.sector-card.wide { grid-column: 1 / -1; }
.sector-card .sector-img {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  margin: -30px -30px 20px;
  height: 200px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: center / cover no-repeat;
}
.sector-card .sector-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.56));
  pointer-events: none;
}
.sector-card .sector-img--mineria::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.7));
}
.sector-card .sector-img h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 20px;
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}
.sector-card .sector-img p {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.sector-card .sector-img--mineria { background-image: url("../img/mineria.jpg"); }
.sector-card .sector-img--carga { background-image: url("../img/carga.jpg"); }
.sector-card .sector-img--petroleo { background-image: url("../img/petroleo.jpg"); }
.sector-card .sector-img--marina { background-image: url("../img/marina.jpg"); }
.sector-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 20px;
  color: #fff;
}
.sector-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.sector-card > p { color: var(--muted); margin-bottom: 20px; font-size: 0.95rem; }
.pairs { display: grid; gap: 10px; }
.pair {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-radius: 12px;
  background: rgba(13, 28, 56, 0.035);
  border: 1px solid rgba(13, 28, 56, 0.05);
  font-size: 0.87rem;
}
.pair .app { color: var(--muted); font-weight: 500; }
.pair .prod { font-family: var(--font-d); font-weight: 600; font-size: 0.9rem; }
.pair .ben { color: #0894b9; font-size: 0.82rem; text-align: right; }
@media (max-width: 720px) {
  .pair { grid-template-columns: 1fr; }
  .pair .ben { text-align: left; }
}

/* ---------- Category chips preview ---------- */
.cats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 12px 34px -30px rgba(18, 40, 90, 0.2);
}
.cat-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 20px 48px -30px rgba(18, 40, 90, 0.28); }
.cat-card .num { font-family: var(--font-d); color: var(--cyan); font-size: 0.86rem; font-weight: 700; }
.cat-card b { font-family: var(--font-d); font-size: 1.05rem; }
.cat-card span { color: var(--muted); font-size: 0.88rem; flex: 1; }
.cat-card .go { color: var(--blue); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.cat-card .go svg { width: 14px; height: 14px; transition: transform 0.3s; }
.cat-card:hover .go svg { transform: translateX(4px); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  border-radius: var(--radius-sm);
  padding: 26px 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 12px 34px -32px rgba(18, 40, 90, 0.2);
}
.feature:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 20px 48px -32px rgba(18, 40, 90, 0.28); }
.feature .fi { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: rgba(46, 123, 255, 0.12); border: 1px solid rgba(46, 123, 255, 0.2); color: var(--blue); }
.feature h4 { font-size: 1.02rem; margin-bottom: 8px; }
.feature p { font-size: 0.88rem; color: var(--muted); }

/* ---------- About / location band ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-copy p { color: var(--muted); margin-bottom: 16px; }
.about-list { display: grid; gap: 14px; margin-top: 26px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; }
.about-list .tick { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; background: rgba(10, 167, 201, 0.14); color: #0894b9; font-size: 13px; margin-top: 2px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.info-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(46, 123, 255, 0.09), #ffffff);
  padding: 26px;
  box-shadow: 0 12px 34px -32px rgba(18, 40, 90, 0.2);
}
.info-card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #2e7bff, #3fb6ff); color: #fff; margin-bottom: 16px; }
.info-card h4 { margin-bottom: 6px; font-size: 1.02rem; }
.info-card p { font-size: 0.92rem; color: var(--muted); }
.info-card b { color: var(--text); font-weight: 600; }

/* ---------- CTA banner ---------- */
.cta-band {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(46, 123, 255, 0.28);
  padding: 56px 46px;
  overflow: hidden;
  background:
    radial-gradient(700px 300px at 85% 50%, rgba(46, 123, 255, 0.16), transparent 60%),
    linear-gradient(120deg, #eef4ff, #deEBFF);
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 52ch; margin-bottom: 28px; }
.cta-band .btn { position: relative; z-index: 2; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #eef2f8; padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--muted); font-size: 0.92rem; max-width: 40ch; }
.footer h5 { font-family: var(--font-d); font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: 0.94rem; transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }
.footer-contact li { display: flex; gap: 12px; color: var(--muted); font-size: 0.93rem; margin-bottom: 12px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal].revealed { transform: none; }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ============================================================
   PÁGINA CATÁLOGOS
   ============================================================ */
.page-hero { padding: 160px 0 56px; background: radial-gradient(1000px 480px at 50% -10%, rgba(46, 123, 255, 0.14), transparent 60%), linear-gradient(180deg, #ffffff, #f2f6fc); }
.page-hero h1 { margin: 16px 0 14px; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { color: var(--muted); max-width: 60ch; }

.catalog-toolbar {
  position: sticky;
  top: 80px;
  z-index: 40;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -24px rgba(18, 40, 90, 0.3);
  padding: 18px 0;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.search-box {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0 18px;
  height: 50px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46, 123, 255, 0.16); }
.search-box svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search-box input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 0.98rem; height: 100%; }
.search-box input::placeholder { color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.86rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: #ffffff;
  transition: all 0.25s;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); background: #eef2f8; }
.chip.active { background: linear-gradient(120deg, #2e7bff, #3fb6ff); border-color: transparent; color: #fff; box-shadow: 0 8px 22px -10px rgba(46, 123, 255, 0.7); }
.chip[data-brand="Petro-Canada"].active { background: linear-gradient(120deg, #c8102e, #ff5a5a); box-shadow: 0 8px 22px -10px rgba(200, 16, 46, 0.7); }
.chip[data-brand="TotalEnergies"].active { background: linear-gradient(120deg, #16408f, #2e7bff); box-shadow: 0 8px 22px -10px rgba(46, 123, 255, 0.8); }

.cat-select {
  height: 50px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  cursor: pointer;
}
.cat-select option { background: #ffffff; color: var(--text); }
.cat-select:focus { border-color: var(--blue); }

.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
}
.result-bar button { color: var(--blue); font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
.result-bar button:hover { text-decoration: underline; }

.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.4s;
  animation: cardIn 0.5s var(--ease) both;
  box-shadow: 0 14px 40px -34px rgba(18, 40, 90, 0.25);
}
.prod-card:hover { transform: translateY(-7px); border-color: var(--line-strong); box-shadow: 0 26px 60px -34px rgba(18, 40, 90, 0.35); }
@keyframes cardIn { from { opacity: 0; transform: scale(0.96) translateY(14px); } to { opacity: 1; transform: none; } }
.prod-media { position: relative; aspect-ratio: 1; background: #eef2f8; overflow: hidden; }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.prod-card:hover .prod-media img { transform: scale(1.06); }
.prod-brand {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 16px -8px rgba(18, 40, 90, 0.3);
  color: var(--text);
}
.prod-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prod-cat { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.prod-body h3 { font-size: 1.05rem; line-height: 1.25; }
.prod-body p { font-size: 0.9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; }
.prod-actions .qbtn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.25s;
}
.qbtn.solid { background: linear-gradient(120deg, #2e7bff, #3fb6ff); color: #fff; }
.qbtn.solid:hover { box-shadow: 0 10px 24px -10px rgba(46, 123, 255, 0.85); transform: translateY(-2px); }
.qbtn.ghost { border: 1px solid var(--line-strong); color: var(--text); background: #fff; }
.qbtn.ghost:hover { background: #eef2f8; }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty b { font-family: var(--font-d); font-size: 1.3rem; color: var(--text); display: block; margin-bottom: 8px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  width: min(760px, 96vw);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 40px 120px -30px rgba(15, 23, 42, 0.5);
}
.modal.open .modal-panel { transform: none; }
.modal-media { background: #eef2f8; position: relative; }
.modal-media img { width: 100%; height: 100%; object-fit: cover; }
.modal-brand-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 84px;
  height: 44px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  padding: 8px 12px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 18px -8px rgba(18, 40, 90, 0.35);
}
.modal-body { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.modal-body .prod-cat { font-size: 0.74rem; }
.modal-body h2 { font-size: 1.45rem; line-height: 1.2; }
.modal-body .desc { color: var(--muted); font-size: 0.96rem; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.modal-tags span { font-size: 0.78rem; padding: 6px 12px; border-radius: 999px; background: #eef2f8; border: 1px solid var(--line); color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 12px; }
.modal-actions .qbtn {
  flex: 1 1 130px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  color: var(--text);
  z-index: 3;
  transition: 0.25s;
  box-shadow: 0 8px 20px -10px rgba(18, 40, 90, 0.3);
}
.modal-close:hover { background: #eef2f8; transform: rotate(90deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "art" "cta" "stats"; }
  .hero-art { order: 0; }
  .hero-cta { margin-top: 28px; }
  .hero-video { height: 260px; min-height: 260px; }
  .brands-grid, .cats-grid { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .sectors { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .burger { display: flex; }
  .brand { flex: none; }
  .brand img { height: 46px; flex: none; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 6px 10px; font-size: 0.72rem; gap: 6px; }
  .nav-cta .btn svg { width: 13px; height: 13px; }
  .lang-btn { font-size: 0.7rem; padding: 6px 9px; }
  .hero { padding-top: 130px; }
  .section { padding: 72px 0; }
  .brands-grid, .cats-grid, .features, .about-cards, .footer-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .stat { padding-right: 16px; margin-right: 16px; }
  .modal-panel { grid-template-columns: 1fr; }
  .modal-media { aspect-ratio: 1.4; }
  .cta-band { padding: 40px 26px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .search-box { height: 42px; padding: 0 14px; flex: 1 1 auto; }
  .search-box input { font-size: 0.95rem; }
}
@media (max-width: 480px) {
  .pair { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
}

/* ---------- Carrito (cotización) ---------- */
.cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(120deg, #2e7bff, #3fb6ff);
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(46, 123, 255, 0.85);
  transition: transform 0.3s;
}
.cart-fab:hover { transform: translateY(-3px); }
.cart-fab svg { width: 24px; height: 24px; }
.cart-fab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #e0262f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -4px rgba(224, 38, 47, 0.7);
}
.to-top.show { bottom: 96px; }

/* Toast */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(24px);
  z-index: 300;
  background: #0e1a2d;
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
  max-width: 90vw;
}
.cart-toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.cart-toast b { font-size: 0.95rem; }
.cart-toast span { color: #b9c6dd; font-size: 0.85rem; }
.cart-toast a { color: #6fb7ff; font-size: 0.82rem; font-weight: 600; }

/* Página de cotización */
.cart-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.cart-list-title { font-family: var(--font-d); font-size: 1.15rem; margin: 0; }
.btn-clear { border-color: #d9534f; color: #c0392b; }
.btn-clear:hover { background: #d9534f; border-color: #d9534f; color: #fff; }
.cart-items { display: grid; gap: 12px; margin-bottom: 34px; }
.cart-row {
  display: grid;
  grid-template-columns: 84px 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.cart-thumb { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #eef2f8; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-brand { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); font-weight: 700; }
.cart-name { font-family: var(--font-d); font-size: 1rem; line-height: 1.2; }
.cart-cat { color: var(--muted); font-size: 0.82rem; }
.cart-qty { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cart-qty label { font-size: 0.74rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: #fff;
  font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text);
}
.stepper input {
  width: 56px; height: 30px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 8px;
  font-family: var(--font-d); font-weight: 600;
}
.cart-remove {
  width: 34px; height: 34px; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  color: var(--muted); cursor: pointer; display: grid; place-items: center;
}
.cart-remove:hover { color: #e0262f; background: rgba(224, 38, 47, 0.08); }
.cart-empty {
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 30px;
}
.cart-empty b { font-family: var(--font-d); font-size: 1.3rem; display: block; margin-bottom: 8px; }
.cart-empty p { color: var(--muted); margin-bottom: 22px; }

.quote-form {
  border-top: 2px solid var(--line);
  padding-top: 34px;
  display: none;
}
.quote-form-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.quote-form-head h3 { font-size: 1.3rem; }
.quote-form-head span { color: var(--muted); font-size: 0.82rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid label, .form-notes label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text); font-weight: 500; }
.form-grid input, .form-notes textarea {
  font-family: inherit; font-size: 0.95rem;
  padding: 12px 14px; border: 1px solid var(--line-strong);
  border-radius: 12px; outline: 0; transition: border-color 0.3s, box-shadow 0.3s;
  background: #fff; color: var(--text);
}
.form-grid input:focus, .form-notes textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(46,123,255,0.14); }
.form-notes { margin-top: 16px; }
.form-notes textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-msg { margin-top: 16px; font-size: 0.92rem; }
.form-msg.ok { color: #0aa7c9; }
.form-msg.error { color: #e0262f; }
@media (max-width: 640px) {
  .cart-row { grid-template-columns: 64px 1fr auto; grid-template-areas: "th info rm" "th qty qty"; }
  .cart-thumb { width: 64px; height: 64px; grid-area: th; }
  .cart-info { grid-area: info; }
  .cart-qty { grid-area: qty; align-items: flex-start; }
  .cart-remove { grid-area: rm; }
  .form-grid { grid-template-columns: 1fr; }
}

.quote-total-msg {
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px dashed #f0a820;
  background: #fff8e6;
  color: #6b4a00;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  text-align: center;
}

.print-header { display: none; }

/* Imprimir / PDF : solo muestra la lista de productos */
@media print {
  header, .page-hero, .cart-fab, .cart-toast, .quote-form, .cart-empty, .cart-list-head { display: none !important; }
  body { background: #fff; }
  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    border-bottom: 2px solid #0e1a2d;
    padding-bottom: 14px;
    margin-bottom: 26px;
  }
  .print-header strong { font-size: 1.1rem; letter-spacing: -0.02em; }
  .print-header span { display: block; color: #555; font-size: 0.8rem; margin-top: 2px; }
  .print-header > div:last-child { text-align: right; }
  .print-brand { display: flex; align-items: center; gap: 14px; }
  .print-brand img { height: 56px; width: auto; }
  .quote-total-msg { display: none; }
  .cart-items { gap: 10px; }
  .cart-row { border: 1px solid #ccc; break-inside: avoid; }
  .cart-remove, .stepper button, .cart-qty label { display: none !important; }
  .cart-qty { align-items: flex-start; }
}