/* JM Solutions — estilos del tema. Colores de marca en --brand y --brand-dark (Personalizar > JM Solutions). */
:root {
  --brand: #f28c00;
  --brand-dark: #0f2a44;
  --ink: #1b2430;
  --muted: #5b6675;
  --line: #dde3ea;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --wa: #1fa855;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(15, 42, 68, .08);
  --wrap: 1180px;
  --font-head: 'Barlow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--brand-dark); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.jm-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text, .jm-skip { position: absolute; left: -9999px; }
.jm-skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Botones */
.jm-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--brand-dark); background: var(--brand-dark); color: #fff; font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.jm-btn:hover { transform: translateY(-1px); }
.jm-btn--wa { background: var(--wa); border-color: var(--wa); }
.jm-btn--wa:hover { background: #17924a; }
.jm-btn--ghost { background: transparent; color: var(--brand-dark); }
.jm-btn--light { background: #fff; border-color: #fff; color: var(--brand-dark); }
.jm-btn--lg { padding: 14px 24px; font-size: 16px; }
.jm-btn--sm { padding: 6px 12px; font-size: 14px; }
.jm-tag { display: inline-block; font: 600 12px/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }

/* Encabezado */
.jm-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.jm-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.jm-logo img { max-height: 52px; width: auto; }
.jm-logo__text { font: 700 1.4rem var(--font-head); color: var(--brand-dark); text-decoration: none; white-space: nowrap; }
.jm-nav { display: flex; align-items: center; gap: 24px; }
.jm-menu { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.jm-menu li { position: relative; }
.jm-menu a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; }
.jm-menu > li > a { display: block; padding: 24px 0; }
.jm-menu a:hover, .jm-menu .current-menu-item > a { color: var(--brand); }
.jm-menu .menu-item-has-children > a::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); }
.jm-menu .sub-menu { display: none; position: absolute; top: 100%; left: -16px; min-width: 230px; list-style: none; margin: 0; padding: 8px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.jm-menu li:hover > .sub-menu, .jm-menu li:focus-within > .sub-menu { display: block; }
.jm-menu .sub-menu a { display: block; padding: 9px 16px; }
.jm-nav__cta { white-space: nowrap; }
.jm-burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.jm-burger span { display: block; width: 24px; height: 2px; background: var(--brand-dark); margin: 5px 0; transition: .2s; }

/* Portada */
.jm-hero { position: relative; background: var(--brand-dark); color: #fff; overflow: hidden; }
.jm-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, var(--brand-dark) 35%, rgba(15, 42, 68, .55)); }
.jm-hero:not(.jm-hero--img)::after { background: radial-gradient(circle at 85% 20%, rgba(242, 140, 0, .25), transparent 45%); }
.jm-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jm-hero__in { position: relative; z-index: 1; padding: 96px 16px 104px; max-width: var(--wrap); }
.jm-hero h1 { color: #fff; max-width: 760px; }
.jm-hero p { font-size: 1.15rem; max-width: 620px; color: #d8e2ec; }
.jm-hero .jm-highlight { color: var(--brand-dark); font-size: 14px; max-width: none; }
.jm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Secciones */
.jm-section { padding: 72px 0; }
.jm-section--alt { background: var(--bg-alt); }
.jm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jm-h2 { margin-bottom: 28px; }
.jm-h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--brand); margin-top: 12px; border-radius: 2px; }

.jm-lines { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 18px; }
.jm-line { display: flex; flex-direction: column; padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: box-shadow .2s, border-color .2s; }
.jm-line:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.jm-line p { color: var(--muted); font-size: 15px; }
.jm-line__more { margin-top: auto; color: var(--brand); font-weight: 600; font-size: 14px; }
.jm-icon { width: 44px; height: 44px; color: var(--brand); margin-bottom: 14px; }

