:root { color-scheme: light; --ink: #172b28; --muted: #667570; --accent: #ed8a3a; --blue: #1769aa; --paper: #f7f6f2; --white: #fff; --line: #e4e7e2; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); font: 16px/1.6 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
.site-header { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: 1fr minmax(240px, 620px) 1fr; align-items: center; gap: 2rem; padding: .85rem max(6vw, 1.25rem); background: var(--white); border-bottom: 1px solid var(--line); }
.logo-placeholder { display: grid; width: 120px; height: 48px; place-items: center; border: 1px dashed #aeb9b1; border-radius: .45rem; color: #77847c; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.header-search { position: relative; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #f8f9f7; }
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #ed8a3a38; }
.header-search input { flex: 1; min-width: 0; padding: .72rem 1.1rem; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.header-search button { display: grid; width: 44px; height: 44px; place-items: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.header-search svg, .profile-link svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.search-suggestions { position: absolute; z-index: 20; top: calc(100% + .55rem); left: 0; right: 0; max-height: min(70vh, 540px); overflow-y: auto; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); box-shadow: 0 16px 40px #172b2824; }
.search-suggestions[hidden] { display: none; }
.search-suggestion-section + .search-suggestion-section { border-top: 1px solid var(--line); }
.search-suggestion-section h2 { margin: .7rem .25rem .35rem; color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.search-suggestion-item { display: flex; min-height: 56px; align-items: center; gap: .8rem; padding: .4rem; border-radius: .55rem; font-size: .94rem; font-weight: 650; }
.search-suggestion-item:hover, .search-suggestion-item:focus-visible { outline: 0; background: #f2f4f1; }
.search-suggestion-item img { width: 46px; height: 42px; flex: 0 0 46px; object-fit: contain; border: 1px solid var(--line); border-radius: .4rem; background: #fff; }
.search-suggestion-copy { display: grid; gap: .05rem; }
.search-suggestion-brand { color: #b6642e; font-size: .76rem; font-weight: 800; line-height: 1.25; }
.search-suggestion-model { color: var(--ink); font-size: .92rem; font-weight: 650; line-height: 1.3; }
.search-suggestion-more { display: block; padding: .55rem .4rem .7rem; color: #a95626; font-size: .88rem; font-weight: 750; }
.profile-link { justify-self: end; display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.profile-link:hover { border-color: var(--accent); color: #a95626; }
.mobile-search-trigger { display: none; }
.mobile-search-modal { width: min(100% - 2rem, 560px); max-width: none; max-height: min(80vh, 620px); margin: 12vh auto auto; padding: 1rem; overflow: visible; border: 1px solid #454a50; border-radius: 1rem; background: #111415; color: #f1f2f3; }
.mobile-search-modal::backdrop { background: rgb(0 0 0 / 62%); }
.mobile-search-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; font-weight: 750; }
.mobile-search-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.7rem; cursor: pointer; }
.mobile-search-form { width: 100%; }
.container { width: min(100% - 2.5rem, 1120px); margin-inline: auto; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; padding-block: 3rem 2.5rem; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.feature-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #e9ede8; }
.feature-card div { padding: 1.15rem 1.25rem 1.4rem; }
.feature-card h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); }
.brand-section, .catalog { padding-block: 2.5rem 3.5rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1.25rem; }
.eyebrow { margin: 0 0 .45rem; color: #b6642e; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0 0 .7rem; line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.brand-carousel { display: grid; grid-auto-columns: minmax(150px, 1fr); grid-auto-flow: column; gap: 1rem; overflow-x: auto; padding: .3rem .1rem 1rem; }
.brand-card { min-width: 0; scroll-snap-align: start; text-align: center; }
.brand-card img { display: block; width: 100%; aspect-ratio: 1.25; object-fit: contain; padding: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.brand-card:hover img { transform: translateY(-3px); box-shadow: 0 12px 28px #172b2817; }
.brand-card h2 { margin: .6rem 0 0; font-size: 1rem; }
.testimonials { padding-block: 3.5rem; background: #edf1ed; }
.testimonial-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.testimonial-image { display: block; width: 100%; min-height: 300px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1.1rem; }
.testimonial-copy h2 { max-width: 500px; }
.testimonial-copy > p:not(.eyebrow) { color: var(--muted); }
.testimonial-copy .testimonial-highlight { margin-top: 1.5rem; color: var(--blue); font-weight: 750; }
.helmet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.helmet-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: white; transition: transform .18s ease, box-shadow .18s ease; }
.helmet-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px #172b2814; }
.helmet-card img, .image-placeholder { display: grid; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; place-items: center; background: #e9ede8; color: #9aa59e; font-size: .85rem; font-weight: 900; letter-spacing: .15em; }
.helmet-card-body { padding: 1rem 1.1rem 1.2rem; }
.helmet-card h3, .helmet-card h2 { margin: .15rem 0 .55rem; font-size: 1.2rem; }
.text-link { color: #a95626; font-weight: 750; }
.empty-note { padding: 1rem; border: 1px dashed #cbd3cc; border-radius: .8rem; color: var(--muted); }
.brand-results { padding-block: 3rem 5rem; }
.results-intro { margin-bottom: 1.5rem; color: var(--muted); }
.detail-page { padding-block: 3rem 5rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: clamp(2rem, 5vw, 4rem); margin-top: 1.5rem; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; gap: .8rem; }
.gallery img, .detail-placeholder { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 1rem; background: #e9ede8; }
.detail-placeholder { grid-column: 1 / -1; display: grid; place-items: center; color: #9aa59e; font-weight: 900; letter-spacing: .15em; }
.detail-copy h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.detail-copy > p:not(.eyebrow) { color: var(--muted); }
.detail-copy h2 { margin-top: 2rem; font-size: 1.45rem; }
.kit-list { display: grid; gap: .8rem; }
.kit-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.kit-card h3, .kit-card p { margin: 0; }
.kit-card p { color: var(--muted); font-size: .9rem; }
.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; padding: 1.35rem max(6vw, 1.25rem); background: #172b28; color: white; }
.footer-brand { justify-self: start; display: inline-flex; align-items: center; }
.footer-brand img { display: block; width: min(150px, 100%); max-height: 58px; object-fit: contain; }
.footer-copyright { margin: 0; color: #c1cbc5; text-align: center; }
.footer-social { justify-self: end; text-align: right; }
.footer-social-title { margin: 0 0 .45rem; color: #c1cbc5; font-size: .9rem; }
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; color: #e8ede9; }
.social-links a:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) { .site-header { grid-template-columns: auto 1fr auto; gap: .7rem; padding-inline: 1rem; } .logo-placeholder { width: 70px; height: 42px; font-size: .6rem; } .header-search input { padding-inline: .8rem; font-size: .9rem; } .features { grid-template-columns: 1fr; padding-top: 1.5rem; } .feature-card { display: grid; grid-template-columns: minmax(120px, .8fr) 1.2fr; align-items: center; } .feature-card img { height: 100%; aspect-ratio: auto; } .testimonial-layout { grid-template-columns: 1fr; gap: 1.5rem; } .testimonial-image { min-height: auto; } .brand-carousel { grid-auto-columns: 42%; } .detail-grid { grid-template-columns: 1fr; } }
.main-image-frame { overflow: hidden; display: grid; min-height: 360px; aspect-ratio: 1.15; place-items: center; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.main-helmet-image { display: block; width: 100%; height: 100%; max-height: 600px; object-fit: contain; }
.main-image-placeholder { display: grid; width: 100%; height: 100%; min-height: 360px; place-items: center; background: #e9ede8; color: #87958d; font-weight: 800; letter-spacing: .1em; }
.thumbnail-carousel { display: flex; gap: .75rem; overflow-x: auto; padding: .8rem .1rem .35rem; scroll-snap-type: x mandatory; }
.thumbnail-button { flex: 0 0 88px; width: 88px; height: 72px; overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: .65rem; background: white; cursor: pointer; scroll-snap-align: start; }
.thumbnail-button.selected, .thumbnail-button:hover { border-color: var(--accent); }
.thumbnail-button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kit-section { padding-block: 3.5rem 5rem; background: #f0f2ef; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.kit-product-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.kit-product-card h3 { margin: 0; font-size: 1.6rem; }
.kit-image-placeholder { overflow: hidden; display: grid; aspect-ratio: 16 / 9; place-items: center; border-radius: .7rem; background: #f0f2ef; }
.kit-image-placeholder img { display: block; width: 100%; height: 100%; object-fit: cover; }
.kit-contents { min-height: 3.5rem; margin: 0; padding-left: 1.25rem; color: var(--muted); }
.mercado-libre-button { display: flex; align-items: center; justify-content: center; gap: .65rem; width: 100%; margin-top: auto; padding: .85rem 1rem; border-radius: .6rem; background: #ffe600; color: #1f2523; font-weight: 800; text-align: center; }
.mercado-libre-button:hover { background: #f4d900; }
.mercado-libre-button img { width: 32px; height: 32px; object-fit: contain; }
@media (max-width: 700px) { .main-image-frame, .main-image-placeholder { min-height: 280px; } }


.kit-selector-card { margin-top: 2rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.kit-selector-card h2 { margin: 0 0 .8rem; font-size: 1.5rem; }
/* Mantiene las imágenes completas dentro de sus áreas, sin recortarlas. */
.main-image-frame { height: clamp(280px, 42vw, 540px); min-height: 0; aspect-ratio: auto; }
.main-helmet-image { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.thumbnail-button img { object-fit: contain; background: #f7f7f5; }
.helmet-card img { object-fit: contain; padding: .4rem; background: #fff; }
.gallery img { object-fit: contain; }
@media (max-width: 700px) { .main-image-frame { height: clamp(260px, 76vw, 420px); min-height: 0; } }
.main-image-frame { padding: 1rem; }
.main-helmet-image { max-width: 100%; max-height: 100%; object-fit: contain; }
/* Marco de imagen con límites explícitos y contenido siempre ajustado. */
.main-image-frame {
  width: 100%;
  height: clamp(360px, 45vw, 560px);
  min-height: 360px;
  max-height: 560px;
  min-width: 0;
  padding: 1rem;
}
.main-helmet-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 700px) {
  .main-image-frame {
    height: clamp(320px, 92vw, 420px);
    min-height: 320px;
    max-height: 420px;
  }
}
/* Evita que el ancho intrínseco de fotos grandes ensanche el documento. */
.detail-page, .detail-grid, .detail-grid > *, .product-gallery, .detail-copy {
  min-width: 0;
  max-width: 100%;
}
.detail-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.main-image-frame { width: 100%; max-width: 100%; }
.main-helmet-image { min-width: 0; max-width: 100%; }
.thumbnail-carousel { width: 100%; min-width: 0; max-width: 100%; overscroll-behavior-inline: contain; }
@media (max-width: 760px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Ficha de casco: galería y kits en dos columnas, apiladas en móvil. */
.helmet-detail-page { width: min(100% - 2rem, 1280px); min-width: 0; padding-block: 2rem 4rem; }
.helmet-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 3vw, 3rem); min-width: 0; }
.helmet-gallery-column, .helmet-kits-column { min-width: 0; max-width: 100%; }
.helmet-gallery-column .main-image-frame { height: clamp(360px, 50vw, 650px); min-height: 360px; max-height: 650px; padding: 1.25rem; }
.helmet-gallery-column .main-helmet-image { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.helmet-heading { margin-top: 1.5rem; }
.helmet-heading h1 { margin-bottom: .7rem; }
.helmet-heading > p:last-child { color: var(--muted); }
.helmet-kits-column { padding-top: .5rem; }
.helmet-kits-column > h2 { margin-bottom: 1.4rem; }
.global-kit-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; min-width: 0; }
.global-kit-card { display: flex; flex-direction: column; min-width: 0; gap: .85rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.global-kit-card h3 { margin: 0; font-size: 1.55rem; }
.global-kit-image { display: grid; width: 100%; height: clamp(220px, 30vw, 380px); min-width: 0; place-items: center; overflow: hidden; border-radius: .65rem; background: #f7f7f5; }
.global-kit-image img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.global-kit-card .mercado-libre-button { margin-top: auto; }
@media (max-width: 760px) {
  .helmet-detail-page { width: min(100% - 1.25rem, 640px); padding-top: 1.5rem; }
  .helmet-detail-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .helmet-gallery-column .main-image-frame { height: clamp(300px, 90vw, 460px); min-height: 300px; max-height: 460px; padding: .9rem; }
  .global-kit-image { height: clamp(220px, 65vw, 340px); }
}
/* Ajuste de la ficha: encabezado del casco a la derecha y kits compactos. */
.helmet-kits-column .helmet-heading { margin: 0 0 1.4rem; }
.helmet-kits-column .helmet-heading h1 { margin: .15rem 0 .7rem; }
.helmet-kits-column .helmet-heading > p:last-child { margin: 0; color: var(--muted); }
.helmet-kits-column .kits-eyebrow { margin-bottom: .25rem; }
.helmet-kits-column > h2 { margin-bottom: 1rem; }
.global-kit-grid { gap: .8rem; }
.global-kit-card { gap: .6rem; padding: .9rem; }
.global-kit-card h3 { font-size: 1.3rem; }
.global-kit-image { height: clamp(130px, 15vw, 190px); }
@media (max-width: 760px) {
  .global-kit-image { height: clamp(190px, 58vw, 280px); }
}
/* Tarjetas de kit en filas: imagen completa junto a la lista de contenido. */
.helmet-detail-layout { align-items: stretch; }
.helmet-gallery-column { display: grid; grid-template-rows: minmax(0, 1fr) auto; align-content: stretch; }
.helmet-gallery-column .main-image-frame { height: 100%; min-height: 360px; max-height: none; }
.helmet-gallery-column .thumbnail-carousel { align-self: end; }
.global-kit-grid { gap: .8rem; }
.global-kit-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: .6rem; }
.global-kit-content { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(130px, .85fr); align-items: center; gap: .8rem; min-width: 0; }
.global-kit-image { width: 100%; height: auto; min-height: 0; max-height: 230px; aspect-ratio: 4 / 3; overflow: visible; background: #fff; }
.global-kit-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; object-position: center; }
.global-kit-items { margin: 0; padding-left: 1.25rem; overflow-wrap: anywhere; color: var(--muted); }
.global-kit-items li + li { margin-top: .35rem; }
.global-kit-card .mercado-libre-button { grid-row: 3; }
@media (max-width: 760px) {
  .helmet-detail-layout { align-items: start; }
  .helmet-gallery-column { display: block; }
  .helmet-gallery-column .main-image-frame { height: clamp(300px, 90vw, 460px); min-height: 300px; max-height: 460px; }
}
@media (max-width: 520px) {
  .global-kit-content { grid-template-columns: minmax(0, 1fr) minmax(110px, .85fr); gap: .55rem; }
  .global-kit-image { max-height: 200px; }
}
@media (max-width: 760px) {
  .global-kit-content { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
  .global-kit-image { width: 100%; height: clamp(180px, 58vw, 280px); max-height: 280px; aspect-ratio: 4 / 3; }
  .global-kit-items { padding-left: 1.25rem; }
  .global-kit-card .mercado-libre-button { width: 100%; gap: .5rem; white-space: nowrap; font-size: .92rem; }
}
.features { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.brand-carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: auto;
  padding: .3rem .1rem 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: none;
  cursor: grab;
  user-select: none;
  touch-action: pan-x;
}
.brand-carousel::-webkit-scrollbar { display: none; }
.brand-carousel.is-dragging { cursor: grabbing; }
.brand-card { flex: 0 0 clamp(155px, 18vw, 205px); }
.brand-card img { -webkit-user-drag: none; user-select: none; }
.brand-card-clone { pointer-events: auto; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .brand-card { flex-basis: 42%; } }
.brand-carousel-shell { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: .65rem; }
.brand-carousel-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font: inherit; cursor: pointer; }
.brand-carousel-arrow span { margin-top: -3px; font-size: 2rem; line-height: 1; }
.brand-carousel-arrow:hover, .brand-carousel-arrow:focus-visible { border-color: var(--accent); outline: 2px solid #ed8a3a55; }
@media (max-width: 760px) {
  .features { grid-template-columns: minmax(0, 1fr) !important; padding-top: 1.5rem; }
  .feature-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
  .feature-card img { width: 112px; height: 100%; min-height: 112px; aspect-ratio: 1; object-fit: contain; }
  .brand-carousel-shell { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: .4rem; }
  .brand-carousel-arrow { width: 36px; height: 36px; }
}
@media (max-width: 760px) {
  .brand-carousel-shell { display: block; }
  .brand-carousel-arrow { display: none; }
  .brand-carousel { gap: .8rem; padding: .4rem .1rem 1rem; }
  .brand-card { flex: 0 0 74%; }
  .brand-card img { aspect-ratio: 1.45; padding: .6rem; }
}
.home-hero { overflow: hidden; padding: clamp(2rem, 5vw, 4rem) max(1.25rem, calc((100vw - 1120px) / 2)); background: linear-gradient(115deg, #17352e, #23483f 70%, #315b4c); color: white; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(1.5rem, 4vw, 4rem); width: 100%; max-width: 1120px; margin-inline: auto; }
.home-hero-search { display: grid; justify-items: center; gap: .8rem; margin: 2rem auto 0; text-align: center; }
.home-hero-search h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.home-hero-search-button { min-width: 190px; padding: .85rem 1.5rem; border: 0; border-radius: .6rem; background: var(--accent); color: #172b28; font: inherit; font-weight: 800; cursor: pointer; }
.home-hero-search-button:hover { background: #f2a15e; }
.home-hero-copy { padding: 1rem 0; }
.home-logo-placeholder { display: grid; width: min(100%, 300px); min-height: 112px; place-items: center; border: 2px dashed #b9c9bf; border-radius: .9rem; color: #e7eee9; font-size: .9rem; font-weight: 850; letter-spacing: .15em; }
.home-slogan { max-width: 440px; margin: 1.2rem 0 0; color: #f2b27b; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 650; line-height: 1.35; }
.home-origin { margin: .75rem 0 0; color: #f2f4ef; font-size: 1rem; font-weight: 700; }
.home-hero-visual { min-width: 0; }
.home-hero-visual img { display: block; width: 100%; max-height: 440px; aspect-ratio: 1.52; object-fit: cover; border: 1px solid #ffffff30; border-radius: 1.2rem; }
@media (max-width: 760px) {
  .home-hero { padding: 1.5rem 1.25rem 2rem; }
  .home-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.3rem; }
  .home-hero-copy { padding: .4rem 0 0; text-align: center; }
  .home-logo-image { margin-inline: auto; object-position: center; }
  .home-logo-placeholder { width: 100%; min-height: 84px; }
  .home-slogan { margin: .8rem auto 0; }
  .home-origin { justify-content: center; }
  .home-hero-visual img { width: 100%; margin-inline: auto; aspect-ratio: 1.35; max-height: 300px; }
  .home-hero-search { margin-top: 1.5rem; }
}
.home-hero-visual img { object-fit: contain; }
@media (max-width: 760px) { .home-hero-visual img { aspect-ratio: 1.52; } }
.testimonials-container { overflow: hidden; }
.testimonials-track { display: flex; width: 100%; transition: transform .75s cubic-bezier(.22,.72,.18,1); will-change: transform; }
.testimonial-slide { flex: 0 0 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); min-width: 0; }
.testimonial-slide[aria-hidden="true"] { pointer-events: none; }
.testimonial-slide .testimonial-image { width: 100%; min-width: 0; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 1rem; }
.testimonial-copy { min-width: 0; }
.testimonial-mobile-eyebrow { display: none; }
.testimonial-copy h2 { max-width: 520px; }
.testimonial-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.testimonial-controls > button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); font-size: 1.6rem; cursor: pointer; }
.testimonial-dots { display: flex; gap: .5rem; }
.testimonial-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: #aab5ae; cursor: pointer; }
.testimonial-dots button[aria-current="true"] { width: 24px; border-radius: 999px; background: var(--accent); }
@media (max-width: 760px) {
  .testimonial-slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 1rem; }
  .testimonial-mobile-eyebrow { display: block; grid-row: 1; margin: 0; }
  .testimonial-slide .testimonial-image { grid-row: 2; }
  .testimonial-copy > .eyebrow { display: none; }
  .testimonial-copy { grid-row: 3; }
  .testimonial-slide .testimonial-image { max-height: 300px; }
}
@media (prefers-reduced-motion: reduce) { .testimonials-track { transition: none; } }
.logo-placeholder { width: 150px; height: 56px; border: 0; }
.logo-placeholder img { display: block; width: 100%; height: 100%; object-fit: contain; }
.home-logo-image { display: block; width: min(100%, 360px); height: 120px; object-fit: contain; object-position: left center; }
@media (max-width: 760px) {
  .logo-placeholder { width: 100px; height: 42px; }
  .home-logo-image { width: min(100%, 300px); height: 92px; }
}
/* Solo el header y la búsqueda usan el tratamiento oscuro. */
.site-header { background: #050606; border-bottom-color: #303235; color: #f1f2f3; }
.site-header nav { color: #d5d8db; }
.site-header nav a:hover { color: #fff; }
.logo-placeholder img { filter: none; }
.header-search { background: #202326; border-color: #454a50; }
.search-suggestions { color: var(--ink); }
.header-search input { color: #f1f2f3; }
.header-search input::placeholder { color: #b6bbc0; }
.header-search button, .profile-link { color: #eceef0; }
.profile-link { border-color: #555b62; }
.profile-link:hover { border-color: #d0d3d7; color: #fff; }
.search-results-page { padding-block: 3rem 5rem; }
.search-brand-results { margin-block: 2rem; }
.search-brand-results > h2, .search-helmet-results > h2 { margin: 0 0 .7rem; font-size: 1.4rem; line-height: 1.15; letter-spacing: -.035em; }
.search-brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.search-brand-result { display: flex; align-items: center; gap: .8rem; padding: .65rem; border: 1px solid var(--line); border-radius: .8rem; background: white; font-weight: 700; }
.search-brand-result img { width: 58px; height: 50px; object-fit: contain; }
@media (max-width: 760px) {
  .site-header { grid-template-columns: minmax(0, 1fr) 40px 40px; gap: .5rem; padding-inline: .75rem; }
  .home-logo-image { margin-inline: auto; object-position: center; }
  .logo-placeholder { width: 70px; min-width: 0; }
  .site-header > .header-search { display: none; }
  .mobile-search-trigger { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #555b62; border-radius: 50%; background: transparent; color: #eceef0; cursor: pointer; }
  .mobile-search-trigger svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-search-form { display: flex; }
  .mobile-search-form input { width: auto; min-width: 0; }
  .mobile-search-modal { width: calc(100% - 2rem); max-width: 560px; margin: 12vh auto auto; box-sizing: border-box; }
  .profile-link { width: 40px; min-width: 40px; }
  .search-brand-results { overflow: hidden; }
  .search-brand-list { display: flex; gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .search-brand-list::-webkit-scrollbar { display: none; }
  .search-brand-slide { display: grid; flex: 0 0 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, minmax(64px, auto)); align-content: start; gap: .65rem; padding-right: .1rem; scroll-snap-align: start; }
  .search-brand-result { min-width: 0; gap: .45rem; padding: .45rem; font-size: .88rem; }
  .search-brand-result img { width: 42px; height: 42px; flex: 0 0 42px; }
  .search-results-page, .search-helmet-results, .helmet-grid, .helmet-card { min-width: 0; }
}
@media (max-width: 600px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; gap: .75rem; padding-block: 1.5rem; text-align: center; }
  .footer-brand, .footer-social { justify-self: center; }
  .footer-social { text-align: center; }
  .social-links { justify-content: center; gap: 1.25rem; }
}
.search-results-page h1 { margin-bottom: .5rem; }
.search-summary { margin: 0 0 1.7rem; color: var(--muted); }
.all-models-action { display: flex; justify-content: center; margin-top: 2rem; }
.all-models-action .button { padding-inline: 1.6rem; }
.feature-card img { object-fit: contain; background: #fff; }
/* Solo estas secciones llenan su marco con recorte centrado. */
.home-hero-visual img,
.feature-card img,
.testimonial-slide .testimonial-image {
  object-fit: cover;
  object-position: center;
}
/* Promo modal */
.promo-modal { position: fixed; width: min(92vw, 480px); max-height: min(85vh, 720px); padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid #ffffff30; border-radius: 1.25rem; background: #fff; color: #182b26; text-align: center; box-shadow: 0 24px 90px #07130f55; }
.promo-modal::backdrop { background: #101a17b8; backdrop-filter: blur(4px); }
.promo-modal-close { position: absolute; top: .7rem; right: .9rem; width: 2.4rem; height: 2.4rem; border: 0; border-radius: 50%; background: #eff2ef; color: #182b26; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.promo-modal .eyebrow { margin: 0 2rem .5rem; }
.promo-modal h2 { margin: 0 1rem .75rem; font-size: clamp(1.6rem, 6vw, 2.2rem); line-height: 1.1; }
.promo-modal > p:not(.eyebrow):not(.promo-code-label) { color: #52615a; }
.promo-code-label { margin: 1rem 0 .25rem; color: #52615a; }
.promo-code { display: block; padding: .7rem 1rem; border: 2px dashed #f08432; border-radius: .65rem; color: #182b26; font-size: 1.4rem; letter-spacing: .12em; }
.promo-decoration { display: grid; width: 92px; height: 92px; place-items: center; margin: 1.2rem auto; border: 8px solid #f08432; border-radius: 50%; background: #f4cf16; color: #17352e; font-size: 3rem; }
.promo-modal-action { width: 100%; margin-top: 1.25rem; cursor: pointer; }
