/* shell.css — espejo de Navbar.module.css + Footer.module.css del sitio Chery Paraguay.
   Valores en px (no rem/em) para aislar del resizeRoot del CSS legacy. */

/* Screen-reader-only: visible para a11y/SEO, oculto visualmente (M-01) */
.hs-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

#himla-shell-navbar, #himla-shell-footer, #himla-shell-ficha {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
#himla-shell-navbar *, #himla-shell-footer *, #himla-shell-ficha * {
  box-sizing: border-box;
  font-size: inherit;
  line-height: inherit;
}

/* ===================================================================
   NAVBAR (copia fiel de Navbar.module.css con rem→px)
   =================================================================== */
.hs-navbarContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  z-index: 999;
  color: #fff;
  margin: 0;
  padding: 0;
}
.hs-navbarContainer.hs-active {
  background-color: #f0f0f0;
  color: #000;
}
.hs-navbarContent {
  max-width: 1200px;
  padding: 0 0 0 48px;
  display: flex;
  align-items: center;
  height: 70px;
  position: relative;
  margin: 0;
}
.hs-logoArea {
  flex-shrink: 0;
  margin: 0 0 0 48px;
  padding: 0;
}
.hs-logoArea a {
  display: inline-block;
  text-decoration: none;
  padding: 0;
  margin: 0;
}
.hs-logoImage {
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
  margin: 0 48px 0 0;
  display: block;
  height: 40px;
  width: 100px;
  object-fit: contain;
}
.hs-active .hs-logoImage { filter: none; }

.hs-hamburger {
  display: none;
  cursor: pointer;
  width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0;
}
.hs-hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: currentColor;
  margin: 0 0 5px 0;
  transition: transform 0.3s ease;
}
.hs-hamburger span:last-of-type { margin-bottom: 0; }
.hs-active .hs-hamburger span { background-color: #000; }

/* Override contra `nav { width:100%; transform: translateX(-50%); ... }` del
   themes.css legacy (línea 214), que matchea cualquier <nav> y rompe el layout.
   Uso selector nav.hs-mainNav (specificity 0,1,1 > nav 0,0,1) para ganar sin !important. */
nav.hs-mainNav {
  display: flex;
  align-items: center;
  font-weight: bolder;
  gap: 48px;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  /* Anula las reglas conflictivas del nav{} legacy */
  width: auto;
  transform: none;
  left: auto;
  top: auto;
  position: static;
  justify-content: flex-start;
}
.hs-mainNav.hs-open {
  display: block;
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  background-color: #f0f0f0;
  padding: 16px;
  color: #2d2d2d;
  height: calc(100vh - 70px);
  overflow-y: auto;
}
.hs-navItem { position: relative; padding: 0; margin: 0; }
.hs-navLink {
  position: relative;
  text-decoration: none;
  color: currentColor;
  font-weight: lighter;
  transition: color 0.3s ease;
  padding: 8px 3px;
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  background: transparent;
  border: none;
}
.hs-navLink::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}
.hs-navLink:hover::after { width: 100%; }

