.battery-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 100px;
  padding: 22px;
  text-align: center;
  color: #596476;
}
.pd-media > .battery-photo-placeholder {
  min-height: 230px;
}
.battery-moto-year {
  font-size: .9rem;
  color: #596476;
  margin: 8px 0;
}
.battery-compatibility .section-title {
  margin-top: 24px;
}
.result-wrap [hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  .site-header nav a:last-child {
    display: none;
  }
}
#guideModal[data-guide-type="bateria"] .guide-progress-bars i:last-child {
  display: none;
}

body.detail-mode .site-header,
body.detail-mode .hero {
  display: none !important;
}
body.results-compact-mode #results {
  min-height: 100vh;
}
body.detail-mode #results {
  padding-top: 88px;
}

.md-summary-data {
  width: 100%;
  margin-top: 9px;
}
.md-summary-data h2 {
  margin: 0 0 9px;
  font-size: 15px;
}
.md-summary-data .md-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.md-summary-data .md-metric strong {
  overflow-wrap: anywhere;
}
.moto-technical-year { margin: 0 0 10px; font-size: 14px; }
.moto-technical-sheet + .moto-technical-sheet {
  margin-top: 16px;
  border-top: 1px solid #dedfe2;
  padding-top: 12px;
}
.moto-battery-applications > .section-title {
  margin-top: 32px;
}
.battery-application-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.battery-show-all {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #b60927;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.battery-show-all:hover {
  text-decoration: underline;
}
.battery-brand-heading {
  margin: 0 0 12px;
}
.battery-brand-tabs button {
  overflow-wrap: anywhere;
}
.battery-brand-tabs button:focus-visible {
  outline: 2px solid #b60927 !important;
  outline-offset: 3px;
}
.battery-compatibility .pd-measure-block strong {
  overflow-wrap: anywhere;
}
.results-filter-group [data-filter-select] {
  width: 100%;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe3e9;
  border-radius: 7px;
  color: inherit;
}
@media (max-width: 640px) {
  body.detail-mode #results {
    padding-top: 69px;
  }
  .battery-application-scope {
    gap: 6px;
  }

}



