/* ======================================================
   CSS CORREGIDO Y UNIFICADO - Corporation Chang
   Mantiene colores y estilo original, elimina duplicados
   ====================================================== */

/* ---------- VARIABLES (colores) ---------- */
:root{
  --bg-dark: #0d0d0d;
  --panel-dark: #1a1a1a;
  --accent: #FF8C00;       /* naranja principal */
  --accent-2: #ff7b00;     /* naranja alterno */
  --gold: #FFCC33;
  --light-bg: #FFF8E1;
  --white: #ffffff;
  --muted: rgba(255,255,255,0.1);
  --card-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* ========== RESET ========== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  font-family:"Poppins",sans-serif;
  background-color:var(--bg-dark);
  color:var(--white);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.5;
}

/* ========= GLOBAL CONTAINER ========= */
.container{
  width:90%;
  max-width:1200px;
  margin:0 auto;
}

/* ========= TOP ANNOUNCEMENT / BANNER ========= */
.top-banner,
.announcement-bar,
.header-top,
.header-announcement,
.header-info{
  background-color: var(--accent);
  color: var(--white);
  font-weight:600;
  text-align:right;
  padding:6px 15px;
  border-bottom: 2px solid var(--gold);
  width:100%;
}

/* scrolling text inside top-banner */
.top-banner .scroll-text{
  display:inline-block;
  padding-left:100%;
  animation: scrollText 15s linear infinite;
  white-space:nowrap;
}
@keyframes scrollText{
  0%{transform:translateX(0)}
  100%{transform:translateX(-100%)}
}

/* ========= HEADER (logo + buscador + icons) ========= */
.header{
  background: #111; /* oscuro */
  color: var(--white);
  padding:10px 0;
  border-bottom: 2px solid var(--accent);
}
.header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

/* logo */
.logo img{
  height:55px;
  width:auto;
  display:block;
  transition:transform .2s ease;
}

/* ===== LISTA DE DESEOS ===== */
.wishlist {
  position: relative;
  margin-right: 15px;
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.wishlist i {
  transition: color 0.3s ease;
}

.wishlist:hover i {
  color: #f44336;
}

#wishlist-count {
  position: absolute;
  top: -5px;
  right: -10px;
  background: #f44336;
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  padding: 2px 5px;
}

/* header-right groups search, nav-inline, icons */
.header-right{
  display:flex;
  align-items:center;
  gap:18px;
}

/* buscador */
.search-bar{
  display:flex;
  align-items:center;
  background:var(--white);
  border-radius:25px;
  overflow:hidden;
  height:38px;
  width: 360px;
  position:relative;
}
.search-bar input{
  flex:1;
  border:none;
  outline:none;
  padding:8px 14px;
  font-size:14px;
  color:#111;
}
.search-bar button{
  background:var(--accent);
  border:none;
  width:44px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--white);
  cursor:pointer;
}
.search-results{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  width:100%;
  max-height:300px;
  overflow:auto;
  background:var(--white);
  color:#111;
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
  border-radius:6px;
  display:none;
  z-index:999;
}



/* search result item */
.search-result-item{
  display:flex;
  gap:10px;
  align-items:center;
  padding:10px;
  border-bottom:1px solid #eee;
  cursor:pointer;
}
.search-result-item img{width:48px;height:48px;object-fit:cover;border-radius:6px}
.search-result-item h4{font-size:14px;margin:0}
.search-result-item p{font-size:12px;margin:0;color:#666}

/* nav inline (menú al lado del buscador) */
.nav-inline ul{
  display:flex;
  list-style:none;
  gap:14px;
  align-items:center;
  margin:0;
  padding:0;
}
.nav-inline a{
  color:var(--white);
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  padding:6px 8px;
  transition:color .2s, border-bottom .2s;
}
.nav-inline a:hover,
.nav-inline a.active{ color: var(--accent); border-bottom:2px solid var(--accent) }

/* header icons (login / cart) */
.header-icons{
  display:flex;
  gap:12px;
  align-items:center;
}
.header-icons a{
  color:var(--white);
  text-decoration:none;
  font-weight:600;
}
.header-icons a:hover{ color:var(--accent) }
.cart-count{
  background:var(--accent);
  color:#fff;
  font-weight:600;
  padding:2px 6px;
  border-radius:12px;
  margin-left:6px;
  font-size:12px;
}

/* ========= SUBMENU / CATEGORÍAS HORIZONTAL ========= */
.submenu-container{
  background:var(--panel-dark);
  width:100%;
  border-top:1px solid rgba(0,0,0,0.6);
  border-bottom:2px solid rgba(0,0,0,0.6);
  overflow-x:auto;
  white-space:nowrap;
  padding:8px 0;
}
.submenu{
  display:flex;
  gap:10px;
  justify-content:center;
  align-items:center;
  margin:0;
  padding:0 10px;
  list-style:none;
}
.submenu li a{
  display:inline-block;
  color:var(--white);
  text-decoration:none;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
  padding:6px 14px;
  border-radius:25px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.08);
  transition:all .25s ease;
}
.submenu li a:hover,
.submenu li a.active{
  background:rgba(255,123,0,0.9);
  border-color: rgba(255,123,0,0.95);
  box-shadow:0 0 10px rgba(255,123,0,0.3);
}

/* scrollbar styling for submenu container */
.submenu-container::-webkit-scrollbar{height:6px}
.submenu-container::-webkit-scrollbar-thumb{background:rgba(255,123,0,0.6);border-radius:3px}
.submenu-container::-webkit-scrollbar-track{background:transparent}