.hs-megaMenu {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100vw;
  background: linear-gradient(to bottom, #908881, #b6ada5);
  display: flex;
  padding: 0;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 99;
  color: #000;
  transition: opacity 0.3s ease;
}
.hs-megaMenu[hidden] { display: none; }

.hs-megaLeftBox {
  width: 15%;
  background-repeat: repeat;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0;
  font-size: 32px;
  color: #ffffff;
  border-right: 1px solid rgba(255,255,255,0.2);
  margin: 0;
}
.hs-carLogo {
  padding: 13px 0;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}
.hs-activeCat { opacity: 1; }
.hs-carLogo img { display: block; margin: 0 auto; }

.hs-megaCenterBox {
  width: 20%;
  background-image: linear-gradient(to bottom, #9d9690, #c1bbb6);
  padding: 64px 48px 0 48px;
  border-right: 1px solid #ccc;
  color: #fff;
  margin: 0;
}
.hs-serieBlock { margin: 0 0 16px 0; padding: 0; }
.hs-serieTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: bolder;
  cursor: pointer;
  padding: 5px 0;
  line-height: 1.4;
}
.hs-serieName { flex: 1; font-size: 20px; color: #fff; }
.hs-plusIcon { width: 14px; height: 34px; display: flex; align-items: center; justify-content: center; }
.hs-plusIcon img { display: block; width: 14px; height: 14px; }
.hs-serieList { max-height: 800px; overflow: hidden; }
.hs-serieListOpen { max-height: 800px; }

.hs-megaRightBox {
  width: 65%;
  background: linear-gradient(to bottom, #b5b4b0, #efefef);
  padding: 32px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
}
.hs-modelContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding: 0;
  margin: 0;
}
.hs-carBox {
  width: 100%;
  height: 410px;
  position: relative;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.hs-carBox::after {
  content: "";
  position: absolute;
  top: calc(50% + var(--logo-offset, 0px));
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--model-logo) no-repeat center;
  background-size: contain;
  width: 750px;
  height: 250px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}
.hs-carImage {
  max-width: 100%;
  width: 800px;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
  z-index: 2;
  display: block;
}

.hs-dataBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 48px;
  padding: 0 0 24px 0;
  text-align: left;
  margin: 0;
}
.hs-specRow {
  display: flex;
  flex-direction: column;
  align-items: initial;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  line-height: 1.2;
  margin: 0;
  padding: 0;
}
.hs-specLabel {
  font-size: 13px;
  color: #666;
  font-weight: lighter;
  margin: 0 0 3px 0;
  padding: 0;
}
.hs-specValue {
  font-size: 43px;
  color: #222;
  font-weight: lighter;
  min-width: 120px;
  display: inline-block;
  text-align: left;
  line-height: 1;
}
.hs-exploreBtn {
  margin: 0 0 0 160px;
  width: 280px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(164,137,108,0.8);
  color: #fff;
  padding: 14px;
  text-decoration: none;
  font-weight: normal;
  font-size: 14px;
  transition: background-color 0.3s;
  text-align: center;
  border-radius: 4px;
  letter-spacing: 1px;
}
.hs-exploreBtn:hover { background-color: #a4896c; }

.hs-modelLink { text-decoration: none; display: block; }
.hs-modelItem {
  font-size: 18px;
  font-weight: bolder;
  opacity: 0.8;
  margin: 3px 0 6px 5px;
  cursor: pointer;
  transition: opacity 0.3s;
  color: #fff;
  line-height: 1.4;
  padding: 0;
}
.hs-modelItem:hover { opacity: 1; }
.hs-modelPlaceholder { width: 100%; height: 100%; }

/* Mobile */
@media (max-width: 991px) {
  .hs-carBox { height: 180px; }
  .hs-hamburger { display: block; }
  .hs-mainNav { display: none; margin-left: 0; }
  .hs-mainNav.hs-open { display: block; height: calc(100vh - 70px); overflow-y: auto; }
  .hs-megaMenu {
    position: static;
    width: 100%;
    box-shadow: none;
    flex-direction: column;
    padding: 8px 0;
    color: #000;
    background: transparent !important;
  }
  .hs-megaLeftBox, .hs-megaCenterBox, .hs-megaRightBox {
    width: 100%;
    border: none;
    background-image: none;
    padding: 8px;
  }
  .hs-modelContainer { flex-direction: column; }
  .hs-dataBox { flex-direction: column; gap: 16px; margin-top: 8px; }
  .hs-specRow { font-size: 16px; }
  .hs-exploreBtn { margin-left: 0; }
  .hs-mainNav.hs-open,
  .hs-mainNav.hs-open .hs-navLink,
  .hs-mainNav.hs-open .hs-navItem,
  .hs-mainNav.hs-open .hs-modelItem,
  .hs-mainNav.hs-open .hs-serieName,
  .hs-megaMenu,
  .hs-megaMenu * { color: #a4896c !important; }
  .hs-navbarContent { padding: 30px !important; height: 70px; }
  .hs-logoArea { margin-left: 0 !important; }
}

/* ===================================================================
   FICHA TÉCNICA CTA
   =================================================================== */
.himla-shell-ficha {
  width: 100%;
  padding: 60px 24px;
  background: #f7f7f7;
  border-top: 1px solid #e0e0e0;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
}
.himla-shell-ficha-inner { max-width: 900px; margin: 0 auto; }
.himla-shell-ficha h3 { font-size: 28px; font-weight: 700; margin: 0 0 10px 0; color: #333; line-height: 1.2; }
.himla-shell-ficha p { font-size: 16px; color: #666; margin: 0 0 28px 0; line-height: 1.5; }
.himla-shell-ficha-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.himla-shell-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; font-weight: 600; font-size: 14px;
  text-decoration: none; border-radius: 4px; letter-spacing: 1px;
  text-transform: uppercase; transition: all 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); line-height: 1;
}
.himla-shell-btn-download { background: #e21921; color: #fff; }
.himla-shell-btn-download:hover { background: #c31118; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }
.himla-shell-btn-quote { background: #1a1a1a; color: #fff; }
.himla-shell-btn-quote:hover { background: #333; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0,0,0,0.15); }

/* ===================================================================
   FOOTER (espejo de Footer.module.css)
   =================================================================== */
.himla-shell-footer {
  background-color: #f5f5f5;
  padding: 32px 0;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
}
.himla-shell-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: space-between;
  gap: 64px;
  flex-wrap: wrap;
}
.himla-shell-footer-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 16px 0;
  padding: 0;
}
.himla-shell-footer-col h4 { font-size: 16px; margin: 0 0 8px 0; color: #444; font-weight: 600; line-height: 1.4; }
.himla-shell-footer-col ul { list-style: none; margin: 0; padding: 0; }
.himla-shell-footer-col li { font-size: 13px; margin: 0 0 5px 0; line-height: 1.4; }
.himla-shell-footer a { text-decoration: none; color: inherit; }
.himla-shell-footer a:hover { text-decoration: underline; }

.himla-shell-footer-logo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1;
  padding: 0;
  margin: 0 0 16px 0;
}
.himla-shell-footer-logo { height: 50px; width: auto; display: block; filter: none; }
.himla-shell-footer-social { display: flex; gap: 16px; align-items: center; }
.himla-shell-footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background-color: transparent; color: #333;
  transition: all 0.3s ease; text-decoration: none;
  padding: 0;
}
.himla-shell-footer-social a:hover { background-color: #333; color: #fff; text-decoration: none; }
.himla-shell-footer-social svg { width: 18px; height: 18px; display: block; }

.himla-shell-footer-bottom {
  max-width: 1200px;
  margin: 16px auto 0 auto;
  padding: 0 16px;
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}
.himla-shell-footer-bottom p { margin: 4px 0; }
.himla-shell-footer-bottom a { color: inherit; margin: 0 6px; text-decoration: none; }
.himla-shell-footer-bottom a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .himla-shell-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .himla-shell-footer-logo-col { align-items: center; justify-content: center; margin-top: 16px; width: 100%; }
  .himla-shell-footer-social { margin-top: 8px; justify-content: center; }
}

/* WhatsApp flotante */
.himla-shell-whatsapp {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s; z-index: 9999;
  padding: 0; margin: 0;
}
.himla-shell-whatsapp:hover { transform: scale(1.08); }
.himla-shell-whatsapp svg { width: 32px; height: 32px; display: block; }
@media (max-width: 768px) {
  .himla-shell-whatsapp { width: 54px; height: 54px; bottom: 16px; right: 16px; }
  .himla-shell-whatsapp svg { width: 28px; height: 28px; }
}
