* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.barra-superior{
    background-color: black;
    background-position:top;  
    height: 100px;
    position: fixed;
    width: 100%;
    height: 10%;
    display: flex;                
    align-items: center;          
    justify-content: center; 
    z-index: 4000;     
}
.contacto{
  position: fixed;
  text-decoration: none;
  font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  border: 2px solid rgb(211, 185, 36);
  padding: 0.6% 1.6%;
  margin-top: 1.1%;
  right: 1%;
  font-size: 1.5rem;
  color: rgb(211, 185, 36);
  z-index: 4001;
}
.contacto a:visited {
  color: rgb(211, 185, 36);           
}
a,a:visited,a:hover,a:active {
  text-decoration: none;
}
.menu-hamburguesa {
  position: fixed;
  margin-top: 1.1%; 
  left: 1%; 
  font-size: 2rem; 
  color: rgb(199, 146, 33);
  cursor: pointer;
  z-index: 4001;
}
.submenu {
  display: none;
  position: absolute;
  top: -1vw;
  left: -2vw; 
  background-color: rgba(0, 0, 0, 1);
  list-style: none;
  padding: 8vw 12vw;
  margin: 0;
  border-radius: 0;
  min-width: 0;
}
.submenu li {
  padding: 2vh 7vw; /* antes 20px 70px */
}

.submenu li a {
  color: rgb(50, 72, 192);
  text-decoration: none;
  font-size: 1rem; /* antes 16px */
  display: block;
}

.submenu li a:hover {
  background-color: gold;
  color: black;
}

/* Mostrar submenu al pasar encima */
.menu-hamburguesa:hover .submenu {
  display: block;
}
.fondo {
  height: 100vh;
  width: 100%;
  background-image: url("ImagenesWeb/i30portada.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* FILA DE CUADRADOS */
.filacuadrados {
  position: absolute;
  width: 98%;
  bottom: 2%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 2rem 0;
  z-index: 2;
}

/* TARJETAS */
.cuadrados {
  background-color: rgba(0, 0, 0, 0.5);
  border: 0.1rem solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  width: 20vw; /* antes 300px */
  height: 15vh; /* antes 120px */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

/* LOGOTIPO */
.cuadrados img {
  max-width: 5vw; /* antes 100px */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* EFECTOS HOVER */
.cuadrados:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-0.5vh);
  box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.1);
}

.cuadrados:hover img {
  transform: scale(1.1);
  opacity: 1;
}

/* ESTILOS GENERALES */
body {
  color: aliceblue;
  background-color: black;
}

h2 {
  font-family: 'Poppins', sans-serif;        
  font-size: 3.5rem;                         
  font-weight: 800;                          
  text-transform: uppercase;                 
  letter-spacing: 4px;                       
  width: 100%;
  text-align: center;                        
  color: transparent;                        
  -webkit-text-stroke: 2px #d4af37;          
  position: relative;
  display: inline-block;
  margin: 40px auto; 
}

.texto{
  margin:0% 5%;
}
.recomendacion {
  text-align: center;
  padding: 2rem 0;
}
.recomendacion img {
  width: 100%;
  max-width: 500px;  /* cambia este valor según lo grande que quieras la imagen */
  height: auto;
  display: block;
  margin: 0 auto;    /* centra la imagen */
  border-radius: 10px; /* opcional, esquinas redondeadas */
  object-fit: cover;   /* mantiene proporción si usas un contenedor fijo */
}
.filarecomendacion {
  display: flex;
  justify-content: center;
  gap: 2rem; /* espacio entre imágenes */
  flex-wrap: wrap; /* para que se adapten en móviles */
}
.cocherecomendacion {
  background-color: #fff;
  color: #000000;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  
}

.cocherecomendacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* IMAGEN DEL COCHE */
.cocherecomendacion img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* INFO BAJO LA IMAGEN */
.info-coche {
  padding: 1rem;
}

.info-coche h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.info-coche p {
  color: #555;
  margin: 0.3rem 0 1rem;
}

/* BOTÓN DE COMPRA */
.btn-comprar {
  background-color: #d4af37;
  color: #000;
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.btn-comprar:hover {
  background-color: #b38e2a;
  color: white;
}
footer{
  text-align: center;
}