/* ========= SLIDER (banner-slider) ========= */
/* ===== SLIDER CORREGIDO ===== */
.banner-slider {
  position: relative;
  width: 100%;
  height: 80vh; /* altura del slider */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-container {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 300%; /* depende de la cantidad de slides */
}

.slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.slide img {
  width: auto;       /* la anchura se ajusta automáticamente */
  height: 100%;      /* altura del slide */
  object-fit: contain; /* mantiene toda la imagen visible */
  display: block;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  padding: 25px 30px;
  border-radius: 10px;
  max-width: 420px;
  z-index: 2;
}

/* botones de navegación */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.slider-nav button {
  pointer-events: all;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.slider-nav button:hover {
  background: rgba(0,0,0,0.7);
}

/* dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
}

.slider-dots button.active {
  background: var(--accent);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .banner-slider {
    height: 50vh;
  }
  .slide img {
    height: 100%;
    width: auto;
  }
  .slide-content {
    max-width: 300px;
    padding: 15px 20px;
    left: 5%;
  }
}
.banner-slider {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
  background: #111; /* fondo si la imagen no cubre todo */
}

.slider-container {
  display: flex;
  transition: transform 0.7s ease-in-out;
  width: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  background: #111; /* evita negro completo si no carga imagen */
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(0,0,0,0.4);
  padding: 20px 25px;
  border-radius: 10px;
  max-width: 400px;
}

.slider-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.slider-nav .prev { left: 10px; }
.slider-nav .next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
}

.slider-dots button.active {
  background: #f90; /* color activo */
}

@media (max-width:768px){
  .banner-slider { height: 50vh; }
  .slide-content { max-width: 250px; padding: 15px 20px; left: 5%; }
}




/* ========= CATEGORIES / CARDS ========= */
.categories{padding:60px 0;background:var(--light-bg);text-align:center}
.categories-grid{
  width:90%;
  max-width:1200px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:20px;
}
.category-card{position:relative;overflow:hidden;border-radius:10px;cursor:pointer;box-shadow:var(--card-shadow)}
.category-card img{width:100%;height:220px;object-fit:cover;transition:transform .45s}
.category-card:hover img{transform:scale(1.06)}
.category-card .overlay{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;background:rgba(0,0,0,0.35);opacity:0;transition:opacity .25s}
.category-card:hover .overlay{opacity:1}

/* ========= PRODUCTOS DESTACADOS (grid estilo Nitro) ========= */
.productos-destacados{
  padding:60px 0;
  background:var(--light-bg);
  text-align:center;
}
.productos-destacados h2{
  font-size:2rem;font-weight:700;color:#222;margin-bottom:18px;text-transform:uppercase;position:relative;
}
.productos-destacados h2::after{
  content:'';display:block;width:80px;height:3px;background:var(--accent-2);margin:10px auto 0;border-radius:2px;
}

/* default grid: 5 columns on large screens */
.productos-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:22px;
  width:90%;
  max-width:1300px;
  margin: 0 auto;
  justify-items:center;
}

