html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}


/* Carrusel */
/* Asegura que el body y html no generen scroll horizontal */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Ajustes al carrusel */
.carousel {
  position: relative;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 100vw;
}

.carousel-track video {
  flex: 0 0 100vw;
  height: 100vh;
  object-fit: cover;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  font-size: 3rem;
  background: rgba(0,0,0,0.3);
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.carousel-btn.prev {
  left: 10px;
}
.carousel-btn.next {
  right: 10px;
}


/* Opciones */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 0 10px;
  justify-items: center;
  margin: 20px 0;
}

.option-item {
  text-align: center;
  text-decoration: none;
  color: #000;
  font-size: 1em;
}

.option-item img {
  width: 48px;
  height: 48px;
  display: block;
  margin: 0 auto 10px;
}

/* Separador */
.separator {
  width: 100%;
  height: 40px;
  background: #e0e0e0;
  margin: 0;
}

/* Vehículos */
.vehiculos-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.vehiculo {
  width: 25%;
  aspect-ratio: 4/3;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.vehiculo img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.vehiculo h3 {
  margin: 5px 10px 0;
  font-size: 18px;
  text-align: left;
}

.vehiculo-btns {
  display: flex;
  margin-top: 5px;
}

.vehiculo-btns a {
  flex: 1;
  text-align: center;
  padding: 8px;
  background: #003057;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
}

.vehiculo-btns a:last-child {
  background: #0052a5;
}

/* Promociones */
.promociones-grid {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.promocion {
  width: 20%;
  aspect-ratio: 1/1;
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.promocion img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.promocion h3 {
  margin: 5px 10px 0;
  font-size: 16px;
  text-align: left;
}

.promocion p {
  font-size: 14px;
  text-align: left;
  margin: 5px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  line-height: 1.4em;
  max-height: 4.2em;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Ver más para autos */
.ver-mas-card-auto {
  width: 25%;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/autos/fondoauto.png') center/cover no-repeat;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  color: #fff;
  text-align: center;
}

.ver-mas-card-auto::before {
  content: '+';
  font-size: 64px;
  margin-bottom: 8px;
}

.ver-mas-card-auto::after {
  content: 'Ver más';
  font-size: 18px;
  font-weight: bold;
}

/* Ver más para promociones */
.ver-mas-card-promo {
  width: 20%;
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/promos/fondopromo.png') center/cover no-repeat;
  position: relative;
  cursor: pointer;
  box-sizing: border-box;
  color: #fff;
  text-align: center;
}

.ver-mas-card-promo::before {
  content: '+';
  font-size: 48px;
  margin-bottom: 8px;
}

.ver-mas-card-promo::after {
  content: 'Ver más';
  font-size: 16px;
  font-weight: bold;
}

/* Formulario de cotización */
.formulario-cotizacion {
  padding: 40px 20px;
  max-width: 600px;
  margin: auto;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.formulario-cotizacion h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #003057;
}

.formulario-cotizacion form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-cotizacion input,
.formulario-cotizacion select,
.formulario-cotizacion textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.formulario-cotizacion button {
  padding: 12px;
  background-color: #003057;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-cotizacion button:hover {
  background-color: #0052a5;
}

/* Responsive ajustado para dispositivos más anchos */


.vehiculo-btns a,
.formulario-cotizacion button {
  font-weight: 500;
  letter-spacing: 0.3px;
  border-radius: 6px;
  text-transform: uppercase;
}
.vehiculo h3,
.promocion h3,
.formulario-cotizacion h2 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.modelos-destacados {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 0;
}

.modelos-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  position: relative;
  height: auto;  /* para que se adapte según contenido */
  max-width: 900px;
  margin: 40px auto;
}

.modelo-item {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 1.3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 5px;
  aspect-ratio: 1 / 1; /* celda cuadrada */
}

.modelo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1; /* imagen cuadrada */
  display: block;
}

.modelo-item:hover img {
  transform: scale(1.07);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}


/* Nombre sobre la imagen, centrado abajo */
.modelo-nombre {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  padding: 6px 14px;
  border-radius: 6px;
  pointer-events: none;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Botón “Ver todos los modelos” */
.ver-todos-modelos {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  font-weight: 700;
  font-size: 1.5rem; /* más pequeño */
  padding: 18px 45px; /* menos padding */
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.7);
  z-index: 10;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
}

/* Agregar brillo sutil en hover */
.ver-todos-modelos:hover {
  background-color: #111;
  box-shadow: 0 8px 25px rgb(255 255 255 / 0.5);
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
  transform: translate(-50%, -50%) scale(1.05);
}

/* Responsive */

.hello-video {
  position: relative;
  width: 100%;
  height: 100vh; /* pantalla completa */
  overflow: hidden;
}

.hello-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hello-video {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  overflow: hidden;
  padding: 2rem 0;
}

.video-container {
  position: relative;
  width: 100%;
  max-height: 80vh;
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.video-container .overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 4rem;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
  z-index: 10;
  text-align: center;
  pointer-events: none;
}

.grid-gwmcare {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px;
  max-width: 1000px;
  margin: auto;
}

.gwmcare-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.gwmcare-item img,
.gwmcare-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gwmcare-item:hover img {
  transform: scale(1.02);
}

/* Overlay general */
.gwmcare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: white;
  padding: 25px;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

/* Mostrar overlay solo al hacer hover */
.gwmcare-item:hover .gwmcare-overlay {
  opacity: 1;
}

/* El video no se oscurece ni cambia opacidad */
.gwmcare-item.no-hover .gwmcare-overlay {
  background: none;
  opacity: 1;
  pointer-events: none;
}

/* Texto dentro del overlay */
.gwmcare-overlay h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin: 0;
}

.gwmcare-overlay h3 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0px;
}
.gwmcare-overlay h4 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 0px;
}

.gwmcare-overlay p {
  font-size: 1.1rem;
  line-height: 1.5;
  max-width: 90%;
}

/* RESPONSIVE PARA DISPOSITIVOS MÓVILES */
@media (max-width: 768px) {
  /* Carrusel ajustado para scroll horizontal y sin botones */
  .carousel {
    height: 60vh;
  }

  .carousel-track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel-track video {
    flex: 0 0 100%;
    scroll-snap-align: start;
    height: 60vh;
    object-fit: cover;
  }

  .carousel-btn {
    display: none;
  }

  /* Vehículos */
  .vehiculo,
  .ver-mas-card-auto {
    width: 100%;
  }

  /* Promociones */
  .promocion,
  .ver-mas-card-promo {
    width: 100%;
  }

  /* GWM Care Grid */
  .grid-gwmcare {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  /* Modelo destacado 2x2 en columna */
  .modelos-grid-2x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  /* Ajustes generales */
  .formulario-cotizacion {
    padding: 20px;
    width: 90%;
  }

  .video-container .overlay-text {
    font-size: 2rem;
    padding: 0 10px;
  }
}
@media (max-width: 1024px) {
  .carousel {
    height: auto;          /* Que tome la altura del contenido */
    max-height: 500px;     /* Limitar altura máxima para que no sea gigante */
    overflow: hidden;      /* Evitar scroll */
  }

  .carousel-track {
    height: 500px;         /* Fijamos la altura para que el contenedor sea consistente */
  }

  .carousel-track video {
    width: 100vw;          /* Que el ancho ocupe toda la pantalla */
    height: 100%;          /* Que tome toda la altura del contenedor */
    object-fit: cover;     /* Que se recorte para llenar sin deformar */
  }
}
