/* ==========================================================
   Mundo Maquinaria — hoja de estilos
   Paleta tomada de la referencia visual: azul marino + amarillo
   ========================================================== */
:root {
  --navy: #061e38;
  --navy-2: #0b2a4d;
  --navy-3: #12365f;
  --yellow: #ffc20e;
  --yellow-2: #f5b400;
  --ink: #0e1b2c;
  --text: #33445a;
  --muted: #5d6d82;
  --line: #e2e8f0;
  --bg: #f3f6fa;
  --white: #fff;
  --green: #22c35e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(6, 30, 56, .06), 0 8px 24px rgba(6, 30, 56, .07);
  --shadow-lg: 0 18px 50px rgba(6, 30, 56, .16);
  --container: 1240px;
  --header-h: 84px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--text); background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg.i { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 10px 16px; border-radius: 6px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.hl { color: var(--yellow); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm); border: 2px solid transparent;
  font-weight: 800; font-size: .92rem; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 18px rgba(255, 194, 14, .3); }
.btn-yellow:hover { background: #ffcf3d; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-3); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(6, 30, 56, .35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #1fae54; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 58px; width: auto; }
.brand-sep { width: 1px; height: 46px; background: rgba(255, 255, 255, .22); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a {
  position: relative; color: #fff; font-weight: 700; font-size: .86rem; text-transform: uppercase;
  letter-spacing: .03em; padding: 10px 14px; border-radius: 6px;
}
.nav a:hover { color: var(--yellow); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -6px; height: 4px; border-radius: 4px; background: var(--yellow);
}
.header-cta { flex: none; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 48px; height: 48px; border-radius: 8px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- Hero de inicio ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0 0 0 34%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(6, 30, 56, .82) 18%, rgba(6, 30, 56, .15) 55%, rgba(6, 30, 56, 0) 75%),
              linear-gradient(0deg, rgba(6, 30, 56, .65) 0%, rgba(6, 30, 56, 0) 30%);
}
.hero .container { position: relative; padding-top: 88px; padding-bottom: 40px; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.9rem); text-transform: uppercase; max-width: 13.5em; margin-bottom: .45em; }
.hero h1 .hl { font-style: italic; display: block; }
.hero-lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 30em; color: #e8eef6; margin-bottom: 32px; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.trust {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 26px;
}
.trust li { display: flex; align-items: center; gap: 12px; font-weight: 600; padding: 0 28px; border-left: 3px solid var(--yellow); line-height: 1.3; }
.trust li:first-child { padding-left: 0; border-left: 0; }
.trust svg { width: 34px; height: 34px; color: var(--yellow); }