/* product card unified */
.product-card{
  background:var(--white);
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:transform .25s, box-shadow .25s;
  width:100%;
  max-width:260px;
  text-align:center;
}
.product-card:hover{transform:translateY(-6px);box-shadow:0 8px 20px rgba(0,0,0,0.12)}
.product-card img{width:100%;height:180px;object-fit:cover;display:block}
.product-card .product-info{padding:12px 14px}
.product-card h3{font-size:1rem;color:#333;margin:8px 0 6px;font-weight:600}
.product-card .stars{color:#FFD700;margin-bottom:6px}
.product-card .price{font-weight:700;color:var(--accent-2);margin-bottom:10px}
.product-card .btn{background:var(--accent-2);color:#fff;padding:8px 14px;border-radius:8px;border:none;cursor:pointer}
.product-card .btn:hover{background: #e56d00}

/* ========= REPUESTOS PAGE LAYOUT ========= */
.repuestos-page{background:var(--bg-dark);padding:40px 0;color:var(--white)}
.repuestos-container{display:grid;grid-template-columns:260px 1fr;gap:30px;align-items:start;width:90%;max-width:1200px;margin:0 auto}

/* filtros laterales */
.filtros-laterales{background:var(--panel-dark);padding:18px;border-radius:10px;border:1px solid rgba(255,255,255,0.06)}
.filtros-laterales h3{color:var(--accent-2);font-size:15px;font-weight:700;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(255,255,255,0.04)}
.filtros-laterales ul{list-style:none;padding:0;margin:10px 0}
.filtros-laterales label{display:block;color:var(--white);font-size:14px;margin-bottom:8px;cursor:pointer}
.filtros-laterales input[type="checkbox"]{accent-color:var(--accent-2);margin-right:8px}

/* productos (derecha) */
.productos-repuestos h2{color:var(--accent-2);font-size:22px;font-weight:700;margin-bottom:18px}
.productos-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}

/* smaller card style when shown inside repuestos section */
.productos-repuestos .product-card{background:var(--panel-dark);border:1px solid rgba(255,255,255,0.04);padding:14px;box-shadow:none}
.productos-repuestos .product-card img{height:160px;object-fit:contain;margin-bottom:10px}
.productos-repuestos .product-card h3{color:var(--white);font-size:15px;margin-bottom:6px}
.productos-repuestos .product-card .price{color:var(--accent-2);font-weight:700}
.productos-repuestos .product-card .btn{background:var(--accent-2);padding:8px 12px;border-radius:6px}

/* ========= PRODUCTOS LISTA / GRID ID =productos-lista ========= */
#productos-lista{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:12px}
#productos-lista .product-card{background:var(--white);color:#111;padding:12px;border-radius:10px}
#productos-lista .product-card .price{color:var(--accent);font-weight:700}
#productos-lista .btn{background:var(--accent);color:#fff}

/* ========= WHATSAPP FLOAT ========= */
.whatsapp-float{position:fixed;right:22px;bottom:22px;width:60px;height:60px;background:#25D366;border-radius:50%;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 20px rgba(0,0,0,0.25);z-index:999}
.whatsapp-float img{width:34px;height:34px}

/* ========= FOOTER ========= */
.footer{background:var(--panel-dark);color:var(--gold);padding:20px 0;text-align:center;font-size:14px}

/* ========= UTIL y RESET RULES that shouldn't conflict ========= */
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ========= RESPONSIVE BREAKPOINTS ========= */
@media (max-width: 1400px){
  .productos-grid{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:1200px){
  .productos-grid{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:992px){
  .header .container{flex-direction:column;align-items:flex-start;padding:12px 0}
  .search-bar{width:100%}
  .nav-inline{display:none}
  .productos-grid{grid-template-columns:repeat(2,1fr)}
  .repuestos-container{grid-template-columns:1fr}
}
@media (max-width:768px){
  .banner-slider{height:50vh}
  .slide{height:50vh}
  .productos-grid{grid-template-columns:repeat(2,1fr)}
  #productos-lista{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:480px){
  .productos-grid{grid-template-columns:1fr}
  #productos-lista{grid-template-columns:1fr}
  .search-bar input{width:100%}
  .header-right{flex-direction:column;align-items:stretch;gap:10px}
}


/* === MENÚ ACORDEÓN === */
.menu-acordeon h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  border-bottom: 2px solid #ddd;
  padding-bottom: 5px;
  cursor: pointer;
}

.acordeon-lista {
  list-style: none;
  padding-left: 10px;
}

.acordeon-lista li {
  margin: 8px 0;
}

.acordeon-lista a {
  text-decoration: none;
  color: #333;
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.acordeon-lista a:hover {
  background: #f0f0f0;
  color: #d90429;
}

/* Submenús */
.submenu .submenu-lista {
  display: none;
  margin-top: 5px;
  padding-left: 15px;
  border-left: 2px solid #eee;
}

.submenu.active .submenu-lista {
  display: block;
}

.submenu > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu i {
  font-size: 12px;
  transition: transform 0.3s;
}

.submenu.active i {
  transform: rotate(180deg);
}



/* 🎯 SOLO aplica al bloque de "Inicio" dentro de los filtros */
.filter-group.menu-acordeon {
  background-color: #000; /* Fondo negro solo en Inicio */
  color: #fff; /* Letras blancas */
  padding: 15px;
  border-radius: 10px;
}

.filter-group.menu-acordeon h3 {
  color: #fff;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.filter-group.menu-acordeon ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.filter-group.menu-acordeon a {
  color: #fff; /* 🔥 Letras blancas solo aquí */
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.filter-group.menu-acordeon a:hover {
  color: #ff6600; /* Naranja al pasar el mouse */
  transform: translateX(3px);
}

/* 🎨 Bloque "Inicio" con acordeón */
.filter-group.menu-acordeon {
  background-color: #000;
  color: #fff;
  padding: 15px;
  border-radius: 10px;
}

.filter-group.menu-acordeon h3 {
  color: #fff;
  font-weight: bold;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.filter-group.menu-acordeon ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.filter-group.menu-acordeon a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 6px 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.filter-group.menu-acordeon a:hover {
  color: #ff6600;
  transform: translateX(3px);
}

/* Submenús */
.filter-group.menu-acordeon .submenu > a {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group.menu-acordeon .submenu-lista {
  display: none;
  margin-left: 15px;
  border-left: 2px solid #ff6600;
  padding-left: 10px;
}

.filter-group.menu-acordeon .submenu-lista a {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.filter-group.menu-acordeon .submenu-lista a:hover {
  color: #ff6600;
}

/* Cuando el submenu está activo */
.filter-group.menu-acordeon .submenu.activo .submenu-lista {
  display: block;
}

.filter-group.menu-acordeon .submenu i {
  transition: transform 0.3s ease;
}

.filter-group.menu-acordeon .submenu.activo i {
  transform: rotate(180deg);
}



/* ===== ESTILOS PARA PÁGINA DE PRODUCTOS ===== */

.products-page {
  background: #111;
  color: #fff;
  padding: 40px 5%;
}

.products-page h2 {
  color: #ffa500;
  text-align: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #ffa500;
  display: inline-block;
  padding-bottom: 5px;
}

/* Layout principal */
.products-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  align-items: start;
}

/* ===== FILTROS ===== */
.filter-panel {
  background: #1c1c1c;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #333;
}

.filter-panel h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #ffa500;
  border-bottom: 1px solid #ffa500;
  padding-bottom: 5px;
}

.filter-block {
  margin-bottom: 25px;
}

.filter-block h4 {
  color: #fff;
  margin-bottom: 10px;
}

.filter-block label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
  font-size: 15px;
}

.filter-block input[type="number"] {
  width: 80px;
  padding: 5px;
  margin-left: 5px;
  border-radius: 5px;
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

.btn-filter {
  display: block;
  margin-top: 10px;
  background: #ffa500;
  border: none;
  padding: 8px 10px;
  color: #111;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-filter:hover {
  background: #ff8400;
}

/* ===== GRID DE PRODUCTOS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #333;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.product-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 18px;
}

.product-card p {
  color: #bbb;
  margin-bottom: 10px;
  font-size: 14px;
}

.product-card .price {
  color: #ffa500;
  font-size: 18px;
  font-weight: bold;
}

.product-card .btn {
  background: #ffa500;
  color: #111;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.product-card .btn:hover {
  background: #ff7b00;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px #ffa50044;
}

/* ===== BUSCADOR SUPERIOR ===== */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 280px;
}

.search-bar input {
  border: none;
  padding: 8px 12px;
  outline: none;
  flex: 1;
  font-size: 14px;
}

.search-bar button {
  background: #ff7b00;
  border: none;
  color: #fff;
  padding: 8px 15px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-bar button:hover {
  background: #ffa500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .products-layout {
    grid-template-columns: 1fr;
  }
  .filter-panel {
    order: 2;
  }
  .product-grid {
    order: 1;
  }
}



/* --- Buscador --- */
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}
.search-input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 180px;
}
.search-btn {
    background: #ff6600;
    border: none;
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
}

/* --- Sección de contacto --- */
.contact-section {
    padding: 80px 20px;
    background-color: #111;
    color: #fff;
    text-align: center;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 15px;
}
.contact-form textarea {
    height: 120px;
    resize: none;
}
.contact-form .btn {
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}
.contact-form .btn:hover {
    background: #e65c00;
}
.contact-info {
    text-align: left;
}
.contact-info h3 {
    color: #ff6600;
    margin-bottom: 10px;
}
.contact-text {
    color: #ccc;
    font-size: 1.1em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .search-input {
        width: 120px;
    }
}

/* --- Corrección del header en Contacto --- */
header {
  background: #111;
  border-bottom: 2px solid #ff6a00;
  padding: 15px 0;
}

.header-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.logo img {
  height: 60px;
  object-fit: contain;
}

/* --- Buscador --- */
.search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  width: 320px;
  height: 36px;
  margin-right: 20px;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
}

.search-btn {
  background: #ff6600;
  border: none;
  color: white;
  padding: 0 12px;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
}

.search-btn:hover {
  background: #ff8533;
}

/* --- Navegación --- */
nav ul {
  display: flex;
  list-style: none;
  gap: 25px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #ff6a00;
}

.cart {
  margin-left: 20px;
  color: #ff6a00;
  font-size: 1.3rem;
  cursor: pointer;
}

/* --- Sección de contacto --- */
.contact-section {
  padding: 80px 20px;
  background-color: #0e0e0e;
  color: #fff;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 15px;
  color: #222;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form .btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.contact-form .btn:hover {
  background: #e65c00;
}

.contact-info {
  text-align: left;
  background: #1b1b1b;
  border-left: 4px solid #ff6a00;
  padding: 25px;
  border-radius: 10px;
}

.contact-info h3 {
  color: #ff6600;
  margin-bottom: 10px;
}

.contact-info p {
  margin: 8px 0;
  color: #ccc;
}

.contact-text {
  color: #ccc;
  font-size: 1.1em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .search-bar {
    width: 220px;
  }
}


.ofertas {
  background: #111;
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.ofertas h2 {
  font-size: 2em;
  color: #ffb400;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ofertas-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
}








.ofertas-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.ofertas-carousel::-webkit-scrollbar {
  display: none;
}

.oferta-item {
  background: #1c1c1c;
  border-radius: 10px;
  min-width: 230px;
  max-width: 230px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.oferta-item:hover {
  transform: scale(1.05);
}

.oferta-item img {
  width: 100%;
  height: 180px; /* Fija una altura uniforme */
  object-fit: cover; /* Recorta sin deformar */
  border-radius: 10px 10px 0 0;
}


.oferta-item h3 {
  margin: 10px 0;
  font-size: 1.1em;
}

.precio {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.precio .old {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.oferta-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffb400;
  border: none;
  color: #111;
  font-size: 24px;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}

.oferta-btn:hover {
  background: #ffa000;
}

.oferta-btn.left {
  left: 10px;
}

.oferta-btn.right {
  right: 10px;
}


/* ==== MARCAS ==== */


.brands {
  text-align: center;
  background: #111827;
  padding: 40px 0;
  overflow: hidden;
}

.brands h2 {
  color: #ff6600;
  font-size: 2rem;
  margin-bottom: 25px;
}

.brands-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.brand-track {
  display: flex;
  width: calc(250px * 16); /* cantidad de imágenes */
  animation: scroll 40s linear infinite;
}

.brand-track img {
  width: 180px;
  height: 100px;
  margin: 0 20px;
  object-fit: contain;
  filter: grayscale(1);
  transition: 0.3s;
}

.brand-track img:hover {
  filter: grayscale(0);
  transform: scale(1.1);
}


@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==== BENEFICIOS ==== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  background: #1f2937;
  color: white;
  padding: 50px 10%;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.benefit i {
  font-size: 40px;
  color: #ff6600;
  margin-bottom: 15px;
  transition: 0.3s;
}

.benefit h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.benefit p {
  color: #ccc;
  font-size: 14px;
  line-height: 1.5;
}

.benefit:hover i {
  transform: scale(1.2);
  color: #ffa559;
}

/* ==== FOOTER COMPLETO ==== */
.main-footer {
  background: #111827;
  color: #ccc;
  font-family: "Poppins", sans-serif;
  margin-top: 50px;
}

/* Boletín */
.footer-top {
  background: #1f2937;
  padding: 50px 10%;
  text-align: center;
}

.footer-top h3 {
  color: #ff6600;
  font-size: 22px;
  margin-bottom: 10px;
}

.footer-top p {
  color: #aaa;
  font-size: 15px;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  width: 250px;
  outline: none;
}

.newsletter-form button {
  background: #ff6600;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter-form button:hover {
  background: #e65c00;
}

/* Enlaces */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  padding: 50px 10%;
  text-align: left;
  background: #1a2233;
}

.footer-column h4 {
  color: #ff6600;
  margin-bottom: 15px;
  font-size: 18px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: #ff6600;
}

/* Parte inferior */
.footer-bottom {
  background: #0d111c;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid #222;
}

.footer-bottom p {
  text-align: center;
  width: 100%;
}

.social-icons a {
  color: #ff6600;
  font-size: 18px;
  margin-left: 15px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #fff;
}


/* ===== ESTILO SUBMENÚ DESPLEGABLE ===== */
.submenu-container {
  background-color: #111;
  padding: 10px 0;
}

.submenu {
  display: flex;
  justify-content: center;
  gap: 25px;
  list-style: none;
}

.submenu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.submenu a:hover {
  color: #ff6600;
}

/* Dropdown principal */
.dropdown {
  position: relative;
}

/* Contenedor del submenú */
.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 100;
}

.dropdown-content a {
  color: #333;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  font-weight: 500;
}

.dropdown-content a:hover {
  background-color: #ff6600;
  color: white;
}

/* Mostrar al pasar el mouse */
.dropdown:hover .dropdown-content {
  display: block;
}



/* --- CORRECCIÓN DE SUPERPOSICIÓN DEL SUBMENÚ --- */
.submenu-container {
  position: relative;
  z-index: 1000; /* Hace que esté por encima del slider */
}

.banner-slider {
  position: relative;
  z-index: 1; /* Mantiene el slider detrás del menú */
}

/* ===== BUSCADOR ===== */
.search-box { 
  position: relative; 
  display: flex; 
  align-items: center; 
}

.search-box input{
  width: 100%;
  padding: 8px 40px 8px 12px; /* espacio para lupa */
  border: 2px solid #ff6600;
  border-radius: 25px;
  outline: none;
  font-size: 15px;
}

.search-box .search-btn{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box .search-btn i{
  position: static;  /* IMPORTANTÍSIMO: anula el absolute */
  color: #ff6600;
}


.search-results {
  position: absolute;
  top: 45px;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  display: none;
  z-index: 9999;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.search-results li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.search-results li:hover {
  background: #fff3e6;
  border-left: 3px solid #ff6600;
}

.search-results img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 6px;
}

.search-results span {
  font-size: 14px;
  color: #333;
}

.no-result {
  text-align: center;
  padding: 10px;
  color: #777;
}


/* ===== RENUEVA TUS LLANTAS ===== */
.renueva-llantas {
  text-align: center;
  padding: 80px 5%;
  background: #fff;
}

.renueva-llantas h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.renueva-llantas p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.llantas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 30px;
  justify-items: center;
}

.llanta-card {
  background: #fafafa;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  padding: 20px;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 260px;
  text-align: center;
}

.llanta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

.llanta-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.llanta-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.llanta-card .precio {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.btn-comprar {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-comprar:hover {
  background: #e66000;
}

/* =====================================================
   MODAL LOGIN - ESTILO NITRO (VERSIÓN FINAL)
   ===================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}

/* CONTENEDOR DEL MODAL */
#loginModal .modal-content {
  background-color: #2c2c2c; /* gris oscuro elegante */
  color: #ffffff;
  padding: 35px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

/* BOTÓN DE CERRAR */
#loginModal .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 25px;
  cursor: pointer;
  color: #bbbbbb;
}
#loginModal .close:hover {
  color: #ffffff;
}

/* TÍTULO */
#loginModal h2 {
  color: #ffffff !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* LABELS */
#loginModal label {
  color: #f5f5f5;
  font-size: 14px;
}

/* INPUTS */
#loginModal input[type="email"],
#loginModal input[type="password"],
#loginModal input[type="text"] {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 12px 15px;
  padding-right: 42px; /* espacio para el ojo en contraseñas */
  background-color: #ffffff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

#loginModal input:focus {
  border-color: #ff6600;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.4);
}

#loginModal input::placeholder {
  color: #777;
}

/* --------------------------
   ÍCONO OJO MOSTRAR CONTRASEÑA
   -------------------------- */
.password-wrapper {
  position: relative;
}

.password-wrapper i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #555;       /* ojo oscuro para fondo blanco */
  transition: 0.25s;
}

.password-wrapper i:hover {
  color: #f97316;
}

/* BOTÓN LOGIN */
#loginModal .btn-login {
  width: 100%;
  background: #f97316;
  color: #fff !important;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

#loginModal .btn-login:hover {
  background: #fb923c;
}

