/* RESET BÁSICO */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Fondo general blanco (para que haya división negro/blanco) */
body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #ffffff;    /* FONDO GENERAL BLANCO */
  color: #111111;
  line-height: 1.5;
}


/* HEADER OSCURO */
.header {
  background: radial-gradient(circle at top, #202020, #050505);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

/* NAV */
.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link,
.nav-link-autos {
  background: none;
  border: none;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after,
.nav-link-autos::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link-autos:hover::after {
  width: 100%;
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons a {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #ffffff40;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.8rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.social-icons a:hover {
  background: #ffffff;
  color: #000000;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #ffffff44;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

/* MEGA MENU AUTOS NUEVOS */
.mega-menu {
  background: #050505;
  color: #ffffff;
  border-top: 1px solid #ffffff26;
  border-bottom: 1px solid #ffffff26;
  display: none;
}

.mega-menu.open {
  display: block;
}

.mega-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.mega-column h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #bbbbbb;
  margin-bottom: 10px;
}

.mega-column ul {
  list-style: none;
}

.mega-column li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.mega-column a {
  color: #dddddd;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mega-column a:hover {
  color: #ffffff;
}

/* HERO SUPERIOR OSCURO */
.hero {
  background: radial-gradient(circle at top, #1a1a1a, #050505);
  color: #ffffff;
  padding: 40px 20px 32px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.search-box {
  display: inline-flex;
  align-items: stretch;
  max-width: 520px;
  width: 100%;
  background: #ffffff;
  border-radius: 999px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 12px 18px;
  font-size: 0.95rem;
  outline: none;
}

.search-btn {
  border: none;
  padding: 0 18px;
  font-size: 1.1rem;
  background: #000000;
  color: #ffffff;
  cursor: pointer;
}

/* SLIDER DE MARCAS OSCURO */
.brands-section {
  padding: 18px 0 120px;   /* antes 26px o 70px */
  background: linear-gradient(to bottom, #050505, #111111);
  color: #ffffff;
}



.brands-title {
  text-align: center;
  font-size: 0.95rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.brands-slider {
  overflow: hidden;
  position: relative;
  padding: 10px 0;
}

.brands-track {
  display: flex;
  gap: 18px;
  animation: brands-scroll 28s linear infinite;
}

.brand-card {
  min-width: 140px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid #ffffff1e;
  background: #111111;
  box-shadow: 0 0 0 1px #ffffff08;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card img {
  max-height: 32px;    /* Ajusta alto del logo */
  width: auto;
  display: block;
  filter: brightness(1.1);
}

.brand-card:hover {
  background: #1b1b1b;
}

@keyframes brands-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* SLIDER INFERIOR DE IMÁGENES
   (ya está sobre fondo blanco, por eso se ve la división) */
.hero-slider {
  max-width: 1200px;
  max-height: 600px;
  /* margin-top NEGATIVO para que suba y corte la línea negro/blanco */
  margin: -110px auto 40px;   /* valor clave: -110px (ajusta +10/-10 px si quieres) */
  padding: 20px 20px 40px;
  position: relative;
  z-index: 2;                 /* para que quede por encima de la parte negra */
}



.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
}

/* Cada slide ocupa la misma posición, sólo se ve el activo */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
}

.slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
.slide-image {
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75);
}

/* Reemplaza las rutas por tus imágenes reales */
.slide-image-1 { background-image: url("../img/slider/bannerpolaris.jpg"); }
.slide-image-2 { background-image: url("../img/slider/bannertriumph.png"); }
.slide-image-3 { background-image: url("../img/slider/bannerzeekr.jpg"); }


/* Overlay de texto */
.slide-overlay {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 480px;
  color: #ffffff;
}

.slide-overlay h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.slide-overlay p {
  margin-bottom: 18px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Flechas del slider */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: #ffffff;
  color: #000000;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
}

.slider-arrow-left {
  left: 4px;
}

.slider-arrow-right {
  right: 4px;
}

/* Puntos del slider */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  background: #00000026;
  cursor: pointer;
}

.slider-dot.active {
  background: #000000;
}

/* SECCIÓN AGENCIAS – CAROUSEL AUTO */
.agencias-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 20px;
  color: #111111;
}

.agencias-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.agencias-header h2 {
  font-size: 1.6rem;
}

.agencias-header p {
  color: #555555;
  font-size: 0.95rem;
}

.agencias-slider {
  overflow: hidden;
  position: relative;
  padding: 10px 0 26px;
}

.agencias-track {
  display: flex;
  gap: 16px;
  animation: agencias-scroll 32s linear infinite;
}

@keyframes agencias-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Card de agencia */
.agencia-card {
  min-width: 260px;
  background: #111111;
  border-radius: 16px;
  border: 0px solid #00000016;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* AQUÍ CAMBIAS LA IMAGEN DE CADA AGENCIA
   Simplemente reemplaza la ruta por tu foto real */
.agencia-img {
  height: 150px;
  background-size: cover;
  background-position: center;
}

/* Ejemplos: pon tus archivos reales en /img/agencias/ */

 
.agencia-img-1 { background-image: url("../img/agencias/agencia1.png"); }
.agencia-img-2 { background-image: url("../img/agencias/agencia2.png"); }
.agencia-img-3 { background-image: url("../img/agencias/agencia3.png"); }
.agencia-img-4 { background-image: url("../img/agencias/agencia4.png"); }
.agencia-img-5 { background-image: url("../img/agencias/agencia5.png"); }
.agencia-img-6 { background-image: url("../img/agencias/agencia6.png"); }
.agencia-img-7 { background-image: url("../img/agencias/agencia7.png"); }
.agencia-img-8 { background-image: url("../img/agencias/agencia8.png"); }
.agencia-img-9 { background-image: url("../img/agencias/agencia9.png"); }
.agencia-img-10 { background-image: url("../img/agencias/agencia10.png"); }

.agencia-info {
  padding: 10px 12px 12px;
  color: #ffffff;
}

.agencia-info h3 {
  font-size: 0.98rem;
  margin-bottom: 4px;
}

.agencia-location {
  font-size: 0.8rem;
  color: #cccccc;
  text-decoration: underline;
}

/* SECCIÓN CONÓCENOS */
.section-simple {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 20px;
  text-align: center;
  color: #111111;
}

.section-simple h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

/* FOOTER */
.footer {
  border-top: 1px solid #00000012;
  padding: 18px 20px 26px;
  text-align: center;
  font-size: 0.8rem;
  color: #777777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .header-inner {
    padding: 12px 16px;
  }

  .nav {
    position: absolute;
    top: 62px;
    right: 16px;
    background: #050505;
    padding: 10px 14px;
    border-radius: 8px;
    display: none;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #ffffff1e;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .social-icons {
    display: none; /* opcional ocultar redes en mobile para espacio */
  }

  .mega-inner {
    grid-template-columns: 1fr;
  }

  .slide-overlay {
    padding: 24px;
    max-width: none;
  }

  .slide-overlay h2 {
    font-size: 1.6rem;
  }

  .agencia-card {
    min-width: 220px;
  }
}
