body{
    background-color: rgb(228, 225, 225);
    margin:0;
  
}

#wrapper {
  margin: 0 auto; /* Centra el contenido horizontalmente */
  overflow-x: hidden; /* Oculta la barra de desplazamiento horizontal si el contenido es más ancho */
}
/*------Video------*/

.video-contenedor{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: -1%;

}

video {
  width: 100%;
}

.desc{
  position: absolute;
  top: 20%;
  transform: translateY(-50%);
  text-align: center;
  width: 100%;
  color: white;
  font-size:60px;
}
.desc > a{
  color: rgb(255, 255, 255);
  text-decoration: none;
}

.titulo{
  margin-left: 2%;
}

#ajuste-titulo{
  position: relative;
  margin-top: 10%;

}

#ajuste-llantas {
  float:right;
  transform: translateY(-50%);
  margin: 10% 10px;
  padding: 5px;  
  clear:left;
}

#ajuste-llantas2 {
  position: relative;
  float: left;
  margin-left: 55%;
  clear: right;
  margin-top: -10%;
  margin-right: 1%;
}

.video-colores{
  width: 50%;
  margin-left: 48%;
  margin-top: -10%;
}
.video-llantas{
  width: 50%;
  margin-right: 30%;
}

/*Barra de navegacion*/
.menu{
    position: relative;
    width: 100%;
    height: 100px;
    margin: 0;
    background: url(images/simbolo.png) no-repeat;
    background-color: white;
    background-position: left 50%;
}

.menu h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.cambiar {
  opacity: 1;
  transform: scale(1);
  transition: opacity 2.5s ease-in-out, transform 2.5s ease-in-out;
}

.quitar {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 2.5s ease-in-out, transform 2.5s ease-in-out; 
}

@keyframes cambiar {
  from {
      opacity: 1;
  }

  to {
      opacity: 0;
  }
}

  .abajo {
    display: flex;
    align-items: center;
    position: relative;
    display: inline-block;
    float: right;
    margin-right: 2%; 
}
  
  .abajo-contenido {
    background-color: white;
    display: none;
    position:absolute;
    top: 100%;
    right: 0;
    min-width: 400px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5%;
  }
  
  .abajo-contenido a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5%;
    transition: transform 0.3s ease-in-out;

  }
  
  .abajo-contenido a:hover {
    background-color: rgb(221, 220, 220);
    transform: scale(0.95);    
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  }
  
  .abajo:hover .abajo-contenido {
    display: block;
  }
  
  .abajo:hover .boton {
    background-color: white;
  }
  .boton {
    margin-top: 40%;
    border: none;
    background-color: white;
  }
 .abajo-contenido>a>#imgini{
  position: relative;
  margin-left: 70%;
 }
 .abajo-contenido>a>#imgini1{
  position: relative;
  margin-left: 78%;
 }
 .abajo-contenido>a>#imgini2{
  position: relative;
  margin-left: 76%;
 }
 

/*--------------------------*/


/*--------------------*/

.cyber{
  margin-top: 0%;
  margin-left: 4%;
  position: absolute;
}
.prox{
  float: right;
  margin-left: 45%;
  clear: right;
  margin-top: 18%;
  margin-right: 9%;
  animation: palpitacion 8s infinite;
}
@keyframes palpitacion {
  0% {
    transform: scale(1.2);
  }
  50% {
    transform: scale(1.5);
  }
  100% {
    transform: scale(1.2);
  }
}

/*--------------------------*/

/*main*/

.main{
text-align: center;
}
#content{
  font-size:large;
}
#content>p>h1{
  font-style:italic;
}


/*-------------------------*/

  /*Footer*/
 
  #footer-area {
    position:static;
    bottom: 0;
    width: 100%;
    background: white;
    color: #030303;
    font-size: 100%;
    padding: 18px;
    text-align: center;
  }
  #footer-area-index {
    margin-top: 40%;
    position: static;
    bottom: 0;
    width: 100%;
    background: white;
    color: #030303;
    font-size: 100%;
    padding: 18px;
    text-align: center;
  }
  
  .footer-segment {
    display: inline-block; 
    margin: 0 20px;
    width: auto; 
  }
  .footer-segment h4 {
    color: #333;
    font-size: 22px;
    line-height: 1.5em;
    margin: 0; 
  }
  
  .footer-segment:hover h4 {
    color: red;
  }
  
  .imagen-footer {
    display: block; 
    margin: 0 auto; 
  }
  
  .footer-segment > a {
    color: black;
    text-decoration: none;
  }
  
  .footer-segment:hover > a {
    color: red;
  }
  
