@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;400;600;700;800;900&display=swap');

:root{
  --accent:#f58220;
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e6e6e6;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:"Overpass", sans-serif;
  background:#f3f4f6;
  color:var(--text);
}

/* HERO */
.catalogo-hero{
  position:relative;
  min-height:300px;
  display:flex;
  align-items:flex-end;
  padding:140px 24px 40px;
  background:url('../img/slider/hero-carmotors.jpeg') top center / cover no-repeat;
}

.catalogo-hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,.55));
}

.catalogo-hero-content{
  position:relative;
  z-index:2;
  max-width:1200px;
  width:100%;
  margin:0 auto;
  color:#fff;
}

.catalogo-kicker{
  display:inline-block;
  margin-bottom:10px;
  font-size:13px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#f58220;
}

.catalogo-hero h1{
  margin:0 0 10px;
  font-size:42px;
}

.catalogo-hero p{
  margin:0;
  font-size:16px;
  color:#e5e7eb;
}

/* LAYOUT */
.catalogo-page{
  padding:34px 24px 60px;
}

.catalogo-container{
  max-width:1400px;
  margin:0 auto;
  display:grid;
  grid-template-columns:280px 1fr;
  gap:28px;
}

.catalogo-sidebar{
  position:sticky;
  top:120px;
  align-self:start;
}

.sidebar-box{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:14px;
  padding:22px;
}

.sidebar-box h3{
  margin:0 0 18px;
  font-size:20px;
}

.sidebar-links{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.sidebar-links a{
  display:block;
  padding:12px 14px;
  border-radius:10px;
  text-decoration:none;
  color:#111827;
  font-weight:800;
  background:#f3f4f6;
  transition:.2s ease;
}

.sidebar-links a:hover{
  background:#e5e7eb;
}

.sidebar-links a.active{
  background:#f58220;
  color:#fff;
}

/* TOPBAR */
.catalogo-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:22px;
}

.catalogo-topbar h2{
  margin:0;
  font-size:28px;
}

.catalogo-topbar p{
  margin:0;
  color:#6b7280;
  font-weight:700;
}

/* GRID */
.catalogo-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:20px;
}

.catalogo-empty{
  margin:0;
  font-size:16px;
  color:#6b7280;
}

/* CARD */
.catalogo-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:0;
  overflow:hidden;
  transition:.2s ease;
}

.catalogo-card:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(0,0,0,.08);
}

.catalogo-card-img{
  position:relative;
  display:block;
  aspect-ratio:16 / 10;
  overflow:hidden;
  background:#eee;
}

.catalogo-card-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.badge-offer{
  position:absolute;
  left:14px;
  top:14px;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:8px;
  background:#f58220;
  color:#fff;
  font-weight:900;
}

.badge-offer .tag{
  background:#111;
  color:#fff;
  padding:2px 6px;
  border-radius:4px;
  font-size:12px;
}

.catalogo-card-body{
  display:flex;
  flex-direction:column;
  padding:16px 16px 18px;
  flex:1;
}

.brand{
  color:var(--accent);
  font-weight:900;
  margin-bottom:8px;
  font-size:14px;
  text-transform:uppercase;
}

.catalogo-card-title{
  text-decoration:none;
  color:#111827;
  font-size:18px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:14px;
  min-height:44px;
}

.catalogo-card-title:hover{
  color:var(--accent);
}

.price-row{
  display:flex;
  align-items:flex-end;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.price-row .old{
  color:#dc2626;
  text-decoration:line-through;
  font-weight:700;
}

.price-row .new{
  color:#1f2937;
  font-size:20px;
  font-weight:900;
}

.meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-bottom:16px;
}

.meta span{
  display:block;
  font-size:12px;
  color:#9ca3af;
  font-weight:800;
  margin-bottom:2px;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.meta div{
  font-size:14px;
  font-weight:800;
  color:#374151;
}

.card-whatsapp{
  margin-top:auto;
}

.btn-wsp{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  width:100%;
  border-radius:8px;
  text-decoration:none;
  background:#1f9254;
  color:#fff;
  font-size:14px;
  font-weight:800;
  transition:.2s ease;
}

.btn-wsp:hover{
  background:#187546;
}

/* RESPONSIVE */
@media (max-width: 1180px){
  .catalogo-grid{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 900px){
  .catalogo-container{
    grid-template-columns:1fr;
  }

  .catalogo-sidebar{
    position:static;
  }

  .catalogo-topbar{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width: 640px){
  .catalogo-hero{
    min-height:240px;
    padding:120px 18px 30px;
  }

  .catalogo-hero h1{
    font-size:32px;
  }

  .catalogo-page{
    padding:24px 18px 50px;
  }

  .catalogo-grid{
    grid-template-columns:1fr;
  }

  .catalogo-card-title{
    min-height:auto;
  }
}
/* =========================
   BADGES ESTADO (PRO)
========================= */

.badge-sold{
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  box-shadow:0 10px 22px rgba(34,197,94,.28);
}

.badge-sold .tag{
  background:#0f172a;
  color:#fff;
}

.badge-reserved{
  background:linear-gradient(135deg,#f59e0b,#facc15);
  color:#fff;
  box-shadow:0 10px 22px rgba(245,158,11,.28);
}

.badge-reserved .tag{
  background:#111;
  color:#fff;
}

/* =========================
   BOTÓN DESACTIVADO
========================= */

.btn-disabled{
  background:#d1d5db !important;
  color:#6b7280 !important;
  cursor:not-allowed;
  pointer-events:none;
  box-shadow:none;
}

/* =========================
   EFECTO MÁS PRO EN CARD
========================= */

.catalogo-card{
  border-radius:14px; /* antes era 0 */
}

.catalogo-card-img img{
  transition:transform .35s ease;
}

.catalogo-card:hover .catalogo-card-img img{
  transform:scale(1.05);
}