/* ---------- Banner de páginas internas ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: 0; bottom: 0; width: 58%;
  background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}
.page-hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 24px; min-height: 300px; padding-top: 28px; padding-bottom: 28px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.3rem); margin-bottom: .3em; }
.page-hero p { color: #dfe7f1; font-size: 1.08rem; max-width: 34em; margin: 0; font-weight: 500; }
.page-hero .title-bar { border-left: 6px solid var(--yellow); padding-left: 20px; }
.page-hero-art { position: relative; height: 100%; min-height: 240px; display: flex; align-items: flex-end; justify-content: flex-end; }
.page-hero-art img { max-height: 270px; width: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.page-hero-art.photo { position: absolute; top: 0; bottom: 0; right: calc((100% - 100vw) / 2); width: 50vw; min-height: 0; }
.page-hero-art.photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%); mask-image: linear-gradient(90deg, transparent, #000 35%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; color: #b9c6d6; margin-bottom: 14px; font-weight: 500; }
.crumbs a:hover { color: var(--yellow); }
.crumbs span[aria-hidden] { opacity: .6; }
.strip { background: var(--navy-2); border-top: 1px solid rgba(255, 255, 255, .08); }
.strip ul { display: flex; flex-wrap: wrap; gap: 14px 0; padding: 18px 0; }
.strip li { display: flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; padding: 0 28px; border-left: 3px solid var(--yellow); }
.strip li:first-child { border-left: 0; padding-left: 0; }
.strip svg { width: 30px; height: 30px; color: #fff; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 0; }
.section-head p { margin: .5em 0 0; color: var(--muted); max-width: 40em; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #b98700; margin-bottom: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--navy); text-transform: uppercase; font-size: .86rem; letter-spacing: .03em; }
.link-arrow:hover { color: #b98700; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 250px;
  background: linear-gradient(160deg, #fff 0%, #eaf0f7 100%); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.cat h3 { font-size: 1.2rem; margin: 0; }
.cat .count { font-size: .85rem; color: var(--muted); font-weight: 600; }
.cat img { align-self: flex-end; height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 10px -8px -6px 0; transition: transform .3s; }
.cat:hover img { transform: scale(1.05); }
.cat .go { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--yellow); }
.cat .cat-note { display: block; margin-top: 6px; padding-right: 44px; font-size: .82rem; color: var(--muted); line-height: 1.35; }
.cat-truck img { filter: drop-shadow(0 8px 8px rgba(6, 30, 56, .16)); }

/* Tarjetas de producto */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.pcard {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 20%, #fff 0%, #e8eef6 70%, #dbe4ef 100%); display: grid; place-items: center; padding: 14px; }
.pcard-media img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); object-fit: contain; filter: drop-shadow(0 10px 10px rgba(6, 30, 56, .18)); transition: transform .3s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; background: var(--navy); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 5px; }
.tag.new { background: var(--yellow); color: var(--navy); }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.pcard-brand { height: 26px; width: auto; max-width: 120px; object-fit: contain; object-position: left center; margin-bottom: 8px; }
.pcard h3 { font-size: 1.08rem; margin: 0 0 10px; }
.pcard h3 a::after { content: ""; position: absolute; inset: 0; }
.pcard-body { position: relative; }
.specs { display: grid; gap: 6px; margin-bottom: 16px; font-size: .86rem; color: var(--text); }
.specs li { display: flex; gap: 8px; align-items: baseline; }
.specs svg { width: 16px; height: 16px; color: var(--muted); position: relative; top: 3px; }
.specs b { font-weight: 600; color: var(--muted); }
.price-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.price { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 1.12rem; padding: 4px 12px; border-radius: 6px; line-height: 1.4; }
.iva { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.iva.plus { color: #b4570c; }
.price.consult { background: var(--navy); color: #fff; font-size: .95rem; }
.iva.consult { color: var(--green); }
.pcard-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; position: relative; z-index: 1; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--green); color: #fff; }
.icon-btn:hover { background: #1fae54; }
.icon-btn svg { width: 22px; height: 22px; }

/* Catálogo con filtros */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.filters-head { display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; padding: 16px 20px; font-weight: 800; font-size: 1.05rem; }
.filters-head svg { width: 22px; height: 22px; }
.filters-head .close-filters { display: none; margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; width: 44px; height: 44px; }
.filters form { padding: 18px 20px 22px; display: grid; gap: 22px; }
.fgroup legend, .fgroup > label { font-weight: 800; color: var(--ink); font-size: .95rem; margin-bottom: 10px; padding: 0; display: block; }
.fgroup { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip span small { color: var(--muted); font-weight: 600; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:checked + span small { color: var(--yellow); }
.chip input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.checks { display: grid; gap: 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .92rem; cursor: pointer; padding: 4px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.check small { margin-left: auto; color: var(--muted); font-weight: 600; }
select, input[type="search"], input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cfd8e3; border-radius: var(--radius-sm); background: #fff; font-size: .95rem;
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23061e38' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 120px; resize: vertical; }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(255, 194, 14, .45); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.toolbar h2 { font-size: 1.6rem; margin: 0 auto 0 0; }
.toolbar h2 .num { color: var(--yellow-2); }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.search input { padding-left: 42px; }
.sort { flex: 0 0 220px; }
.open-filters { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; }
.active-filters button { display: inline-flex; align-items: center; gap: 6px; background: #fff7d6; border: 1px solid #f3d36b; color: var(--navy); border-radius: 999px; padding: 5px 12px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.empty { display: none; text-align: center; background: var(--bg); border: 1px dashed #c4cfdc; border-radius: var(--radius); padding: 48px 24px; }
.empty.show { display: block; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: grid; place-items: center; }
.step svg { width: 34px; height: 34px; color: var(--navy); margin: 8px 0 12px; }
.step h3 { font-size: 1.05rem; margin-bottom: .35em; }
.step p { font-size: .92rem; margin: 0; color: var(--muted); }

/* Marcas */
.brands { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.brands a, .brands div { display: grid; place-items: center; height: 104px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; position: relative; }
.brands a:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.brands img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
.brands .ext { position: absolute; top: 8px; right: 8px; width: 15px; height: 15px; color: var(--muted); opacity: 0; transition: opacity .2s; }
.brands a:hover .ext { opacity: 1; }

/* Tarjetas de servicio */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.svc-media { position: relative; height: 180px; background: radial-gradient(120% 100% at 50% 20%, #fff, #dfe7f1); display: grid; place-items: center; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-media img.cut { object-fit: contain; padding: 14px; filter: drop-shadow(0 10px 10px rgba(6, 30, 56, .2)); }
.svc-media.dark { background: linear-gradient(135deg, var(--navy-2), var(--navy)); }
.svc-media.dark > svg { width: 120px; height: 120px; color: #fff; stroke-width: 1.3; }
.svc-icon { position: absolute; left: 20px; bottom: -22px; width: 52px; height: 52px; border-radius: 10px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .15); }
.svc-icon svg { width: 28px; height: 28px; }
.svc-body { padding: 34px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-size: 1.25rem; margin-bottom: .4em; }
.svc p { color: var(--text); font-size: .95rem; }
.svc .btn { margin-top: auto; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg); border-radius: var(--radius); padding: 24px 12px; }
.values li { display: flex; align-items: center; gap: 14px; padding: 4px 24px; font-weight: 800; color: var(--ink); line-height: 1.25; border-left: 3px solid var(--yellow); }
.values li:first-child { border-left: 0; }
.values svg { width: 40px; height: 40px; color: var(--navy); }

/* Banda CTA */
.cta-band { position: relative; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; z-index: -1; left: 30px; top: 30px; width: 14px; height: 70px; background: var(--yellow); transform: skewX(-20deg); }
.cta-band::after { content: ""; position: absolute; z-index: -1; right: -60px; top: 0; bottom: 0; width: 45%; background: linear-gradient(135deg, var(--navy-3), var(--navy-2)); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .2em; padding-left: 36px; }
.cta-band p { margin: 0; color: #dfe7f1; padding-left: 36px; font-weight: 500; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Camiones */
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.type-ico { width: 64px; height: 64px; border-radius: 14px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; margin-bottom: 16px; }
.type-ico svg { width: 36px; height: 36px; }
.type h3 { font-size: 1.15rem; margin-bottom: .3em; }
.type p { font-size: .93rem; color: var(--muted); }
.type ul { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.type ul li { font-size: .78rem; font-weight: 700; background: var(--bg); border-radius: 5px; padding: 4px 9px; color: var(--navy); }
.type .btn { margin-top: auto; }
.note { display: flex; gap: 14px; align-items: flex-start; background: #fff9e3; border: 1px solid #f5dc84; border-radius: var(--radius); padding: 18px 20px; color: var(--ink); font-weight: 500; }
.note svg { width: 24px; height: 24px; color: #b98700; margin-top: 2px; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.about h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.about-lead { font-size: 1.08rem; }
.about-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; background: var(--bg); padding: 18px; border-radius: var(--radius); }
.about-tiles a { background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .2s, transform .2s; }
.about-tiles a:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.about-tiles img { height: 110px; width: 100%; object-fit: contain; }
.about-tiles span { font-size: .78rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--navy); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; border-left: 5px solid var(--yellow); }
.pillar h3 { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; }
.pillar p { margin: 0; color: var(--muted); }

/* Ficha de producto */
.product { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.stage { position: relative; background: radial-gradient(110% 90% at 50% 25%, #fff 0%, #e8eef6 65%, #d6e0ec 100%); border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 28px; overflow: hidden; }
.stage .main { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(6, 30, 56, .25)); }
.stage .tag { top: 18px; left: 18px; z-index: 1; }
.stage .stage-brand { position: absolute; right: 18px; top: 16px; height: 34px; width: auto; max-width: 140px; object-fit: contain; z-index: 1; }
.p-type { font-size: .9rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #b98700; margin-bottom: 6px; }
.p-title { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .2em; }
.p-sub { color: var(--muted); font-weight: 600; margin-bottom: 22px; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 24px; }
.kpi { background: var(--bg); border-radius: 10px; padding: 14px 16px; border-left: 4px solid var(--yellow); }
.kpi small { display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.kpi strong { font-size: 1.05rem; color: var(--ink); font-weight: 800; }
.buybox { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; }
.buybox .lbl { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #b9c6d6; }
.buybox .amount { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--yellow); line-height: 1.15; }
.buybox .amount small { font-size: .5em; }
.buybox .amount.consult { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.buybox .iva { color: #fff; font-size: .82rem; }
.buybox .iva.plus { color: #ffd27a; }
.buybox .fine { font-size: .78rem; color: #9fb0c4; margin: 8px 0 18px; }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .btn-wa { grid-column: 1 / -1; }
.buy-actions .btn-ghost { background: transparent; }
.product { grid-template-areas: "stage head" "stage info" "extra info"; grid-template-rows: auto auto 1fr; row-gap: 16px; }
.p-head { grid-area: head; min-width: 0; }
.p-head .p-sub { margin-bottom: 4px; }
.p-stage { grid-area: stage; min-width: 0; }
.p-info { grid-area: info; min-width: 0; }
.p-extra { grid-area: extra; display: grid; gap: 16px; align-content: start; min-width: 0; }
.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 10px; padding: 14px 16px; border-left: 4px solid var(--yellow); }
.perks svg { color: var(--navy); width: 28px; height: 28px; }
.perks span { display: grid; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.perks b { font-size: .9rem; color: var(--ink); font-weight: 800; }
.assist { display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 16px 18px; }
.assist-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--yellow); color: var(--navy); display: grid; place-items: center; flex: none; }
.assist-ico svg { width: 24px; height: 24px; }
.assist strong { display: block; font-size: .98rem; }
.assist > div > span { display: block; font-size: .84rem; color: #b9c6d6; }
.assist-actions { display: flex; gap: 8px; margin-left: auto; }
.icon-btn.tel { background: var(--yellow); color: var(--navy); }
.icon-btn.tel:hover { background: #ffcf3d; }
.spec-tabs { margin-top: 8px; }
.spec-nav { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 24px; }
.spec-nav a { padding: 12px 16px; font-weight: 800; font-size: .9rem; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.spec-nav a:hover { color: var(--navy); border-color: var(--yellow); }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.spec-table { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px); }
.spec-table.wide { grid-column: 1 / -1; }
.spec-table h3 { margin: 0; background: var(--navy); color: #fff; font-size: 1rem; padding: 12px 18px; display: flex; align-items: center; gap: 10px; }
.spec-table h3::before { content: ""; width: 4px; height: 18px; background: var(--yellow); border-radius: 2px; }
.spec-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 18px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-table th { font-weight: 600; color: var(--muted); width: 55%; }
.spec-table td { font-weight: 700; color: var(--ink); }
.spec-table tr:nth-child(even) { background: #f8fafc; }
.sticky-buy { display: none; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.cinfo { display: grid; gap: 14px; }
.cinfo-item { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; transition: border-color .2s, box-shadow .2s; }
a.cinfo-item:hover { border-color: var(--yellow); box-shadow: var(--shadow); }
.cinfo-ico { width: 48px; height: 48px; border-radius: 10px; background: var(--navy); color: var(--yellow); display: grid; place-items: center; flex: none; }
.cinfo-ico.wa { background: var(--green); color: #fff; }
.cinfo-ico svg { width: 24px; height: 24px; }
.cinfo-item small { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cinfo-item > div { min-width: 0; }
.cinfo-item .cinfo-ico { color: var(--yellow); }
.cinfo-item .cinfo-ico.wa { color: #fff; }
.cinfo-item strong { overflow-wrap: anywhere; }
.cinfo-item strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.cinfo-item span { font-size: .9rem; color: var(--muted); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .9rem; margin-top: 4px; }
.hours dt { font-weight: 700; color: var(--ink); }
.hours dd { margin: 0; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form-card h2 { font-size: 1.6rem; margin-bottom: .2em; }
.form-card > p { color: var(--muted); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--ink); }
.field label span { color: #c0392b; }
.field .err { display: none; font-size: .8rem; color: #c0392b; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg); aspect-ratio: 21 / 8; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 800; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: #b98700; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3cfdd; padding: 64px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer img.flogo { height: 64px; width: auto; margin-bottom: 16px; }
.site-footer h3 { color: var(--yellow); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 9px; font-size: .94rem; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .fcontact li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer .fcontact svg { color: var(--yellow); width: 18px; height: 18px; margin-top: 4px; }
.site-footer .fcontact small { display: block; font-size: .78rem; opacity: .75; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding: 20px 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; }

/* ---------- Ajustes de componentes ---------- */
.pcard { position: relative; }
.menu-only { display: none !important; }
.pbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs.dark { color: var(--muted); margin: 0; padding: 14px 0; }
.crumbs.dark a:hover { color: var(--navy); }
.crumbs.dark [aria-current] { color: var(--ink); font-weight: 700; }
.product-section { padding-top: 40px; }
.pcard-media .tag { z-index: 1; }
.pcard-media.photo { padding: 0; background: #d9dcdf; }
.pcard-media.photo img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.stage.photo { padding: 0; background: #d9dcdf; }
.stage.photo .main { width: 100%; height: 100%; object-fit: cover; filter: none; }
.stage.photo .stage-brand { background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 6px 10px; height: 42px; box-sizing: border-box; }
.p-desc { color: var(--text); margin: -8px 0 20px; }
.usos { display: grid; gap: 8px; margin: -6px 0 22px; font-size: .92rem; font-weight: 600; color: var(--ink); }
.usos li { display: flex; gap: 10px; align-items: flex-start; }
.usos svg { color: #22a352; width: 18px; height: 18px; margin-top: 3px; }
.truck-art { align-items: center; }
.truck-svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }
.steps li::marker { content: ""; }
.cinfo-item .hours { margin: 4px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 10px 9px; font-size: .8rem; }
  .brands { grid-template-columns: repeat(4, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, auto); gap: 18px 0; }
  .trust li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .brand-sep, .header-cta { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 16px 20px; border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 16px 30px rgba(0, 0, 0, .3);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: .95rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav a[aria-current="page"] { color: var(--yellow); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 14px; }
  .nav .menu-only { display: inline-flex !important; border-bottom: 0; }
  .truck-svg { max-width: 300px; margin-bottom: 18px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 22px; }
  .catalog { grid-template-columns: 1fr; }
  .open-filters { display: inline-flex; }
  .filters { display: none; position: fixed; inset: 0; z-index: 80; border-radius: 0; overflow-y: auto; }
  .filters.open { display: block; }
  .filters-head .close-filters { display: grid; place-items: center; }
  .product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "info" "extra"; grid-template-rows: none; gap: 20px; }
  .product-section { padding-top: 24px; }
  .stage { position: relative; top: 0; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .types { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .values li:nth-child(3) { border-left: 0; }
  .page-hero .container { grid-template-columns: 1fr; min-height: 0; padding-top: 28px; padding-bottom: 0; }
  .page-hero-art { min-height: 0; justify-content: center; }
  .page-hero-art img { max-height: 200px; }
  .page-hero-art.photo { position: relative; right: auto; width: auto; height: 190px; margin: 0 -24px; }
  .page-hero-art.photo img { -webkit-mask-image: none; mask-image: none; }
  .page-hero::before { width: 100%; right: 0; top: 50%; clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%); }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .hero-media { inset: 0; }
  .hero-media::after { background: linear-gradient(0deg, var(--navy) 8%, rgba(6, 30, 56, .78) 50%, rgba(6, 30, 56, .55) 100%); }
  .hero .container { padding-top: 56px; }
  .hero-actions { margin-bottom: 40px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .trust li { padding: 0 0 0 10px; border-left: 3px solid var(--yellow) !important; font-size: .86rem; }
  .trust svg { width: 26px; height: 26px; }
  .strip li { flex: 1 1 45%; padding: 0 12px; font-size: .86rem; border-left: 3px solid var(--yellow) !important; }
  .strip li:first-child { padding-left: 12px; }
  .strip svg { width: 24px; height: 24px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cat { min-height: 190px; padding: 16px; }
  .cat h3 { font-size: 1rem; }
  .cat img { height: 92px; }
  .cat .go { display: none; }
  .steps, .types, .pillars, .services { grid-template-columns: minmax(0, 1fr); }
  .btn { white-space: normal; text-align: center; line-height: 1.2; padding: 10px 18px; }
  .page-hero .container { grid-template-columns: minmax(0, 1fr); }
  .page-hero h1 { overflow-wrap: anywhere; }
  .brands { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .brands a, .brands div { height: 78px; padding: 12px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 32px 22px; }
  .cta-band h2, .cta-band p { padding-left: 24px; }
  .cta-band::before { left: 18px; }
  .cta-band .actions, .cta-band .btn { width: 100%; }
  .toolbar h2 { flex: 1 1 100%; }
  .search { max-width: none; flex: 1 1 100%; }
  .sort { flex: 1 1 auto; }
  .grid-products { grid-template-columns: 1fr; }
  .spec-grid, .kpis, .perks { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi strong { font-size: .95rem; }
  .buy-actions { grid-template-columns: 1fr; }
  .fields { grid-template-columns: 1fr; }
  .form-card { padding: 22px 18px; }
  .form-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .values { grid-template-columns: 1fr; }
  .values li { border-left: 0 !important; padding: 4px 12px; }
  .map { aspect-ratio: 4 / 3; }
  .about-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px; }
  .about-tiles a { padding: 10px 6px 8px; }
  .about-tiles img { height: 64px; }
  .about-tiles span { font-size: .62rem; letter-spacing: 0; hyphens: auto; overflow-wrap: anywhere; text-align: center; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; gap: 12px;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(6, 30, 56, .12); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  }
  .sticky-buy .p { font-weight: 800; color: var(--navy); line-height: 1.15; }
  .sticky-buy .p small { display: block; font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
  .sticky-buy .btn { margin-left: auto; }
  body.has-sticky .wa-float { display: none; }
  body.has-sticky .site-footer { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Sistema (PHP): piezas nuevas ---------- */
.p-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.p-thumb { flex: 0 0 78px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: contain; }
.p-thumb:hover, .p-thumb.active { border-color: var(--yellow); }
.form-msg { display: none; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; }
.form-msg.show { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-msg.ok { background: #e8f8ee; color: #136c35; border: 1px solid #b7e6c8; }
.form-msg.bad { background: #fdecec; color: #9b1c1c; border: 1px solid #f5c2c2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.catalog-pdf { margin-top: 14px; white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
.pcard-brand-txt { display: block; font-weight: 800; color: var(--navy); font-size: .9rem; letter-spacing: .04em; margin-bottom: 6px; }
.empty.show .btn { margin: 6px 4px 0; }