/*---------------------------------------------------Vehículos-------------------------------------------*/

#models{
  width: 100%;
  height: 50%;
}

.model-image {
  width: 100%;
  height: 50%;
  transition: transform 0.3s ease-in-out;
}
.model-image:hover {
  transform: scale(0.95);
}
.name-model,
.name-model-x,
.name-model-y,
.name-model-3 {
  text-decoration: none;
  position: relative;
  bottom: 80px;
  width: 8%;
  left: 45%;
  background-color: rgba(255, 255, 255, 0.4);
  text-align: center;
  padding: 18px;
  border-radius: 5px;
  font-size: large;
  color: black;
}

article>a:visited{
  text-decoration: none;
  color: #000; 
}


article>a:hover{
  text-decoration:none;
  color: #d41a1a;
}

article>a:active{
  text-decoration:none; 
}


/*--------------------------Tienda--------------------------*/

#tienda {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin: 20px;
}

.productos {
  width: 300px;
  height: 400px;
  margin: 10px;
  padding: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  transition: box-shadow 0.3s ease; 
}

.productos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.productos h2 {
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
 
}

.productos>h2>a{
  text-decoration: none; 
  color: inherit;
}

.productos p {
  display: none;
  position: absolute;
  top: 100%; 
  left: 0;
  width: 100%;
  padding: 15px;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1;
  box-sizing: border-box;
  border-top: 1px solid #ddd;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, top 0.3s ease; 
  max-height: 200px; /* altura máxima para la descripción */
  overflow-y: auto; /* agregar scroll vertical */
  text-overflow: ellipsis;
}

.productos:hover p {
  display: block;
  opacity: 1;
  top: auto; 
  bottom: 0; 
  transform: translateY(0);
  max-height: none;
}

.productos:hover p {
  display: block;
  opacity: 1;
  top: calc(100% - 80%);
  transform: translateY(0); 
}

.parraf {
  animation-duration: 1s;
  animation-name: parraf;
  animation-iteration-count: 1; /*1 para que se ejecute una vez */
  animation-direction: alternate;
  animation-play-state: paused; /* La animación comienza en estado pausado */
}

.productos:hover .parraf {
  animation-play-state: running; /* La animación se activa cuando el ratón está sobre el */
}

@keyframes parraf {
  from {
    margin-left: 100%;
    width: 300%;
  }

  to {
    margin-left: 0%;
    width: 100%;
  }
}

.catalogo {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  margin: 20px;
}
/*---------MEDIA----------*/

@media screen and (max-width: 480px) {
  .cambiar, .quitar {
    display: none;
  }
  .desc {
    top: 5%; 
    font-size: 30px; 
  }

  #ajuste-titulo {
    margin-top: 5%; 
    font-size: 16px; 
  }

  #ajuste-llantas, #ajuste-llantas2 {
    font-size: 16px;
    margin-left: 5%; 
  }
 

  
  .video-llantas {
    width: 60%;
    margin-top: 5%; 
  }

  .video-colores{
    width: 60%;
    margin-top: 5%; 
    margin-left:38%;
  }

  .cyber {
    margin-top: -12%;
    margin-left: 10%; 
    width: 80%; 
    height: auto;
  }

  .prox {
    float: none; 
    margin-top: 5%; 
    margin-left: 28%;
    clear: both;
    font-size:larger;
    color:white
  }
  .video-contenedor {
    width: 100%;
    margin-top: 0; 
  }

  video {
    width: 100%;
  }

  .desc >a{
    position:relative;
    top: 30%; 
    font-size: 30px; 
  }
  .menu {
    height: 60px; 
  }

  .menu h1 img {
    width: 40px;
    height: 40px; 
  }

  .abajo {
    display: flex;
    align-items: center;
    position: relative;
    float: right;
    margin-right: 2%;
}

.abajo-contenido {
    background-color: white;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5%;
}

.abajo-contenido a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5%;
}

.abajo-contenido a:hover {
    background-color: rgb(221, 220, 220);
}

.abajo:hover .abajo-contenido {
    display: flex;
    flex-direction: column; /* Muestra los enlaces en columna en lugar de fila */
}

.abajo:hover .boton {
    background-color: white;
}

.boton {
    margin-top: 30%;
    border: none;
    background-color: white;
}

.abajo-contenido > a > #imgini,
.abajo-contenido > a > #imgini1,
.abajo-contenido > a > #imgini2 {
    position: relative;
    margin-left: 10%; 
}

