/* ============================================================
   PUBLIC.CSS — Estilos del sitio público
   IAM Repuestos
   ============================================================ */

/* ---- Navbar pública ---- */
.navbar-public {
  background: var(--navy);
  padding: .8rem 0;
  box-shadow: 0 2px 12px rgba(10,25,47,.25);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-public .nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.navbar-public .nav-brand img { height: 40px; }
.navbar-public .nav-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}
.navbar-public .nav-brand-name span { color: var(--orange); }

.navbar-public .nav-link-item {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: .4rem .8rem !important;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.navbar-public .nav-link-item:hover,
.navbar-public .nav-link-item.active {
  color: var(--white) !important;
  background: rgba(255,107,53,.2);
}

.navbar-public .search-public input {
  background: rgba(255,255,255,.1);
  border: 1.5px solid rgba(255,255,255,.2);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .4rem 2.5rem .4rem .9rem;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  width: 240px;
  transition: all .2s;
}
.navbar-public .search-public input::placeholder { color: rgba(255,255,255,.5); }
.navbar-public .search-public input:focus {
  outline: none;
  background: rgba(255,255,255,.15);
  border-color: var(--orange);
  width: 280px;
  color: var(--white);
}
.navbar-public .search-public .btn-search {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .9rem;
  transition: color .2s;
}
.navbar-public .search-public .btn-search:hover { color: var(--orange); }

.navbar-public .btn-login-nav {
  background: var(--orange);
  color: var(--white) !important;
  border-radius: var(--radius-sm);
  padding: .4rem 1rem !important;
  font-weight: 600;
  font-size: .85rem;
  transition: background .2s, transform .15s;
}
.navbar-public .btn-login-nav:hover {
  background: var(--orange-dark) !important;
  transform: translateY(-1px);
}

/* ---- Hero banner ---- */
.hero-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a3a6e 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,229,255,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,53,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-banner .hero-tag {
  display: inline-block;
  background: rgba(255,107,53,.15);
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 20px;
  padding: .25rem .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-banner h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.hero-banner h1 span { color: var(--orange); }
.hero-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  max-width: 500px;
  margin-bottom: 2rem;
}
.hero-banner .hero-img {
  max-height: 340px;
  filter: drop-shadow(0 20px 40px rgba(0,229,255,.15));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.hero-stat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .5rem 1rem;
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  margin-right: .75rem;
  margin-top: .5rem;
}
.hero-stat i { color: var(--cyan); }

/* ---- Sección de productos ---- */
.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  position: relative;
  display: inline-block;
  margin-bottom: .4rem;
}
.section-title::after {
  content: '';
  display: block;
  height: 4px;
  width: 50px;
  background: var(--orange);
  border-radius: 2px;
  margin-top: .4rem;
}

/* ---- Tarjeta de producto público ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,.05);
  transition: box-shadow .25s, transform .25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}
.product-card .product-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  height: 200px;
}
.product-card .product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-card .no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: .85rem;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ebef 100%);
}
.product-card .no-img i { font-size: 2.5rem; opacity: .3; }
.product-card .product-badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
}
.product-card .card-body-custom {
  padding: 1.1rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .product-category {
  font-size: .75rem;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.product-card .product-name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
  line-height: 1.3;
  flex: 1;
}
.product-card .product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: .75rem;
}
.product-card .btn-ver-mas {
  display: block;
  text-align: center;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: .5rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.product-card .btn-ver-mas:hover {
  background: var(--orange);
  transform: translateY(-1px);
}

/* ---- Página de detalle de producto ---- */
.product-detail-main-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 480px;
  border: 1px solid rgba(0,0,0,.06);
}
.product-detail-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: border-color .2s, transform .15s, box-shadow .15s;
}
.product-detail-thumb:hover,
.product-detail-thumb.active {
  border-color: var(--orange);
  transform: scale(1.05);
  box-shadow: var(--shadow-sm);
}
.no-img-box {
  width: 100%;
  height: 380px;
  background: linear-gradient(135deg, #f0f2f5 0%, #e8ebef 100%);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.no-img-box i { font-size: 4rem; opacity: .25; margin-bottom: .5rem; }

.product-sku {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.product-detail-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: .75rem;
}
.product-detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}
.price-old {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: .5rem;
}

/* ---- Tabs Bootstrap override ---- */
.nav-tabs-premium {
  border-bottom: 2px solid #e9ecef;
  margin-bottom: 1.25rem;
}
.nav-tabs-premium .nav-link {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-muted);
  border: none;
  border-bottom: 3px solid transparent;
  padding: .6rem 1.2rem;
  border-radius: 0;
  transition: color .2s, border-color .2s;
  margin-bottom: -2px;
}
.nav-tabs-premium .nav-link:hover { color: var(--navy); }
.nav-tabs-premium .nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--orange);
  background: transparent;
}

/* ---- Página de contacto ---- */
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--orange);
  height: 100%;
}
.contact-info-card .contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,107,53,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ---- Footer ---- */
.footer-public {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.footer-public h6 {
  color: var(--white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .82rem;
  margin-bottom: 1rem;
}
.footer-public p,
.footer-public a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  line-height: 1.8;
}
.footer-public a:hover { color: var(--orange); }
.footer-public .footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0 1.5rem;
}
.footer-public .footer-bottom {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-public .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  transition: background .2s, color .2s;
  margin-right: .4rem;
  text-decoration: none;
}
.footer-public .social-link:hover {
  background: var(--orange);
  color: var(--white);
}