/* ENLACES (CREAR CUENTA / OLVIDÉ CONTRASEÑA) */
#loginModal .link,
#loginModal .link a {
  color: #ffffff !important;
  text-align: center;
  font-size: 13px;
}

#loginModal .link a:hover {
  text-decoration: underline;
}

/* DIVISOR */
#loginModal hr {
  border: 0;
  border-top: 1px solid #555;
  margin: 20px 0;
}


/* =====================================================
   MODAL REGISTRO - MISMOS ESTILOS QUE LOGIN
   ===================================================== */

/* CONTENEDOR DEL MODAL */
#registerModal .modal-content {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 35px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

/* BOTÓN DE CERRAR */
#registerModal .close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 25px;
  cursor: pointer;
  color: #bbbbbb;
}
#registerModal .close:hover {
  color: #ffffff;
}

/* TÍTULO */
#registerModal h2 {
  color: #ffffff !important;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 25px;
  text-transform: uppercase;
}

/* LABELS */
#registerModal label {
  color: #f5f5f5;
  font-size: 14px;
  margin-top: 10px;
  display: block;
}

/* INPUTS */
#registerModal input[type="text"],
#registerModal input[type="email"],
#registerModal input[type="password"] {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 12px 15px;
  padding-right: 42px;
  background-color: #ffffff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

