/* --- RESET GENERAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- TIPOGRAFÍA Y FONDO GENERAL --- */
body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f8f9fa;
}

/* --- CONTENEDOR GENERAL --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --- CABECERA --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ce0000cd;
  padding: 10px 0;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.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: #d1ecf1;
}

/* --- 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('freno.jpg') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}
.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;
}
.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);
}

/* === SECCIÓN TALLER EN COLIMA (CARRUSEL) === */
.taller-section {
  background: #000;
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.taller-section h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #e50000;
}
.taller-subtitle {
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ddd;
}

/* Galería principal */
.taller-gallery {
  max-width: 1000px;
  margin: 0 auto 40px;
}
.taller-main img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* Thumbnails */
.taller-thumbs {
  margin-top: 20px;
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 10px;
  justify-content: center;
}
.taller-thumb {
  flex: 0 0 auto;
  width: 150px;
  height: 95px;
  object-fit: cover;
  border-radius: 15px;
  cursor: pointer;
  opacity: 0.7;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}
.taller-thumb:hover,
.taller-thumb.active {
  opacity: 1;
  border-color: #e50000;
  transform: translateY(-3px);
}

/* Tarjetas de beneficios */
.taller-benefits {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.taller-card {
  background: #111;
  border-radius: 20px;
  padding: 25px 20px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  flex: 1 1 250px;
  max-width: 320px;
}
.taller-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #e50000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 1.4em;
}
.taller-card h3 {
  color: #fff;
  margin-bottom: 8px;
  font-size: 1.2em;
}
.taller-card p {
  color: #ccc;
  font-size: 0.95em;
}

/* --- SECCIÓN MARCAS --- */
.marcas {
  padding: 80px 0;
  background: #ffffff;
  text-align: center;
}
.marcas h2 {
  font-size: 2.5em;
  margin-bottom: 50px;
  color: #ce0000cd;
}
.brand-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
  justify-content: center;
}
.brand-card {
  background: #f8f9fa;
  border-radius: 15px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 280px;
  max-width: 380px;
}
.brand-card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.2);
}
.brand-card img {
  width: 100%;
  height: auto;
}
.brand-card h3 {
  font-size: 1.5em;
  margin: 15px 0;
  color: #ce0000cd;
}
.brand-card p {
  padding: 0 20px;
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
}
.brand-card .btn {
  background: #007bff;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin: 0 auto 20px;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.brand-card .btn:hover {
  background: #ce0000cd;
}

/* --- 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;
}

/* --- SECCIÓN INFO --- */
.INFO {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 50px 20px;
  justify-content: center;
}
.INFO img {
  width: 100%;
  max-width: 350px;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- FRENOS --- */
.frenos {
  text-align: center;
  padding: 50px 20px;
}
.frenos h2 {
  font-size: 2em;
  margin-bottom: 20px;
  color: #101010;
}
.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;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2em;
  }
  .hero p {
    font-size: 1em;
  }
  .brand-card {
    max-width: 100%;
  }
  .taller-section h2 {
    font-size: 2em;
  }
  .taller-main img {
    border-radius: 18px;
  }
  .taller-thumb {
    width: 120px;
    height: 80px;
  }
}
