/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.logo img {
  height: 40px;
}

/* Navegación principal */
.main-nav ul {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--brand);
}

/* Buscador */
.search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-form input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: .4rem;
}

.search-form button {
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: .4rem;
  cursor: pointer;
}

.search-form button:hover {
  background: #c5302a;
}

/* Botón menú móvil */
.menu-toggle {
  display: none; /* oculto en desktop */
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

.main-nav.open {
  display: block;
  position: absolute;
  top: 60px;
  right: 0;
  background: #fff;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}

/* Footer */
.site-footer {
  background: #1e293b;
  color: #f8fafc;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
  color: #fbbf24; /* amarillo o color corporativo secundario */
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #f8fafc;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

/* Redes sociales */
.social-links a {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.2rem;
  color: #f8fafc;
}

.social-links a:hover {
  color: var(--brand);
}

/* Parte inferior */
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
}

.legal-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal-links a {
  color: #94a3b8;
  font-size: 0.85rem;
}

.legal-links a:hover {
  color: #f8fafc;
}
/* Layout con barra lateral */
.camiones-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Layout con sidebar de filtros */
.camiones-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

/* Filtros */
.filtros {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1rem;
  height: fit-content;
}
.filtros h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.filtro-grupo {
  margin-bottom: 1.5rem;
}
.filtro-grupo h4 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: #1e293b;
}
.filtros label {
  font-size: .9rem;
  color: #475569;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 900px) {
  .camiones-layout {
    grid-template-columns: 1fr;
  }
  .filtros {
    order: -1;
  }
}

/* =========================================================
   GOPARTRUCKS · HEADER + FOOTER 2026
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 1px 0 rgba(20,24,28,.02);
  backdrop-filter: blur(12px);
}

.site-header .header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 0;
  padding-bottom: 0;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo img {
  display: block;
  width: auto;
  height: 38px;
}

.site-header .main-nav {
  margin-left: auto;
}

.site-header .main-nav ul {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 13px;
  color: #4c555e;
  border-radius: 7px;
  font-size: .87rem;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.is-active {
  color: #171a1d;
  background: #f4f5f6;
  text-decoration: none;
}

.site-header .main-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  border-radius: 99px;
  background: #e33b2f;
}



.site-header .menu-toggle {
  width: 44px;
  height: 42px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  background: #fff;
  border: 1px solid #dde1e5;
  border-radius: 7px;
  cursor: pointer;
}
.site-header .menu-toggle span {
  width: 18px;
  height: 2px;
  background: #171a1d;
  border-radius: 99px;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1500;
  width: min(360px, 88vw);
  height: 100dvh;
  padding: 24px;
  background: #fff;
  box-shadow: -20px 0 55px rgba(10,13,16,.18);
  transform: translateX(105%);
  opacity: 1;
  pointer-events: none;
  transition: transform .28s ease;
}
.mobile-nav.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid #eceff1;
}
.mobile-nav-label {
  color: #171a1d;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.mobile-nav .close-btn {
  width: 39px;
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #171a1d;
  background: #f5f6f7;
  border: 0;
  border-radius: 7px;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-nav nav ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.mobile-nav nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  color: #171a1d;
  border-bottom: 1px solid #eceff1;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 24px;
  color: #7b838b;
  font-size: .8rem;
}
.mobile-nav-contact a { color: #171a1d; font-weight: 700; text-decoration: none; }
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(10,13,16,.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.menu-overlay.active { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden; }

.site-footer {
  margin-top: 72px;
  padding: 0;
  color: #d6dadd;
  background: #15181b;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.65fr .8fr 1.1fr .55fr;
  gap: 56px;
  padding-top: 60px;
  padding-bottom: 48px;
}
.footer-logo img {
  display: block;
  width: auto;
  height: 38px;
  filter: brightness(0) invert(1);
}
.footer-brand p {
  max-width: 440px;
  margin: 22px 0 22px;
  color: #9ca4ab;
  font-size: .88rem;
  line-height: 1.7;
}
.footer-stock-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff !important;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none !important;
}
.footer-stock-link span { color: #e33b2f; transition: transform .2s ease; }
.footer-stock-link:hover span { transform: translateX(3px); }
.site-footer .footer-col h4 {
  margin: 2px 0 18px;
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.site-footer .footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .footer-col li { margin: 0 0 9px; }
.site-footer .footer-col a {
  color: #aab1b7;
  font-size: .86rem;
  text-decoration: none;
  transition: color .2s ease;
}
.site-footer .footer-col a:hover { color: #fff; text-decoration: none; }
.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 13px;
  color: #aab1b7;
  font-size: .86rem;
  font-style: normal;
  line-height: 1.55;
}
.footer-socials { display: flex; gap: 9px; }
.footer-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  background: #23282d;
  border: 1px solid #30363b;
  border-radius: 7px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-socials a:hover { background: #e33b2f; border-color: #e33b2f; transform: translateY(-2px); }
.footer-socials svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer .footer-bottom {
  min-height: 68px;
  margin: 0;
  padding: 19px 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #2b3034;
  color: #777f86;
  text-align: left;
  font-size: .76rem;
}
.site-footer .footer-bottom p { margin: 0; }
.site-footer .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer .legal-links a { color: #858d94; font-size: .76rem; text-decoration: none; }
.site-footer .legal-links a:hover { color: #fff; }

@media (max-width: 980px) {
  .site-header .main-nav { display: none; }
  .site-header .menu-toggle { display: flex; }
  .header-sell-btn { display: none; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; gap: 38px; }
  .footer-main > .footer-col:last-child { grid-column: 2 / 3; }
}

@media (max-width: 680px) {
  .site-header .header-inner { min-height: 66px; }
  .site-logo img { height: 33px; }
  .site-header .menu-toggle { width: 41px; height: 39px; }
  .site-footer { margin-top: 54px; }
  .footer-main { grid-template-columns: 1fr; gap: 34px; padding-top: 46px; padding-bottom: 38px; }
  .footer-main > .footer-col:last-child { grid-column: auto; }
  .site-footer .footer-bottom { align-items: flex-start; flex-direction: column; gap: 11px; }
  .site-footer .legal-links { gap: 13px; }
}