#registerModal input:focus {
  border-color: #ff6600;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.4);
}

#registerModal input::placeholder {
  color: #777;
}

/* ÍCONO OJO */
#registerModal .toggle-password i {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  color: #555;
  transition: 0.25s;
}

#registerModal .toggle-password i:hover {
  color: #f97316;
}

/* GRUPO DE CONTRASEÑA */
#registerModal .input-group {
  position: relative;
}

/* BOTÓN CREAR CUENTA */
#registerModal .btn-submit {
  width: 100%;
  background: #f97316;
  color: #fff !important;
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}

#registerModal .btn-submit:hover {
  background: #fb923c;
}

/* TEXTO INFERIOR */
#registerModal .modal-text,
#registerModal .modal-text a {
  color: #ffffff !important;
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}

#registerModal .modal-text a:hover {
  text-decoration: underline;
}


#forgotModal .modal-content {
  background-color: #2c2c2c;
  color: #ffffff;
  padding: 35px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.4);
}

#forgotModal h2 {
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

#forgotModal label {
  color: #f5f5f5;
  font-size: 14px;
}

#forgotModal input[type="email"] {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 18px;
  padding: 12px 15px;
  background-color: #fff;
  color: #222;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#forgotModal .btn-submit {
  width: 100%;
  background: #f97316;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

#forgotModal .btn-submit {
  width: 100%;
  background: #f97316;
  color: #fff !important;   /* <- ESTO FALTABA */
  padding: 12px 0;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.3s;
}





/* ===== FORZAR ESTILO DEL BUSCADOR ===== */
header input[type="search"],
header input[type="text"],
.search input[type="search"],
.search input[type="text"],
input[type="search"] {
  background-color: #fff !important; /* Fondo blanco */
  color: #222 !important; /* Texto oscuro */
  border: 1px solid #ccc !important;
  border-radius: 25px !important;
  padding: 10px 15px !important;
  font-size: 15px !important;
  outline: none !important;
  transition: all 0.3s ease !important;
}

