/* Reset general */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Tipografía general y fondo */
body {
  font-family: 'Arial', sans-serif;
  color: #fff;
  line-height: 1.6;
  background: #000;
}

/* Contenedor general */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}
/* --- BARRA DE NAVEGACIÓN FIJA --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #e50000;
  padding: 10px 0;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
}
.nav-links li {
  display: inline;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1em;
  font-weight: bold;
  transition: color 0.3s ease;
}
.nav-links a:hover {
  color: #ffcccc;
}

/* --- RESPONSIVE MENÚ --- */
@media (max-width: 768px) {
  .nav-container {
      flex-direction: column;
      align-items: center;
  }
  .nav-links {
      flex-direction: column;
      text-align: center;
      gap: 10px;
  }
}
/* --- BOTÓN WHATSAPP FLOTANTE --- */
.whatsapp-float {

  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
}
.whatsapp-float img {
  width: 75px;
  height: 75px;
  transition: transform 0.3s ease-in-out;
}

.whatsapp-float:hover img {
  transform: scale(1.1);
}

/* --- BOTÓN FACEBOOK FLOTANTE --- */
.facebook-float {
  position: fixed;
  right: 20px;
  bottom: 100px; /* Para que no se encime con el de WhatsApp */
  z-index: 999;
}

.facebook-float img {
  width: 75px;
  height: 75px;
  transition: transform 0.3s ease-in-out;
}

.facebook-float:hover img {
  transform: scale(1.1);
}

/* --- HERO --- */
.hero {
  height: 100vh;
  background: url('hero-bg.avif') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}
.hero-content {
  position: relative;
  text-align: center;
  z-index: 10;
  animation: fadeIn 1.5s ease;
}
.hero-content h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}
.btn {
  background-color: #e50000;
  color: #fff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.btn:hover {
  background-color: #ff6666;
  transform: translateY(-3px);
}
.Elink {
  display: flex;
  justify-content: center;
  align-items: center; 
  height: auto; 
  text-align: center; 
  padding: 20px; 
}

.Elink img {
  max-width: 100%; 
  height: auto; 
}
/* --- SECCIÓN MARCAS--- */
.marcas {
  padding: 80px 0;
  background: linear-gradient(180deg, #101010 0%, #121212 100%);
  text-align: center;
}

.marcas h2 {
  font-size: 3em;
  margin-bottom: 50px;
  color: #e50000;
}

/* Contenedor de cada marca */
.brand-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  max-width: 1100px;
  margin: 50px auto;
  padding: 50px 30px;
  background-color: #292929;
  border-radius: 15px;
  box-shadow: 0px 10px 20px rgba(255, 255, 255, 0.2);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  opacity: 0;
  transform: translateY(50px);
  animation: fadeInUp 1s ease-in-out forwards;
}

/* Alternando la dirección */
.brand-container:nth-child(even) {
  flex-direction: row-reverse;
}

/* Efecto hover */
.brand-container:hover {
  transform: scale(1.05);
  box-shadow: 0px 15px 30px rgba(255, 0, 0, 0.3);
}

/* Imagen más grande */
.brand-container img {
  max-width: 500px;
  height: auto;
  transition: transform 0.4s ease-in-out;
}

/* Zoom en hover */
.brand-container:hover img {
  transform: scale(1.2);
}

/* Contenido */
.brand-content {
  text-align: left;
  max-width: 550px;
}

.brand-content h3 {
  font-size: 2.2em;
  margin-bottom: 15px;
  color: #e50000;
}

.brand-content p {
  flex: 1;
  text-align: left;
  font-size: 1.2em;
  color: #fff;
  margin-bottom: 15px;
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(50px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Responsividad */
@media (max-width: 768px) {
  .brand-container {
      flex-direction: column;
      text-align: center;
      padding: 40px 20px;
  }

  .brand-container:nth-child(even) {
      flex-direction: column;
  }

  .brand-content {
      text-align: center;
  }

  .brand-container img {
      max-width: 250px;
  }
}

/* --- SECCIÓN CONTACTO --- */
.contacto {
  padding: 50px 0;
  background: linear-gradient(180deg, #000 0%, #101010 100%);
  text-align: center;
}
.contacto h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #e50000;
}
.contacto p {
  margin-bottom: 30px;
  color: #ccc;
}

/* --- Video --- */
.servicio {
  text-align: center;
  padding: 50px 20px;
}
.servicio h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #ccc;
}
video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- INFO --- */
.INFO {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 50px 20px;
  text-align: center;
}
.INFO img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* --- FRENOS --- */

.frenos {
  text-align: center;
  padding: 50px 20px;
}
.frenos h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #f9f9f9;
}

.frenos {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 10px;
}
.frenos-LOGO {
  max-width: 100%;
  height: auto;
}

/* --- FOOTER --- */
.footer {
  background-color: #121212;
  padding: 20px 0;
  text-align: center;
}
.footer p {
  color: #ccc;
  font-size: 0.9em;
}



/* --- ANIMACIÓN --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2em;
  }
  .nav a {
    margin: 0 10px;
    font-size: 0.9em;
  }
  .logo h1 {
    font-size: 1.5em;
  }
}