/* V7: componentes de tarjetas propios, sin depender de alturas del catálogo de llantas. */
.battery-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 18px;
  align-items: start;
  min-width: 0;
}
.battery-tile-grid.battery-product-grid,
.battery-tile-grid.battery-moto-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.battery-tile {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 0;
  margin: 0;
  background: #fff;
  color: #111;
  font: inherit;
  text-align: left;
  border: 1px solid #dedfe3;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 9px 28px #0000000e;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.battery-tile-media {
  box-sizing: border-box;
  flex: 0 0 205px;
  height: 205px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-bottom: 1px solid #ececef;
  overflow: hidden;
  background: #fff;
}
.battery-tile-media img {
  display: block;
  width: 100%; height: 100%;
  min-width: 0; min-height: 0;
  object-fit: contain;
  object-position: center;
}
.battery-tile-media .battery-photo-placeholder,
.battery-tile-media .moto-match-placeholder {
  box-sizing: border-box;
  width: 100%; height: 100%; min-height: 0;
  display: grid; place-items: center;
  padding: 12px;
  background: #f5f6f8;
  border-radius: 8px;
  color: #717985;
  font-size: 12px; font-weight: 650;
  text-align: center;
}
.battery-moto-tile { min-height: 388px; }
.battery-product-tile { min-height: 431px; }
.battery-tile-body {
  box-sizing: border-box;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  min-height: 0; min-width: 0;
  width: 100%;
  padding: 15px 17px 14px;
  gap: 8px;
}
.battery-moto-tile .battery-tile-body,
.battery-product-tile .battery-tile-body { justify-content: flex-start; }
.battery-tile-body > * { flex-shrink: 0; }
.battery-tile-brand-row { display: flex; align-items: center; min-width: 0; }
.battery-tile-brand {
  display: inline-block;
  border: 1px solid #e4e4e7;
  border-radius: 999px;
  padding: 5px 10px;
  color: #cf1429;
  font-size: 10px; font-weight: 900;
  letter-spacing: .05em; text-transform: uppercase;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.battery-tile-title {
  font-size: 20px; line-height: 1.15; font-weight: 850;
  margin: 0; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.battery-tile-category,.battery-tile-application {
  color: #626b79; font-size: 12px; line-height: 1.35;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Tecnología: dato destacado y separado de los años de aplicación. */
.battery-tile-technology {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 0; min-height: 24px; padding: 3px 8px;
  border-radius: 6px; background: #f3f3f5; color: #262c35;
  font-size: 12px; line-height: 1.3;
}
.battery-tile-technology span { font-size: 10px; font-weight: 700; color: #555e6b; }
.battery-tile-technology strong { font-weight: 850; text-align: right; overflow-wrap: anywhere; }
.battery-tile-category[hidden] { display: none !important; }
.battery-tile-colors { min-width: 0; overflow: hidden; }
.battery-tile-colors:empty { display: none; }
.battery-tile-colors .moto-colors.compact { flex-wrap: nowrap; margin: 0; }
.battery-tile-colors .moto-colors.compact small { font-size: 10px; }
.battery-tile-colors .moto-colors.compact span:last-child { display: none; }
.battery-tile-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; min-height: 0; }
.battery-moto-tile .battery-tile-facts { grid-template-columns: minmax(0,1fr); margin-top: auto; }
.battery-product-tile .battery-tile-facts { margin-top: auto; }
.battery-tile-facts > div { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 3px; background: #f3f3f5; border-radius: 9px; padding: 8px 10px; overflow: hidden; }
.battery-tile-facts b { font-size: 9px; line-height: 1.2; color: #666e79; text-transform: uppercase; letter-spacing: .04em; }
.battery-tile-facts span { font-size: 13px; line-height: 1.25; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.battery-tile-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #ececef; min-width: 0; margin-top: auto; padding-top: 10px; }
.battery-tile-footer span { font-size: 10px; color: #657084; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.battery-tile-footer strong,.battery-compat-cta { color: #c81027; font-size: 12px; font-weight: 850; white-space: nowrap; }
.battery-tile-grid.battery-compat-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); gap: 14px; }
.battery-compat-tile { height: 142px; display: grid; grid-template-columns: 105px minmax(0,1fr); gap: 12px; padding: 12px; align-items: stretch; }
.battery-compat-photo { display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden; background: #fff; border-radius: 9px; }
.battery-compat-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }

.battery-compat-photo .moto-match-placeholder { min-height: 0; height: 100%; padding: 7px; font-size: 10px; }
.battery-compat-content { min-width: 0; min-height: 0; display: grid; grid-template-rows: 36px 26px 14px 18px; gap: 3px; }
.battery-compat-head { font-size: 13px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.battery-compat-content small { font-size: 11px; line-height: 1.2; color: #637084; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.battery-compat-content small:nth-of-type(2) { white-space: nowrap; text-overflow: ellipsis; display: block; }
@media (hover: hover) {
  .battery-tile:hover { border-color: #ed1730; box-shadow: 0 6px 16px #d4192f24; transform: translateY(-2px); }
  .battery-tile:hover .battery-tile-footer strong,.battery-tile:hover .battery-compat-cta { text-decoration: underline; }
}
.battery-tile:focus-visible { outline: 2px solid #b60927; outline-offset: 2px; }
@media (max-width: 640px) {
  .battery-tile-grid.battery-product-grid,.battery-tile-grid.battery-moto-grid { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 14px; }
  .battery-tile-grid.battery-compat-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .battery-tile { transition: none; }
  .battery-tile:hover { transform: none; }
}

/* V8: fichas propias; no reutilizan las dimensiones de las fichas de neumáticos. */
.bd-hero{display:grid;grid-template-columns:minmax(0,43%) minmax(0,1fr);background:#fff;border:1px solid #dedfe3;border-radius:20px;overflow:hidden;box-shadow:0 10px 28px #0000000b;margin-bottom:20px;align-items:stretch}
.bd-media{position:relative;display:grid;place-items:center;min-width:0;min-height:320px;padding:46px 24px 36px;border-right:1px solid #ececef;background:#fff}
.bd-media img{width:100%;height:300px;object-fit:contain;display:block;min-width:0}
.bd-media .moto-match-placeholder,.bd-media .battery-photo-placeholder{width:100%;min-height:240px;background:#f3f4f6;border-radius:12px;display:grid;place-items:center;text-align:center}
.bd-brand{position:absolute;top:16px;left:16px;border:1px solid #e4e4e7;border-radius:999px;padding:7px 12px;color:#c81027;font-size:12px;font-weight:850;text-transform:uppercase}
.bd-summary{padding:26px 30px;min-width:0;display:flex;flex-direction:column;gap:13px;justify-content:center;align-items:stretch}
.bd-kicker{font-size:11px;letter-spacing:.12em;font-weight:850;color:#c81027;text-transform:uppercase}
.bd-summary h1{font-size:clamp(26px,3vw,38px);line-height:1.12;margin:0;overflow-wrap:anywhere}
.bd-summary .moto-colors{margin:0}
.bd-description{font-size:13px;color:#636b77;margin:0;line-height:1.45}
.bd-year{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center}.bd-year label{font-size:13px;font-weight:800}.bd-year select{font:inherit;max-width:100%;min-width:0;flex:1;padding:10px;border:1px solid #dce0e6;border-radius:8px;background:#fff;color:#18202c}
.bd-highlight{background:#f5f5f6;border-left:4px solid #ed1730;padding:12px 15px;border-radius:8px;display:flex;flex-direction:column;gap:3px}.bd-highlight small{color:#626b79;font-weight:800;font-size:10px;letter-spacing:.06em}.bd-highlight strong{font-size:23px;line-height:1.15}.bd-highlight span{font-size:12px;color:#626b79}
.bd-identifiers,.bd-primary,.bd-spec-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.bd-primary{grid-template-columns:repeat(3,minmax(0,1fr))}
.bd-identifiers .pd-datum,.bd-primary .pd-datum,.bd-spec-grid .pd-datum{min-width:0;padding:12px;background:#f4f4f6;border:0;border-radius:9px;overflow-wrap:anywhere}.bd-primary .pd-datum strong{font-size:16px}
.bd-related p{font-size:13px;color:#626b79;line-height:1.5}
.bd-battery-section{margin-top:32px;min-width:0}
.bd-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #dcdfe4}
.bd-section-head h2{font-size:clamp(22px,2.4vw,30px);line-height:1.2;margin:5px 0 6px;color:#151922;font-weight:850}
.bd-section-count{display:inline-block;padding:10px 14px;background:#fff;border:1px solid #dedfe3;border-radius:9px;color:#18202c;font-size:13px;font-weight:800;white-space:nowrap}
.bd-section-head>div{flex:1 1 240px;min-width:0}
.bd-spec-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr))}
.battery-detail-page .battery-product-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,245px),1fr))}
.bd-related{margin-top:28px}.bd-related .section-title{margin-bottom:10px}
@media(max-width:800px){.bd-hero{grid-template-columns:minmax(0,1fr)}.bd-media{border-right:0;border-bottom:1px solid #ececef;min-height:0;padding:42px 18px 30px}.bd-media img{height:240px}.bd-summary{padding:20px;gap:12px}}
@media(max-width:480px){.bd-primary{grid-template-columns:repeat(2,minmax(0,1fr))}.bd-summary{padding:17px}.bd-battery-section{margin-top:24px}.bd-section-head{gap:10px;padding-bottom:12px;margin-bottom:14px}.battery-detail-page .battery-product-grid{grid-template-columns:minmax(0,1fr)}}

/* V9: filtros propios de catálogo y compatibilidad. */
[data-filter-scope] > div {min-width:0;}
[data-filter-scope] .results-filter-group select {display:block;width:100%;max-width:100%;min-width:0;padding:9px;border:1px solid #dce0e6;border-radius:8px;background:#fff;color:#18202c;font:inherit;font-size:13px;}
[data-filter-scope] .results-filter-options {max-height:230px;overflow-y:auto;}
[data-filter-scope] .results-filter-option {overflow-wrap:anywhere;}
.bd-battery-section [data-filter-scope] .results-sidebar {top:88px;}

/* Familias y versiones: mismo sistema visual de las fichas completas. */
.bd-variant-apps{margin:24px 0;padding:18px 20px;border:1px solid #e4e5e8;background:#fff;border-radius:14px}
.bd-variant-apps h3{margin:0 0 6px;font-size:20px;color:#17202b}
.bd-variant-row{padding:10px 0;border-top:1px solid #ececef;display:grid;gap:4px;min-width:0}.bd-variant-row small{color:#626b79}.bd-variant-row div{display:flex;flex-wrap:wrap;gap:6px}.bd-variant-row div span{padding:6px 9px;border-radius:7px;background:#f3f3f5;color:#303845;font-size:12px;overflow-wrap:anywhere}
.bd-variant-row small:empty{display:none}.bd-variant select{min-width:0;max-width:100%}
/* Resumen de moto compacto: controles y equipamiento sin filas redundantes. */
.moto-detail-page .bd-summary{padding:22px 26px;gap:9px;justify-content:flex-start}
.moto-detail-page .bd-media{min-height:0;padding:42px 20px 30px;align-self:stretch}
.moto-detail-page .bd-media .bd-moto-photo{height:300px;min-height:0;max-height:100%;background:#fff;object-fit:contain}
.bd-query-controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px;min-width:0}
.bd-query-controls .bd-year{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;align-content:start}
.bd-query-controls .bd-year select{width:100%;padding:8px 10px;font-size:13px}
.bd-version-features{font-size:12px;font-weight:750;color:#b90f28;line-height:1.35;overflow-wrap:anywhere}
.moto-detail-page .bd-highlight{padding:9px 12px;gap:2px}
.moto-detail-page .bd-highlight strong{font-size:21px}
.moto-detail-page .md-summary-data{margin:0;padding:0}
.moto-detail-page .md-summary-data h2{margin:4px 0 7px}
.moto-detail-page .md-summary-data .md-spec-grid{gap:7px;grid-template-columns:repeat(2,minmax(0,1fr))}
.moto-detail-page .md-summary-data .md-metric{min-height:0;padding:8px 10px;overflow-wrap:anywhere}
.moto-detail-page .md-summary-data .md-metric span{margin-bottom:3px}
@media(max-width:800px){.moto-detail-page .bd-summary{padding:17px;gap:9px}.moto-detail-page .bd-media .bd-moto-photo{height:240px}.moto-detail-page .bd-media{padding:38px 16px 28px}}
@media(max-width:480px){.bd-query-controls{grid-template-columns:minmax(0,1fr)}}


.battery-photo-reference {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 4px;
  width: 100%;
  min-height: 0;
  margin: 0;
}
.battery-tile-media .battery-photo-reference { height: 100%; }
.battery-photo-reference figcaption {
  color: #626b79;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
}

/* Portada del buscador de baterías */
.battery-home-hero {
  --battery-cover: url('../assets/portada/portada-mct-mcb6l.webp');
  background: radial-gradient(ellipse at 94% 65%, #240d14, #090b0f 64%) !important;
}
.battery-home-hero::before {
  inset: 0 0 0 50% !important;
  background: var(--battery-cover) no-repeat center / cover !important;
  mask-image: linear-gradient(90deg, transparent, #000 21%);
}
.battery-home-hero::after {
  background: linear-gradient(90deg, #06080d 4%, #07090e70 45%, transparent 68%) !important;
}
.battery-home-hero .hero-inner > :is(h1, p, .search-mode-group, .search-panel) {
  width: min(720px, 56%) !important;
}
.battery-home-hero .hero-inner h1 {
  font-size: clamp(29px, 3.85vw, 60px) !important;
}
.battery-hero-mobile-art { display: none; }

body.results-compact-mode .battery-home-hero::before {
  inset: 0 0 auto auto !important;
  height: 100%;
  width: auto;
  max-width: 50%;
  aspect-ratio: 1052 / 778;
  background-position: right center !important;
}
.v363-sticky-search {
  background: linear-gradient(90deg, #11151c 70%, #11151c96),
    #11151c url('../assets/portada/portada-mct-mcb6l.webp') right 49% / 300px auto no-repeat;
}

.welcome-battery-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  vertical-align: middle;
}
.welcome-battery-icon::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 4px;
  height: 3px;
  background: currentColor;
  box-shadow: 10px 0 currentColor;
}
.welcome-battery-icon::after {
  content: "+";
  font: 800 10px/10px system-ui, sans-serif;
  position: absolute;
  right: 2px;
  top: 0;
}
.welcome-v356 .battery-brand-strip {
  grid-template-columns: repeat(3, minmax(0, 210px));
}
.welcome-v356 .battery-brand-strip > .brand-logo-v358 img {
  max-width: 85% !important;
}
.welcome-v356 .premium-benefits .benefit-v356:nth-child(n+2) img {
  bottom: 10px !important;
  right: 10px !important;
  width: 34% !important;
  height: calc(100% - 20px) !important;
  object-position: right center !important;
}

@media (min-width: 761px) and (max-width: 1100px), (min-width: 1720px) {
  .battery-home-hero::before { background-size: contain !important; }
}
@media (max-width: 760px) {
  .battery-home-hero::before { background: none !important; }
  .battery-home-hero::after { background: none !important; }
  .battery-home-hero .hero-inner > :is(h1, p, .search-mode-group, .search-panel) { width: 100% !important; }
  .battery-home-hero .hero-inner h1 { font-size: clamp(30px, 6.6vw, 47px) !important; }
  .battery-hero-mobile-art {
    display: block;
    height: clamp(140px, 43vw, 205px);
    aspect-ratio: 1052 / 778;
    max-width: 100%;
    margin: -2px auto 12px;
    background: var(--battery-cover) center / contain no-repeat;
    mask-image: radial-gradient(ellipse 67% 71%, #000 63%, transparent 100%);
  }
  body.results-compact-mode .battery-home-hero .hero-inner h1 { font-size: clamp(27px, 5.6vw, 39px) !important; }
  body.results-compact-mode .battery-hero-mobile-art { height: 105px; }
  .welcome-v356 .battery-brand-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .welcome-v356 .premium-benefits .benefit-copy {
    width: 65% !important;
    max-width: 65% !important;
  }
  .welcome-v356 .premium-benefits .benefit-v356:nth-child(n+2) img { width: 30% !important; }
}