.name-model,
.name-model-x,
.name-model-y,
.name-model-3 {
    text-decoration: none;
    position: relative;
    bottom: 10px; 
    width: 70%; 
    left: 40%; 
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 1px;
    border-radius: 5px; 
    font-size:large; 
    color: black;
    transition: background-color 0.3s ease-in-out;
}

.name-model:hover,
.name-model-x:hover,
.name-model-y:hover,
.name-model-3:hover {
    background-color: rgb(141, 136, 136);
}

.model-image {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease-in-out;
}
.model-image:hover {
  transform: scale(1.15);
}


}



/*----------Media 1024px--------*/
@media screen and (max-width: 1024px) {

  .desc {
    top: 5%; 
    font-size: 80px; 
  }

  #ajuste-titulo {
    margin-top: 5%; 
    font-size: 16px; 
  }

  #ajuste-llantas{
    font-size: 18px;
    margin-left: 5%; 
  }

  #ajuste-llantas2 {
    font-size: 18px;
    margin-left: 15%; 
 
  }
  
  .video-llantas {
    width: 90%;
    margin-top: 5%; 
  }

  .video-colores{
    width: 90%;
    margin-top: 5%; 
    margin-left:8%;
  }

  .cyber {
    margin-top: -12%;
    margin-left: 10%; 
    width: 80%; 
    height: auto;
  }

  .prox {
    float: none; 
    margin-top: 5%; 
    margin-left: 38%;
    clear: both;
    font-size: x-large;
    color: white;
    animation: palpitacion 8s 1 forwards;
  }
  
  @keyframes palpitacion {
    0% {
      transform: scale(1.0);
    }
    50% {
      transform: scale(1.2);
    }
    100% {
      transform: scale(1.0);
    }
  }
  
  .prox:hover {
    animation-play-state: paused;
  }
  .video-contenedor {
    width: 100%;
    margin-top: 0; 
  }

  video {
    width: 100%;
  }

  .desc >a{
    position:relative;
    top: 30%; 
    font-size: 30px; 
  }

  .cambiar, .quitar {
    display: none;
  }
  .menu {
    height: 100px;
    background-size: contain;
  }
  .abajo {
    display: flex;
    align-items: center;
    position: relative;
    float: right;
    margin-right: 2%;
    margin-top: 0.5%;
  }

  .abajo-contenido {
    background-color: white;
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5%;
  }

  .abajo-contenido a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 5%;
  }

  .abajo-contenido a:hover {
    background-color: rgb(221, 220, 220);
  }

  .abajo:hover .abajo-contenido {
    display: flex;
    flex-direction:initial; 
  }

  .abajo:hover .boton {
    background-color: white;
  }

  .boton {
    margin-top: 30%;
    border: none;
    background-color: white;
  }

  .abajo-contenido > a > #imgini,
  .abajo-contenido > a > #imgini1,
  .abajo-contenido > a > #imgini2 {
    position: relative;
    margin-left: 25%;
  }
  
  .name-model,
  .name-model-x,
  .name-model-y,
  .name-model-3 {
    text-decoration: none;
    position: relative;
    bottom: 80px; 
    width: 8%; 
    left: 45%; 
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 5px;
    border-radius: 5px; 
    font-size: large; 
    color: black;
    transition: background-color 0.3s ease-in-out;
  }

  .name-model:hover,
  .name-model-x:hover,
  .name-model-y:hover,
  .name-model-3:hover {
    background-color: rgb(141, 136, 136);
  }

  .model-image {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
  }

  .model-image:hover {
    transform: scale(0.92);
  }
}

/*-------MEDIA 1921----------*/

@media screen and (max-width: 1921px) {
  .menu {
    height: 100px;
    background-size: contain;
  }

  .galeria {
    height: 60vw; 
  }

  .galeria input[type=radio] {
    width: 10px;
    margin-left: 4%;
  }

  .galeria {
    position: relative;
    height: 50vw;
  }

  .galeria img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 3s;
    width: 100%;
    height: 100%;
  }

  .galeria input[type=radio] {
    position: relative;
    width: 60px; 
    bottom: calc(-50vw - 1.0em);
    transform: translateX(-100%);
    appearance: none;
    background-color: #9c9595;
    padding: 8px;
    margin-right: 12%; 
    cursor: pointer;
  }

  .name-model:hover,
  .name-model-x:hover,
  .name-model-y:hover,
  .name-model-3:hover {
    background-color: rgb(141, 136, 136);
  }

  .model-image {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
  }

  .model-image:hover {
    transform: scale(0.95);
  }


}