/* 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;
  }
}
