/* partesdetransmision.com - the globaltransmissionsupply.com look in Spanish:
   black header, #FFCC00 yellow search bar, navy #1f2a3a band, red #c8102e call buttons, Open Sans.
   No inline styles anywhere (the Worker sends a strict CSP), so every visual lives here. */
:root {
  --black: #000;
  --yellow: #ffcc00;
  --yellow-dk: #d8ac00;
  --navy: #1f2a3a;
  --red: #c8102e;
  --red-dk: #a50d26;
  --ink: #3f3f3f;
  --head: #1b1b1b;
  --muted: #6b6b6b;
  --white: #fff;
  --grey: #f2f2f2;
  --line: #e1e1e1;
  --hi: #fff4c2;
  --link: #0b4f9c;
  --wa: #25d366;
  --ok: #1d7347;
  --warn: #9a5b00;
  --font: "Open Sans", "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--font); overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--yellow); color: var(--black); padding: 8px 12px; font-weight: 700; }
.skip:focus { left: 8px; }
.muted { color: #9a9a9a; font-size: 13px; }
[hidden] { display: none !important; }

/* ---- header ---- */
.s-head { background: var(--black); color: var(--white); position: relative; z-index: 20; }
.head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 12px; padding-bottom: 12px; }
.logo { color: var(--white); text-decoration: none; display: grid; line-height: 1.05; }
.logo:hover { color: var(--white); }
.logo-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.logo-tag { font-weight: 600; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-top: 3px; }
.menu-btn { display: none; }
.s-nav { flex: 1; }
.s-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.s-nav li { position: relative; }
.s-nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 14px; display: block; padding: 8px 10px; border-radius: 3px; white-space: nowrap; }
.s-nav a:hover, .s-nav a[aria-current="page"] { color: var(--yellow); }
.s-nav .has-sub > a::after { content: " \25BE"; font-size: 11px; }
.s-nav .sub { list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%; min-width: 230px; background: #111; border-top: 3px solid var(--yellow); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .7); display: none; }
.s-nav .sub a { font-weight: 600; padding: 8px 14px; }
.s-nav .has-sub:hover > .sub, .s-nav .has-sub:focus-within > .sub { display: block; }
.s-tools { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.s-wa { background: var(--wa); color: var(--black); padding: 7px 11px; border-radius: 4px; text-decoration: none; }
.s-wa:hover { color: var(--black); filter: brightness(1.08); }
.s-tel { color: var(--white); text-decoration: none; white-space: nowrap; }
.s-tel:hover { color: var(--yellow); }

/* ---- search bar ---- */
.s-search { padding: 22px 16px 14px; display: grid; justify-items: center; gap: 6px; background: var(--white); }
.searchbox { width: min(640px, 100%); display: flex; border: 2px solid var(--yellow); border-radius: 6px; overflow: hidden; box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .6); }
.searchbox input { flex: 1; min-width: 0; background: #111; color: var(--yellow); border: 0; font: 700 15px/1.3 var(--font); padding: 13px 14px; }
.searchbox input::placeholder { color: #e6c450; opacity: 1; }
.searchbox button { width: 56px; background: var(--yellow); border: 0; font-size: 22px; font-weight: 800; color: #111; cursor: pointer; }
.search-note { margin: 0; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---- bands ---- */
.s-band { background: var(--navy); color: var(--white); padding: 34px 16px; text-align: center; }
.s-band .wrap { display: grid; gap: 12px; justify-items: center; }
.s-band h1 { margin: 0; font-weight: 800; font-size: clamp(24px, 4vw, 36px); line-height: 1.2; max-width: 30ch; color: var(--white); }
.s-band p { margin: 0; max-width: 64ch; opacity: .92; }
.s-band.cta-band { margin: 34px 0 0; border-radius: 4px; }
.s-band.cta-band h2 { margin: 0; color: var(--white); font-size: 22px; }
.s-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn { display: inline-block; font: 700 15px/1 var(--font); padding: 13px 18px; border-radius: 4px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dk); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-wa { background: var(--wa); color: var(--black); }
.btn-wa:hover { color: var(--black); filter: brightness(1.06); }
.btn-line { border-color: var(--navy); color: var(--navy); background: var(--white); }
.btn-line:hover { background: var(--navy); color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.s-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.s-trust div { background: var(--grey); padding: 16px 20px; font-size: 14px; }
.s-trust b { display: block; color: var(--head); font-size: 15.5px; }

/* ---- page body ---- */
.page { padding-top: 18px; padding-bottom: 44px; }
.crumbs { font-size: 13px; color: #777; margin: 0 0 8px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "\203A"; margin-right: 4px; color: #aaa; }
.crumbs a { color: #666; text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-h1 { margin: 0 0 10px; font-weight: 800; font-size: clamp(26px, 3.6vw, 34px); line-height: 1.18; color: var(--head); }
.lede { font-size: 18px; color: #4a4a4a; margin: 0 0 18px; max-width: 72ch; }
.prose { max-width: 860px; }
.prose.wide { max-width: none; }
.prose h2 { font-weight: 800; font-size: 23px; line-height: 1.25; color: var(--head); margin: 30px 0 10px; }
.prose h3 { font-weight: 700; font-size: 18.5px; color: var(--head); margin: 22px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .callout { background: var(--hi); border-left: 4px solid var(--yellow-dk); padding: 12px 16px; margin: 0 0 16px; }
.prose .callout p:last-child { margin-bottom: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.prose table, table.partes { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose table th, table.partes th { background: var(--navy); color: var(--white); text-align: left; font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; padding: 9px 10px; }
.prose table td, table.partes td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.prose table tr:nth-child(even) td { background: #fafafa; }

/* tiles, pills, cards */
.s-h { font-weight: 800; font-size: 20px; color: var(--head); margin: 28px 0 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.tile { border: 1px solid var(--line); background: var(--grey); padding: 14px; display: grid; gap: 4px; min-height: 96px; align-content: end; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--line); }
.tile:hover { border-bottom-color: var(--yellow); color: var(--ink); background: #ececec; }
.tile b { font-weight: 800; font-size: 16px; line-height: 1.15; color: var(--head); }
.tile span { font-size: 13px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.pill { border: 1px solid var(--line); border-radius: 4px; padding: 8px 11px; font: 600 13.5px/1.2 var(--font); color: var(--head); background: var(--white); text-decoration: none; display: inline-block; }
.pill:hover { border-color: var(--yellow-dk); background: var(--hi); color: var(--head); }
.pill.mono { font-family: var(--mono); font-weight: 700; }
.contact-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 18px; }
.contact-box > div { border: 1px solid var(--line); padding: 14px 16px; background: var(--grey); }
.contact-box b { display: block; color: var(--head); }
.contact-box a { font-weight: 700; }

/* ---- parts group (the manual-page design) ---- */
.grupo { margin: 18px 0 24px; border: 1px solid var(--line); padding: 14px; background: var(--white); }
.grupo-h { margin: 0 0 4px; font-weight: 800; font-size: 19px; color: var(--head); }
.grupo-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.grupo-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.diagrama { margin: 0; border: 1px solid var(--line); background: var(--white); }
.diagrama svg { display: block; width: 100%; height: auto; }
.diagrama figcaption { font-size: 12.5px; color: #777; padding: 6px 10px; border-top: 1px solid var(--line); }
.callout { cursor: pointer; }
.callout circle { fill: var(--yellow); stroke: var(--black); stroke-width: 2.5; }
.callout text { fill: var(--black); font: 800 22px var(--font); }
.callout.on circle { fill: var(--red); }
.callout.on text { fill: var(--white); }
.callout:focus { outline: none; }
.callout:focus circle { stroke: var(--red); stroke-width: 5; }
table.partes { min-width: 600px; }
table.partes td.n, table.partes th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.partes td.pn { font-family: var(--mono); white-space: nowrap; }
table.partes td.pn a { color: var(--link); font-weight: 700; text-decoration: none; }
table.partes tr.hi td { background: var(--hi); }
table.partes .nota { display: block; color: #888; font-size: 12.5px; }
table.partes .casco { display: block; color: var(--warn); font-size: 12.5px; }
table.partes td.accion { text-align: right; min-width: 150px; }
table.partes td.accion .btn-add, table.partes td.accion .btn-buy { display: block; text-align: center; margin: 2px 0; }
.btn-buy { background: var(--red); color: var(--white); border: 1px solid var(--red-dk); font: 700 13.5px/1 var(--font); padding: 9px 12px; border-radius: 4px; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-buy:hover { background: var(--red-dk); color: var(--white); }
.btn-wa-sm { background: var(--wa); border-color: #1da851; color: var(--black); }
.no-disp { display: block; font-size: 13px; color: #8a1024; font-weight: 600; white-space: normal; margin-bottom: 4px; }
.precio .lista { color: #999; text-decoration: line-through; font-size: 12.5px; display: block; }
.precio .cargando { color: #aaa; }
.btn-add { background: var(--yellow); color: var(--black); border: 1px solid var(--yellow-dk); font: 700 13.5px/1 var(--font); padding: 9px 12px; border-radius: 4px; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
.btn-add:hover { color: var(--black); filter: brightness(1.05); }
.btn-add:active { transform: translateY(1px); }
.btn-quote { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-quote:hover { color: var(--white); }
.btn-store { background: var(--white); color: var(--navy); border-color: var(--navy); }
.estado { font-size: 12.5px; color: var(--muted); display: block; margin-top: 4px; white-space: normal; }

/* ---- heavy unit card ---- */
.unidad { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; border: 1px solid var(--line); padding: 16px; margin: 18px 0 24px; background: var(--white); }
.unidad-foto { background: var(--grey); border: 1px solid var(--line); display: grid; place-items: center; min-height: 200px; }
.unidad-foto img { display: block; width: 100%; height: auto; }
.unidad-info { display: grid; gap: 10px; align-content: start; }
.unidad-h { margin: 0; font-weight: 800; font-size: 21px; line-height: 1.2; color: var(--head); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font: 700 12px/1 var(--font); padding: 6px 8px; border-radius: 3px; background: var(--navy); color: var(--white); }
.badge.y { background: var(--yellow); color: var(--black); }
.unidad-precio { margin: 0; font-size: 15px; }
.unidad-precio strong { font-size: 20px; color: var(--head); }
.unidad p { margin: 0; }
.unidad-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- forms ---- */
.s-form { display: grid; gap: 10px; border: 1px solid var(--line); padding: 16px; background: var(--grey); margin: 0 0 18px; max-width: 760px; }
.s-form.compacta { max-width: none; }
.s-form label { display: grid; gap: 4px; font: 600 13.5px/1.25 var(--font); color: var(--head); }
.s-form .opt { font-weight: 400; color: var(--muted); }
.s-form input, .s-form select, .s-form textarea { font: 400 15px/1.3 var(--font); padding: 10px; border: 1px solid #c4c4c4; border-radius: 3px; background: var(--white); color: var(--head); width: 100%; }
.s-form textarea { min-height: 110px; resize: vertical; }
.s-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.s-form .form-msg { font-size: 14px; padding: 10px 12px; background: var(--hi); color: var(--head); margin: 0; }
.s-form .form-msg.err { background: #fbe9ec; color: #8a1024; }
.s-form .fine { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ---- floating WhatsApp ---- */
.wa-float { position: fixed; right: 16px; bottom: 16px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); z-index: 30; }
.wa-float:hover { color: var(--white); filter: brightness(1.06); }

/* ---- footer ---- */
.s-foot { background: var(--black); color: #c9c9c9; font-size: 14px; padding: 30px 0 24px; margin-top: 10px; }
.s-foot a { color: #f0f0f0; text-decoration: none; }
.s-foot a:hover { color: var(--yellow); }
.foot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.foot-h { color: var(--yellow); font-weight: 800; margin: 0 0 8px; text-transform: uppercase; font-size: 12.5px; letter-spacing: .1em; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-contact p { margin: 0 0 6px; }
.foot-legal { border-top: 1px solid #333; margin-top: 22px; padding-top: 14px; font-size: 12.5px; color: #9a9a9a; }
.foot-legal p { margin: 0 0 6px; }
.foot-legal .foot-pto { font-size: 14px; color: #c9c9c9; }
.foot-legal .foot-pto a { color: var(--yellow); font-weight: 700; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .head-row { gap: 10px 14px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; order: 3; background: transparent; color: var(--white); border: 1px solid #555; border-radius: 4px; padding: 7px 10px; font: 700 14px/1 var(--font); cursor: pointer; }
  .burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; background: var(--white); position: relative; }
  .burger::before, .burger::after { content: ""; position: absolute; left: 0; }
  .burger::before { top: -5px; }
  .burger::after { top: 5px; }
  .s-tools { order: 2; margin-left: auto; }
  .s-nav { order: 4; flex-basis: 100%; }
  .js .s-nav { display: none; }
  .js .s-nav.open { display: block; }
  .s-nav > ul { flex-direction: column; gap: 0; border-top: 1px solid #333; padding-top: 6px; }
  .s-nav .sub { position: static; display: block; border: 0; box-shadow: none; background: transparent; padding: 0 0 4px 14px; min-width: 0; }
  .s-nav .has-sub > a::after { content: ""; }
  .s-trust { grid-template-columns: 1fr; }
  .unidad { grid-template-columns: 1fr; }
  .contact-box { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .logo-name { font-size: 17px; }
  .s-tel { display: none; }
  .s-wa { padding: 7px 9px; }
  .s-form .row2 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .lede { font-size: 16.5px; }
  .wa-float { width: 50px; height: 50px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .s-head, .s-search, .wa-float, .s-foot { display: none !important; } }