/* Al enfocar el campo */
input[type="search"]:focus,
input[type="text"]:focus {
  border-color: #ff6600 !important;
  box-shadow: 0 0 6px rgba(255, 102, 0, 0.4) !important;
}

/* Ícono de búsqueda (lupa) */
button[type="submit"],
.search i {
  color: #ff6600 !important;
}

/* === CARRITO LATERAL === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px; /* fuera de pantalla */
  width: 360px;
  height: 100%;
  background: #111;
  color: #fff;
  box-shadow: -4px 0 12px rgba(0,0,0,0.5);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  z-index: 2000;
}
.cart-sidebar.active {
  right: 0; /* aparece */
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: #1c1c1c;
  border-bottom: 1px solid #333;
}
.cart-header h3 {
  margin: 0;
  font-size: 16px;
}
.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}
.cart-footer {
  padding: 15px;
  border-top: 1px solid #333;
  background: #1c1c1c;
}
.cart-footer .cart-total {
  margin-bottom: 10px;
  font-weight: bold;
}
.checkout-btn {
  width: 100%;
  background: #ff6600;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* Fondo oscuro cuando se abre */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1900;
  display: none;
}
.cart-overlay.active {
  display: block;
}

/* Items del carrito (por ahora vacíos) */
.cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  background: #1a1a1a;
  padding: 10px;
  border-radius: 8px;
}
.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}
.item-info {
  flex: 1;
}
.item-info h4 {
  margin: 0;
  font-size: 14px;
}
.item-info p {
  margin: 4px 0 0;
  color: #ccc;
}
.btn-remove {
  background: none;
  border: none;
  color: #ff5555;
  font-size: 18px;
  cursor: pointer;
}


.cart {
  position: relative;
  display: inline-block;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: red;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* === PANEL DEL CARRITO === */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  background: #222;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-size: 1.2rem;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 15px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* 🔴 Botón eliminar */
.remove-item {
  background: #ff4d4f;
  border: none;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s ease;
}

.remove-item:hover {
  background: #e63946;
}

/* === FOOTER DEL CARRITO === */
.cart-footer {
  border-top: 1px solid #eee;
  padding: 15px;
  background: #f9f9f9;
  text-align: center;
}

.cart-footer p {
  font-size: 1rem;
  margin-bottom: 10px;
}

/* 🟢 Botón Finalizar compra */
#checkout {
  background: #0078ff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

#checkout:hover {
  background: #005fd1;
}

/* Fondo oscuro del overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}



/* ======= RESPONSIVE DESIGN ======= */

/* ----- Pantallas hasta 1024px ----- */
@media (max-width: 1024px) {
  header {
    flex-wrap: wrap;
    padding: 10px 5%;
  }

  nav ul {
    gap: 15px;
  }

  .search-bar input {
    width: 150px;
  }
}

