  /* Reset básico */
  #slides > div {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  box-sizing: border-box;
}
.noticias-destacadas {
  padding: 60px 20px;
  background-color: #f7f7f7;
  text-align: center;
}

.titulo-noticias {
  font-size: 28px;
  color: #1b5e20;
  margin-bottom: 40px;
}

.noticias-grid {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.noticia-card {
  background: #fff;
  width: 330px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  cursor: pointer;
}

.noticia-card:hover {
  transform: scale(1.03);
}

.noticia-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia-card h3 {
  font-size: 18px;
  color: #1b5e20;
  margin: 16px;
}

.noticia-card p {
  font-size: 14px;
  color: #444;
  margin: 0 16px 16px;
}




* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo e fonte */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

/* Cabeçalho */
header {
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ddd;
  height: 80px;
  overflow: hidden;
}



header .logo img {
  height: 60px; /* menos alto que antes */
  max-width: 160px;
  object-fit: contain;
}

@media (max-width: 768px) {
  header .logo img {
    height: 100px;
  }
}


nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.search-bar form {
  display: flex;
}

.search-bar input[type="text"] {
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px 0 0 4px;
}

.search-bar button {
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-left: none;
  background-color: #007BFF;
  color: #fff;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Banner e slider  
 
/* Abas */
.tabs {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.tabs .tab {
  padding: 10px 20px;
  cursor: pointer;
  background-color: #ddd;
  border: none;
  margin: 0 5px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.tabs .tab.active {
  background-color: #007BFF;
  color: #fff;
}

/* Filtro de marcas */
.filters {
  text-align: center;
  margin-bottom: 20px;
}

.filters label {
  font-size: 16px;
  margin-right: 10px;
}

.filters select {
  padding: 8px;
  font-size: 16px;
}

/* Listado de carros */
.car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 0 20px;
}

.car-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.car-card:hover {
  transform: scale(1.02);
}

.car-card img {
  width: 100%;
  height: auto;
}

.car-info {
  padding: 10px;
  text-align: center;
}

.car-info h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

/* Sección principal con degradado */
.category-search {
  margin: 40px 20px;
  text-align: center;
  /* Degradado suave de izquierda a derecha */
  background: linear-gradient(to right, #f8fafe 0%, #ffffff 100%);
  padding: 30px 0;
  border-radius: 8px; /* opcional, si deseas esquinas suaves */
}

.category-search h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

/* Contenedor de tarjetas */
.category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s;
  width: 120px; 
  text-decoration: none;
  color: #333;
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img,
.category-card svg {
  width: 100px !important;
  height: 100px !important;
  margin-bottom: 10px;
  display: block;
  object-fit: contain;
}

.category-card span {
  font-size: 16px;
  font-weight: 600;
}
/* =======================
   RESPONSIVE – MOBILE VIEW
   ======================= */

@media (max-width: 768px) {
  .category-cards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    justify-items: center !important;
  }

  .category-card {
    width: 100% !important;
    max-width: 160px !important;
    text-align: center !important;
  }

  .category-card img,
  .category-card svg {
    width: 80px !important;
    height: 80px !important;
  }
}

 


/* Rodapé */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-section {
  flex: 1 1 200px;
}

.footer-section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-bottom: 5px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 12px;
}

 /* ================================
   AUTO DESTACADO – FEATURED WRAPPER
   ================================ */
.featured-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  margin: 40px auto;
  gap: 40px;
}

.featured-text {
  flex: 1;
  text-align: left;
}

.featured-image {
  flex: 1;
  text-align: right;
}

.featured-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.featured-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.featured-buttons button {
  padding: 10px 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.featured-buttons button:hover {
  background: #000;
  color: #fff;
}


.featured-text h3 {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-text h2 {
  font-size: 26px;
  color: #222;
  margin-bottom: 15px;
}

.featured-text p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

 

.featured-buttons button {
  padding: 10px 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.featured-buttons button:hover {
  background: #000;
  color: #fff;
}

.car-thumbnails {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding: 0 20px;
}

.thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  min-width: 100px;
}

.thumbnail:hover {
  transform: scale(1.05);
}

.thumbnail img {
  width: 100px;
  height: auto;
  object-fit: contain;
}

.thumbnail p {
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

/* Mobile: scroll horizontal sin romper diseño */
@media (max-width: 768px) {
  .car-thumbnails {
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 20px;
    padding: 20px;
    scroll-snap-type: x mandatory;
  }

  .thumbnail {
    flex: 0 0 auto;
    scroll-snap-align: center;
    min-width: 80px;
  }

  .thumbnail img {
    width: 80px;
  }

  .thumbnail p {
    font-size: 12px;
  }
}

 

@media (max-width: 768px) {
  .featured-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .featured-text {
    text-align: center;
  }

  .featured-image {
    text-align: center;
  }
}

 

    /* Keyframes para el efecto de desplazamiento horizontal */
    @keyframes scroll {
      0% {
        transform: translateX(0);
      }
      100% {
        transform: translateX(-50%);
      }
    }

    /* Versión estática (descomentar si no se desea scroll)
    .sponsor-logos {
      animation: none;
      justify-content: center;
    }
    */
    .car-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  min-width: 200px;
}

.car-card:hover {
  transform: translateY(-4px);
}

/* ======================
   Marcas (Brands Section)
   ====================== */
.brands-section {
  padding: 40px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.brands-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 30px;
  color: #1b1b1b;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* máximo 6 columnas */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .brands-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* mobile y tablets: se ajusta */
  }
}


.brand-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.brand-card:hover {
  transform: translateY(-5px);
}

.brand-card img {
  max-width: 80px;
  max-height: 50px;
  object-fit: contain;
  margin-bottom: 10px;
}

.brand-card span {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* ======================
   VENTAJAS
   ====================== */
.ventajas-section {
  background: url('../images/bg-ventajas.jpg') center/cover no-repeat;
  padding: 60px 20px;
  text-align: center;
  color: white;
}

.ventajas-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 40px;
}

.ventajas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.ventaja-box {
  border: 2px solid white;
  border-radius: 20px;
  padding: 20px 30px;
  min-width: 250px;
}

.ventaja-numero {
  font-size: 42px;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

.ventaja-texto {
  font-size: 18px;
}

.ventajas-boton {
  background: white;
  color: black;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.banner-sucursales {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.banner-sucursales .banner-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.banner-sucursales .banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.banner-sucursales h2 {
  font-size: 2.5em;
  color: #ffae00;
  margin-bottom: 10px;
}

.banner-sucursales p {
  font-size: 1.5em;
  margin-bottom: 20px;
}

.banner-sucursales .btn-banner {
  background: #ffae00;
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.banner-sucursales .btn-banner:hover {
  background: #e69500;
}
/* Barra superior */
/* RESET */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

header.site-header {
  width: 100%;
  font-family: sans-serif;
}

/* Top bar */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9f9f9;
  padding: 8px 30px;
  font-size: 14px;
  border-bottom: 1px solid #e5e5e5;
}

.header-top-left span {
  margin-right: 20px;
  color: #555;
}

.header-top-right a {
  margin-left: 20px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}

.header-top-right a:hover {
  text-decoration: underline;
}

.header-top i {
  margin-right: 5px;
  color: #1b5e20;
}

/* Main header */
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 20px 30px;
  background: #fff;
  gap: 40px;
}

.main-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.main-menu a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 15px;
}

.main-menu a:hover {
  color: #1b5e20;
}

.logo img {
  height: 60px;
  max-width: 100%;
  display: block;
}

/* Actions */
.header-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}

.header-actions a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

.header-actions a:hover {
  color: #1b5e20;
}

.header-actions i {
  margin-right: 6px;
  color: #1b5e20;
}

/* Responsive */
@media (max-width: 992px) {
  .header-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .main-menu ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  .header-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}
.banner-sucursales {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: white;
}

.banner-bg {
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: blur(2px) brightness(0.5); /* 💡 Difumina y oscurece */
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.banner-overlay {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem;
  background: rgba(0, 0, 0, 0.4); /* 💡 Capa oscura semitransparente */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.banner-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.banner-overlay p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #eee;
}

.btn-banner {
  background-color: #1b5e20;
  color: white;
  padding: 0.8rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
}
.noticias-destacadas {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.titulo-noticias {
  font-size: 32px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 8px;
}

.subtitulo-noticias {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.noticias-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.noticia-tarjeta {
  width: 320px;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.noticia-tarjeta:hover {
  transform: translateY(-6px);
}

.noticia-imagen img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.noticia-texto {
  padding: 20px;
  text-align: left;
}

.noticia-texto h3 {
  font-size: 18px;
  color: #1b5e20;
  margin-bottom: 10px;
  font-weight: 600;
}

.noticia-texto p {
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .noticias-grid {
    flex-direction: column;
    align-items: center;
  }
}
 


.historias-propias {
  padding: 40px 20px;
  background: #f7f7f7;
  text-align: center;
}

.titulo-historias {
  font-size: 24px;
  font-weight: 700;
  color: #1b5e20;
  margin-bottom: 30px;
}

.historias-carrusel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}

.historia-tarjeta {
  flex: 0 0 160px;
  height: 250px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  scroll-snap-align: start;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.historia-tarjeta:hover {
  transform: scale(1.05);
}

.historia-texto {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  border-radius: 0 0 18px 18px;
}

.historia-texto h4 {
  font-size: 14px;
  margin: 0;
  font-weight: bold;
}

.historia-texto span {
  font-size: 12px;
  color: #ddd;
}
  /* Sección: Beneficios */
.empresas-corporativas {
  background: #f8f9fa;
  padding: 60px 20px;
}

.empresas-corporativas .container {
  max-width: 1200px;
  margin: 0 auto;
}

.titulo-principal {
  font-size: 32px;
  color: #003366;
  text-align: center;
  margin-bottom: 10px;
}

.subtitulo {
  font-size: 18px;
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.estadisticas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 60px;
}

.stat {
  text-align: center;
  flex: 1 1 200px;
}

.stat img {
  height: 60px;
  margin-bottom: 10px;
}

.stat h3 {
  font-size: 24px;
  color: #0066cc;
  margin: 0;
}

.titulo-subseccion {
  font-size: 24px;
  color: #003366;
  text-align: center;
  margin-bottom: 30px;
}

.casos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.caso-box {
  background: white;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.caso-box img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 12px;
}

.caso-box h4 {
  font-size: 18px;
  color: #003366;
  margin-bottom: 8px;
}

.contacto-corporativo {
  text-align: center;
  margin-top: 50px;
}

.contacto-corporativo p {
  font-size: 16px;
  margin-bottom: 10px;
}

.botones-contacto a {
  display: inline-block;
  margin: 10px 10px 0 10px;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  color: #fff;
}

.btn-wpp {
  background-color: #25d366;
}

.btn-mail {
  background-color: #007bff;
}

.atributos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 20px;
  margin: 60px 0;
  text-align: center;
}

.atributo {
  flex: 1 1 200px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mapa,
.postventa {
  margin: 40px 0;
  text-align: center;
}

.mapa img {
  max-width: 100%;
  border-radius: 10px;
  margin-top: 20px;
}

.postventa ul {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 20px;
}.sucursal-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 16px;
  margin: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-width: 300px;
}

.grid-sucursales {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-ver-mapa, .btn-mapa-popup {
  display: inline-block;
  margin-top: 10px;
  background-color: #007bff;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-ver-mapa:hover, .btn-mapa-popup:hover {
  background-color: #0056b3;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close {
  color: #aaa;
  font-size: 24px;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}

.close:hover {
  color: #000;
}
.postventa-container {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}

.postventa-container h2 {
  font-size: 28px;
  color: #1b5e20;
  margin-bottom: 40px;
  font-weight: 800;
}

.postventa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.postventa-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
  display: flex;
  gap: 15px;
  align-items: center;
}

.postventa-card:hover {
  transform: translateY(-3px);
}

.icono {
  font-size: 30px;
  color: #f26522;
  flex-shrink: 0;
}

.blog-banner {
  display: flex;
  flex-wrap: wrap;
  min-height: 280px;
  margin: 40px 0;
}

.blog-contenido {
  flex: 1;
  background-color: #ec5b1d; /* naranja */
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-contenido h2 {
  font-size: 32px;
  margin-bottom: 10px;
  font-weight: 800;
}

.blog-contenido p {
  font-size: 17px;
  margin-bottom: 20px;
}

.btn-blog {
  background-color: #222;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  width: fit-content;
}

.btn-blog:hover {
  background-color: #000;
}

.blog-imagen {
  flex: 1;
  background-image: url("assets/images/blog-banner.jpg"); /* ✅ Reemplazar por tu ruta */
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
  display: flex;
  align-items: center;
  padding: 40px;
}

.blog-texto-superpuesto {
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 12px;
  max-width: 400px;
}

.blog-texto-superpuesto strong {
  font-size: 20px;
}

.link-blog {
  display: block;
  margin-top: 10px;
  color: #ff9933;
  text-decoration: underline;
  font-weight: bold;
}

.link-blog:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-banner {
    flex-direction: column;
  }

  .blog-imagen {
    padding: 20px;
    min-height: 240px;
  }
}