.jm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.jm-card:hover { box-shadow: var(--shadow); }
.jm-card__img { display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.jm-card__img img { width: 100%; height: 100%; object-fit: cover; }
.jm-card__noimg { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.jm-card__noimg .jm-icon { width: 72px; height: 72px; opacity: .6; margin: 0; }
.jm-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.jm-card__body h3 a { text-decoration: none; color: var(--brand-dark); }
.jm-card__body p { color: var(--muted); font-size: 15px; }
.jm-card__actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }
.jm-card__actions .jm-btn { padding: 8px 14px; font-size: 14px; }

.jm-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0; padding: 0; }
.jm-steps li { counter-increment: s; padding: 24px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.jm-steps li::before { content: counter(s); display: block; font: 700 2rem var(--font-head); color: var(--brand); }
.jm-steps strong { display: block; font: 600 1.15rem var(--font-head); color: var(--brand-dark); margin-bottom: 4px; }
.jm-steps span { color: var(--muted); font-size: 15px; }

.jm-cta { background: var(--brand-dark); color: #fff; padding: 56px 0; }
.jm-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.jm-cta h2 { color: #fff; }
.jm-cta p { color: #d8e2ec; margin: 0; max-width: 620px; }

/* Catálogo */
.jm-page-head { background: var(--brand-dark); color: #fff; padding: 48px 0 40px; }
.jm-page-head h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.jm-page-head p { color: #d8e2ec; max-width: 680px; margin: 0; }
.jm-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.jm-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 14px; font-weight: 500; background: #fff; }
.jm-chip.is-active, .jm-chip:hover { border-color: var(--brand-dark); background: var(--brand-dark); color: #fff; }
.jm-search { display: flex; gap: 8px; }
.jm-search input { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; min-width: 240px; }
.jm-empty { padding: 32px; background: var(--bg-alt); border-radius: var(--radius); color: var(--muted); }
.jm-pagination { margin-top: 32px; }
.jm-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.jm-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.jm-pagination .current { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }

/* Ficha de producto */
.jm-crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.jm-crumbs a { color: var(--muted); }
.jm-product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 20px; padding-bottom: 40px; }
.jm-product__main { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.jm-product__main img { width: 100%; height: 100%; object-fit: contain; }
.jm-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.jm-thumb { padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; width: 72px; height: 72px; cursor: pointer; background: #fff; }
.jm-thumb.is-active { border-color: var(--brand); }
.jm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jm-product__info h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
.jm-brand { color: var(--muted); font-weight: 500; }
.jm-lead { font-size: 1.08rem; }
.jm-product__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.jm-variants h2 { font-size: 1.2rem; margin-top: 20px; }
.jm-variants ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); }
.jm-variants li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.jm-variants li:first-child { border-top: 0; }
.jm-variants em { color: var(--muted); font-style: normal; font-size: 14px; }
.jm-specs { padding-bottom: 48px; }
.jm-specs table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.jm-specs th, .jm-specs td { padding: 12px 16px; text-align: left; border-top: 1px solid var(--line); font-size: 15px; }
.jm-specs tr:nth-child(odd) { background: var(--bg-alt); }
.jm-specs th { width: 38%; font-weight: 600; color: var(--brand-dark); }
.jm-product__desc { padding-bottom: 56px; }

.jm-prose > * { max-width: 820px; }
.jm-prose h2 { margin-top: 1.2em; }
.jm-list__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.jm-404 { text-align: center; padding: 40px 16px; }
.jm-404 p:last-child { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Pie */
.jm-footer { background: #0b1f33; color: #b9c6d3; padding: 56px 0 24px; font-size: 15px; }
.jm-footer a { color: #e3eaf1; text-decoration: none; }
.jm-footer a:hover { color: var(--brand); }
.jm-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .05em; }
.jm-footer ul { list-style: none; margin: 0; padding: 0; }
.jm-footer li { margin-bottom: 8px; }
.jm-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.jm-footer__brand { font: 700 1.4rem var(--font-head); color: #fff; margin-bottom: 8px; }
.jm-social { display: flex; gap: 10px; margin-top: 14px; }
.jm-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.jm-social a:hover { background: var(--brand); color: #fff; }
.jm-highlight { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--brand-dark); font: 600 14px/1.2 var(--font-body); }
.jm-highlight::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.jm-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 20px; font-size: 14px; }
.jm-legal-menu { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }

/* Portada: fortalezas en el orden de prioridad del cliente (servicio técnico primero) */
.jm-pillars-sec { padding-top: 48px; }
.jm-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.jm-pillar { display: flex; flex-direction: column; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
a.jm-pillar:hover { box-shadow: var(--shadow); border-color: var(--brand); }
.jm-pillar p { color: var(--muted); font-size: 15px; }
.jm-pillar .jm-icon { color: var(--brand); }
.jm-pillar--main { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.1fr; padding: 0; overflow: hidden; background: var(--brand-dark); border: 0; border-top: 6px solid var(--brand); }
.jm-pillar__img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.jm-pillar__body { padding: 40px 36px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.jm-pillar--main h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.jm-pillar--main p { color: #d8e2ec; font-size: 1.05rem; max-width: 520px; }
.jm-pillar--main .jm-icon { width: 46px; height: 46px; }

/* Franja de marcas y tarjeta Próximamente (extensión de octubre 2026) */
.jm-brands { padding: 40px 0 8px; }
.jm-brands__title { text-align: center; color: var(--muted); font: 600 14px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 20px; }
.jm-brands__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.jm-brands__track { display: flex; align-items: center; gap: 14px; width: max-content; animation: jm-brands calc(var(--jm-brands, 8) * 3s) linear infinite; }
.jm-brands__viewport:hover .jm-brands__track, .jm-brands__track:focus-within { animation-play-state: paused; }
@keyframes jm-brands { to { transform: translateX(calc(-50% - 7px)); } }
.jm-brand { flex: none; display: flex; align-items: center; justify-content: center; width: 150px; height: 74px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; transition: box-shadow .2s, border-color .2s; }
.jm-brand:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.jm-brand__logo { max-width: 100%; max-height: 40px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.jm-brand:hover .jm-brand__logo { filter: none; opacity: 1; }
.jm-brand--text { font: 700 1rem/1.1 var(--font-head); color: var(--brand-dark); letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.jm-line--soon { border-style: dashed; border-color: var(--brand); background: var(--bg-alt); }
.jm-soon { align-self: flex-start; margin-bottom: 12px; padding: 4px 10px; border-radius: 999px; background: var(--brand); color: #fff; font: 700 12px/1.2 var(--font-body); letter-spacing: .05em; text-transform: uppercase; }
.jm-chips--brands { width: 100%; align-items: center; }
.jm-chips__label { font-size: 14px; font-weight: 600; color: var(--muted); margin-right: 4px; }

/* Botón flotante de WhatsApp */
.jm-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.jm-float svg { width: 30px; height: 30px; }

/* Tableta */
@media (max-width: 1024px) {
  .jm-lines { grid-template-columns: repeat(2, 1fr); }
  .jm-grid { grid-template-columns: repeat(2, 1fr); }
  .jm-menu { gap: 16px; }
}

/* Celular */
@media (max-width: 820px) {
  .jm-burger { display: block; }
  .jm-nav { position: fixed; inset: 72px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s; max-height: calc(100vh - 72px); overflow: auto; }
  .jm-nav.is-open { transform: none; }
  .jm-menu { flex-direction: column; gap: 4px; }
  .jm-menu a, .jm-menu > li > a { display: block; padding: 10px 4px; font-size: 17px; }
  .jm-menu .sub-menu { display: block; position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .jm-menu .menu-item-has-children > a::after { display: none; }
  .jm-nav__cta { justify-content: center; }
  .jm-hero__in { padding: 64px 16px 72px; }
  .jm-section { padding: 52px 0; }
  .jm-steps { grid-template-columns: 1fr; }
  .jm-pillars { grid-template-columns: 1fr; }
  .jm-pillar--main { grid-template-columns: 1fr; }
  .jm-pillar__img { min-height: 0; aspect-ratio: 4 / 3; }
  .jm-pillar__body { padding: 28px 22px; }
  .jm-product { grid-template-columns: 1fr; gap: 24px; }
  .jm-footer__grid { grid-template-columns: 1fr; }
  .jm-search { width: 100%; }
  .jm-search input { flex: 1; min-width: 0; }
}
@media (max-width: 560px) {
  .jm-lines { grid-template-columns: 1fr 1fr; gap: 12px; }
  .jm-line { padding: 18px 14px; }
  .jm-line h3 { font-size: 1.05rem; }
  .jm-line p { display: none; }
  .jm-brand { width: 128px; height: 64px; }
  .jm-icon { width: 36px; height: 36px; margin-bottom: 10px; }
  .jm-grid { grid-template-columns: 1fr; gap: 14px; }
  .jm-card { flex-direction: row; }
  .jm-card__img { flex: 0 0 112px; width: 112px; aspect-ratio: auto; }
  .jm-card__img .jm-card__noimg { height: 100%; aspect-ratio: auto; }
  .jm-card__noimg .jm-icon { width: 44px; height: 44px; }
  .jm-card__body { padding: 14px; }
  .jm-card__body h3 { font-size: 1.05rem; }
  .jm-card__body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; margin-bottom: 10px; }
  .jm-card__actions .jm-btn { padding: 7px 12px; font-size: 13px; }
  .jm-hero__actions .jm-btn { width: 100%; justify-content: center; }
  .jm-variants li { flex-wrap: wrap; padding: 10px 12px; }
  .jm-filters { margin-bottom: 20px; }
  .jm-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; }
  .jm-chip { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .jm-brands__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .jm-brands__track [aria-hidden="true"] { display: none; }
  .jm-brands__viewport { -webkit-mask-image: none; mask-image: none; }
}