/* ----- Pantallas hasta 768px (tablets y celulares grandes) ----- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  /* Menú hamburguesa */
  .menu-toggle {
    display: block;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    margin-left: auto;
  }

  nav {
    display: none;
    width: 100%;
    background: #2a2a2a;
    position: absolute;
    top: 70px;
    left: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
  }

  nav.active {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav ul li {
    width: 100%;
    margin: 10px 0;
  }

  nav ul li a {
    display: block;
    width: 100%;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
  }

  nav ul li a:hover {
    background: #f97316;
  }

  /* Submenús */
  nav ul li ul {
    position: static;
    background: #3a3a3a;
    display: none;
    width: 100%;
    padding-left: 15px;
  }

  nav ul li:hover ul {
    display: block;
  }

  /* Buscador */
  .search-bar {
    width: 100%;
    margin-top: 10px;
  }

  .search-bar input {
    width: 100%;
    border-radius: 6px;
  }

  /* Íconos */
  .icons {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  /* Ajuste del carrito */
  .cart-sidebar {
    width: 90%;
    right: -100%;
  }

  .cart-sidebar.active {
    right: 0;
  }
}

/* ----- Pantallas hasta 480px (celulares chicos) ----- */
@media (max-width: 480px) {
  h2, h3 {
    font-size: 1.2rem;
  }

  .product-card {
    width: 100%;
  }

  .btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .logo img {
    max-width: 150px;
  }

  .cart-count {
    font-size: 12px;
  }
}


/* ===== SUBMENU / DROPDOWNS RESPONSIVE ===== */

/* escritorio: menú secundario horizontal y scroll (tal como ya lo tienes) */
.submenu-container{
  width:100%;
  background:transparent;
  padding:8px 0;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}
.submenu{
  display:flex;
  gap:18px;
  align-items:center;
  padding:0 12px;
  margin:0;
  list-style:none;
  white-space:nowrap;
}
.submenu li {
  display:inline-flex;
  align-items:center;
}
.submenu a{
  display:inline-block;
  padding:8px 12px;
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border-radius:6px;
}
.submenu a:hover{ background: rgba(255,255,255,0.04); color: #ff6600; }

/* chevron para items que tengan sub-lista (estilo visual) */
.submenu .has-children > a::after {
  content: "▾";
  margin-left:8px;
  font-size:0.8em;
  opacity:0.9;
}

/* ===== MOBILE BEHAVIOUR ===== */
@media (max-width: 768px) {
  /* convertir submenu en columna oculta, que se muestra con .submenu-active */
  .submenu {
    display: none;
    position: absolute;
    top: 64px;         /* debajo del header */
    left: 0;
    right: 0;
    background: #2a2a2a;
    flex-direction: column;
    padding: 12px;
    gap: 8px;
    z-index: 1200;
    border-bottom: 1px solid rgba(255,255,255,0.03);
  }
  .submenu.submenu-active { display:flex; }

  /* items con sublista (ej. en sidebar o menú acordeón) */
  .submenu-lista, .submenu .submenu-lista {
    display: none;
    list-style:none;
    padding-left:12px;
    margin-top:6px;
  }
  .submenu .has-children.open > .submenu-lista {
    display: block;
  }

  /* estilo del botón/toggle dentro del submenu */
  .submenu li > a {
    width:100%;
    padding:10px 14px;
    color:#fff;
    font-weight:600;
  }

  /* chevron giratorio cuando está abierto */
  .submenu .has-children > a.toggle-open::after {
    transform: rotate(180deg);
    display:inline-block;
    transition: transform .25s;
  }

  /* mejorar contraste */
  .submenu a { color: #fff; background: transparent; border-radius:8px; }
  .submenu a:hover { background: rgba(255,102,0,0.08); color:#ffb57a; }

  /* si quieres que el submenu tenga scroll vertical si crece mucho */
  .submenu { max-height: calc(100vh - 120px); overflow:auto; -webkit-overflow-scrolling:touch; }
}




/* ===== MENÚ RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Ocultar el menú principal y el secundario al inicio */
  .nav-inline ul,
  .submenu-container ul {
    display: none;
    flex-direction: column;
    background: #111;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  /* Mostrar cuando se active */
  .nav-inline ul.active,
  .submenu-container ul.active {
    display: flex;
  }

  .nav-inline ul li,
  .submenu-container ul li {
    border-bottom: 1px solid #333;
  }

  .nav-inline ul li a,
  .submenu-container ul li a {
    color: #fff;
    display: block;
    padding: 15px;
    text-align: left;
  }

  /* Icono hamburguesa */
  .menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 22px;
    color: #fff;
  }

  /* Asegura que el contenedor del menú se vea bien */
  .nav-inline {
    width: 100%;
  }

  .submenu-container {
    background: #222;
  }
}

/* En escritorio, mantener visible */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .nav-inline ul,
  .submenu-container ul {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .nav-inline ul,
  .submenu-container ul {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-inline ul.active,
  .submenu-container ul.active {
    max-height: 500px; /* suficiente para mostrar los elementos */
  }
}

/* ===== LISTA DE DESEOS ===== */
.wishlist-page {
  padding: 100px 5%;
  background: #f7f7f7;
  min-height: 100vh;
}

.wishlist-page h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
  color: #222;
}

/* Contenedor de las tarjetas */
.wishlist-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
}

/* Cada tarjeta */
.wishlist-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wishlist-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.wishlist-item img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.wishlist-item h3 {
  font-size: 1.1rem;
  color: #222;
  margin-bottom: 5px;
}

.wishlist-item p {
  color: #666;
  margin-bottom: 15px;
}

/* Botón eliminar */
.wishlist-item button {
  background: #ff3b3b;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.wishlist-item button:hover {
  background: #d12b2b;
}

/* Responsive ajustes */
@media (max-width: 600px) {
  .wishlist-item img {
    height: 140px;
  }

  .wishlist-page h1 {
    font-size: 1.6rem;
  }
}


/* ===== MENÚ DESPLEGABLE DE USUARIO ===== */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-btn {
  background: none;
  border: none;
  color: white;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.user-btn i {
  font-size: 14px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  right: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 999;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.user-dropdown a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 10px 15px;
  font-size: 14px;
}

.user-dropdown a:hover {
  background: #ff6600;
  color: white;
}

.user-menu.active .user-dropdown {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}




.precio-original {
  text-decoration: line-through;
  color: #999;
  margin-right: 8px;
}

.precio-descuento {
  color: #e63946;
  font-weight: bold;
}

.etiqueta-descuento {
  background-color: #e63946;
  color: #fff;
  padding: 3px 6px;
  font-size: 0.8rem;
  border-radius: 5px;
  margin-left: 5px;
}


.mensaje-descuento {
  background: #e0ffe0;
  color: #006400;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}




.password-wrapper {
  position: relative;
  width: 100%;
}

#togglePassword {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #333;
  font-size: 18px;
}


/* ================================
   REPUESTOS - TARJETAS PROFESIONALES
===================================*/

.repuestos-page {
    padding: 40px 0;
}

.repuestos-container {
    display: flex;
    gap: 35px;
}

/* PANEL LATERAL */
.filtros-laterales {
    width: 260px;
    background: #111;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #222;
}

.filtros-laterales h3 {
    margin-top: 25px;
    color: #ff8c00;
    font-size: 18px;
}

.filter-group label {
    display: block;
    margin: 6px 0;
    color: #ccc;
    cursor: pointer;
}

.filter-group input {
    margin-right: 8px;
}

/* PRODUCTOS GRID */
.productos-repuestos {
    width: 100%;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

/* TARJETA */
.product-card {
    background: #111;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid #222;
    box-shadow: 0 0 12px rgba(255, 255, 255, .05);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 18px rgba(255, 255, 255, .15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* PRECIO */
.product-card .price {
    color: #ffcc33;
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.product-card .marca {
    color: #bbb;
    font-size: 14px;
    margin-bottom: 12px;
}

/* BOTONES */
.btn-add-cart,
.btn-ver {
    display: inline-block;
    width: 48%;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

.btn-add-cart {
    background: #28a745;
    color: white;
}

.btn-add-cart:hover {
    background: #22cc55;
}

.btn-ver {
    background: #ff9800;
    color: black;
}

.btn-ver:hover {
    background: #ffb84d;
}


.filtros-laterales label {
    color: #fff;           /* texto visible */
    font-size: 16px;
}

.filtros-laterales h3 {
    color: #ff8c00;        /* naranja del estilo del sitio */
    font-weight: bold;
}

.filtros-laterales input[type="checkbox"] {
    accent-color: #ff8c00; /* color del check */
}

.filtros-laterales {
    background: #111;       /* fondo oscuro */
    padding: 20px;
    border-radius: 10px;
}


/* ==== FIJAR VISIBILIDAD DE LAS IMÁGENES ==== */
.product-card img {
    opacity: 1 !important;
    visibility: visible !important;
    transition: none !important;
}

/* ==== CORREGIR FILTROS (texto que no se ve) ==== */
.filtros-laterales {
    background: #111;
    padding: 20px;
    border-radius: 10px;
}

.filtros-laterales h3 {
    color: #ff8c00;
    margin-bottom: 8px;
}

.filtros-laterales label {
    color: #fff;
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    font-size: 15px;
}

.filtros-laterales input[type="checkbox"] {
    accent-color: #ff8c00;
}

.filtros-laterales p,
.filtros-laterales span {
    color: #fff;
}





/* =======================================================================
   OVERRIDES SOLO PARA REPUESTOS (repuestos.php)
   No afecta otras páginas: todo va scopeado bajo .repuestos-page
   ======================================================================= */
.repuestos-page {
    background: #050505;
    padding: 40px 0;
}

.repuestos-page h2 {
    text-align: center;
    font-size: 28px;
    color: #ff8c00;
    margin-bottom: 30px;
}

/* Layout general */
.repuestos-page .repuestos-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 25px;
}

/* ============================
   FILTROS LATERALES (A: fondo oscuro, texto blanco)
   ============================ */
.repuestos-page .filtros-laterales {
    width: 260px;
    background: #111;
    padding: 20px;
    border-radius: 14px;
    border: 1px solid #242424;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
    height: max-content;
}

.repuestos-page .filtros-laterales h3 {
    color: #ff8c00;
    font-size: 18px;
    margin: 15px 0 8px;
}

.repuestos-page .filtros-laterales .filter-group {
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.repuestos-page .filtros-laterales label {
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    margin: 4px 0;
    cursor: pointer;
}

.repuestos-page .filtros-laterales input[type="checkbox"] {
    accent-color: #ff8c00;
}

.repuestos-page #precio {
    width: 100%;
}

.repuestos-page #precio-valor {
    color: #00e676;
    font-weight: 600;
}

/* ============================
   GRID DE PRODUCTOS (B: tarjetas tipo destacados, oscuras)
   ============================ */
.repuestos-page .productos-repuestos {
    width: 100%;
}

.repuestos-page .productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

/* Tarjeta */
.repuestos-page .product-card {
    background: #131313;
    border-radius: 16px;
    padding: 18px;
    border: 1px solid #232323;
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.7);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.repuestos-page .product-card:hover {
    transform: translateY(-6px);
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

/* Imagen estable (sin efectos raros al hacer scroll) */
.repuestos-page .product-card img {
    width: 100%;
    height: 190px;
    object-fit: contain;
    display: block;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Nombre, marca, precio */
.repuestos-page .product-card h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 10px 0 4px;
}

.repuestos-page .product-card .marca {
    color: #cccccc;
    font-size: 13px;
    margin-bottom: 6px;
}

.repuestos-page .product-card .price {
    color: #ffd54f;
    font-size: 19px;
    font-weight: 600;
    margin: 6px 0 4px;
}

/* Estrellas */
.repuestos-page .stars {
    color: #ffeb3b;
    font-size: 13px;
    margin-bottom: 6px;
}

/* ============================
   BOTONES (C: solo en repuestos, no se toca .btn global)
   ============================ */
.repuestos-page .product-card .btn {
    display: block;
    width: 100%;
    border-radius: 10px;
    border: none;
    padding: 9px 10px;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: #ff8c00;
    color: #000;
    transition: background 0.2s ease, transform 0.1s ease;
}

.repuestos-page .product-card .btn:hover {
    background: #ffad33;
    transform: translateY(-1px);
}

/* Botón "Ver Producto" (si lo usas con clase extra) */
.repuestos-page .product-card .btn-ver,
.repuestos-page .product-card .btn-detalle {
    background: #00c853;
    color: #fff;
}

.repuestos-page .product-card .btn-ver:hover,
.repuestos-page .product-card .btn-detalle:hover {
    background: #00e676;
}


/* ===== FIX ESPECIAL SOLO PARA REPUESTOS ===== */
.repuestos-page .product-card img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* ===== BUSCADOR FIX (GRID, súper estable) ===== */
.search-box{
  display: grid !important;
  grid-template-columns: 1fr 42px !important; /* input + lupa */
  align-items: center !important;
  gap: 0 !important;
  position: relative !important;
}

.search-box input{
  width: 100% !important;
  padding: 8px 12px !important;
  border: 2px solid #ff6600 !important;
  border-radius: 25px !important;
  outline: none !important;
  font-size: 15px !important;
}

.search-box .search-btn{
  width: 42px !important;
  height: 42px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: -42px !important;  /* mete la lupa dentro del input */
  z-index: 2 !important;
}

.search-box .search-btn i{
  position: static !important;
  color: #ff6600 !important;
  font-size: 16px !important;
}

/* resultados debajo del buscador */
.search-results{
  grid-column: 1 / -1 !important;
}


#searchResults p,
#searchResults .no-result{
  display:none !important;
}

/* ===== BUSCADOR CON LUPA ===== */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 10px 44px 10px 16px;
  border-radius: 25px;
  border: none;
  outline: none;
}

.search-box .search-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  height: 100%;
  display: flex;
  align-items: center;
}

.search-box .search-btn i {
  color: #ff6600;
  font-size: 16px;
}

/* ===== SWITCH ON / OFF ===== */
.switch-container{
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.switch{
  position: relative;
  display: inline-block;
  width: 56px;
  height: 30px;
}

.switch input{
  opacity: 0;
  width: 0;
  height: 0;
}

.slider{
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #dc2626; /* rojo OFF */
  border-radius: 999px;
  transition: 0.3s;
  box-shadow: inset 0 0 6px rgba(0,0,0,.4);
}

.slider::before{
  content: "";
  position: absolute;
  height: 24px;
  width: 24px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* ON */
.switch input:checked + .slider{
  background-color: #22c55e; /* verde ON */
}

.switch input:checked + .slider::before{
  transform: translateX(26px);
}

.switch-label{
  font-weight: 700;
  color: #111;
}
