/* =============================================
   Merchandising – Estilos + Responsive completo
   ============================================= */

/* ---- Reset base ---- */
*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }
img { max-width: 100%; height: auto; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  min-height: 70px;
  overflow: visible !important;
}
.navbar .navbar-brand img {
  position: relative;
  margin-top: -45px;
  margin-bottom: -45px;
}

/* En móvil el logo no sobresale para no tapar el menú */
@media (max-width: 991px) {
  .navbar .navbar-brand img {
    height: 60px !important;
    margin-top: 0;
    margin-bottom: 0;
  }
  .navbar { min-height: 60px; }
}

/* =============================================
   HERO / BANNER
   ============================================= */
.hero-section {
  background: #f1f3f5;
  overflow: hidden;
}

/* Banner split: 30% panel info + 70% imagen */
.hero-split {
  display: flex;
  width: 100%;
  height: 400px;
}

/* Panel izquierdo */
.hero-panel {
  width: 30%;
  height: 100%;
  background: #1a1a2e;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px 25px;
  border: 3px solid #cbd5e1;
}
.hero-panel h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); }
.hero-panel-contenido { font-size: 0.9rem; line-height: 1.6; }
.hero-panel-contenido b,
.hero-panel-contenido strong { color: inherit; }

/* Botones de servicios en el panel */
.hero-panel-botones {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}
.hero-btn-servicio {
  display: block;
  padding: 8px 14px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: opacity .2s, transform .15s;
  text-align: center;
}
.hero-btn-servicio:hover {
  opacity: .85;
  transform: translateX(4px);
  color: #fff;
}

/* Banner derecho */
.hero-banner-side {
  width: 70%;
  height: 100%;
  overflow: hidden;
  border: 3px solid #cbd5e1;
}
.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Responsive */
@media (max-width: 767px) {
  .hero-split { height: auto; }
  .hero-panel { display: none; }
  .hero-banner-side { width: 100%; height: 220px; border: none; }
}
@media (max-width: 480px) {
  .hero-banner-side { height: 180px; }
}
.hero-logo {
  max-width: 210px;
  width: 70%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.15));
}

/* =============================================
   CATEGORÍAS
   ============================================= */
.categoria-card {
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #cbd5e1 !important;
}
.categoria-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.15) !important;
  border-color: #0d6efd !important;
}
.categoria-img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}
.categoria-icon-wrap {
  height: 180px;
  background: #f0f4ff;
}

@media (max-width: 575px) {
  .categoria-img,
  .categoria-icon-wrap { height: 140px; }
}

/* =============================================
   CABECERA CATEGORÍA
   ============================================= */
.categoria-header {
  background: linear-gradient(135deg, #0d1117 0%, #1c3a5f 100%);
  padding: 2rem 0;
}
.categoria-header h1 { font-size: clamp(1.4rem, 4vw, 2.2rem); }

@media (max-width: 575px) {
  .categoria-header .display-4 { font-size: 2rem; }
}

/* =============================================
   TARJETAS PRODUCTOS (listado)
   ============================================= */
.producto-card {
  transition: transform .2s ease, box-shadow .2s ease;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 2px solid #e2e8f0 !important;
}
.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
  border-color: #0d6efd !important;
}
.producto-img-wrap {
  background: #f8f9fa;
  border-bottom: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  overflow: hidden;
}
.producto-img {
  max-height: 210px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: 8px;
}
.producto-placeholder { height: 220px; }

@media (max-width: 575px) {
  .producto-img-wrap { height: 180px; }
  .producto-img      { max-height: 170px; }
  .producto-placeholder { height: 180px; }
}

/* =============================================
   DETALLE PRODUCTO – galería
   ============================================= */
.galeria-marco {
  position: relative;
  border: 3px solid #0d6efd;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(13,110,253,.18);
  background: #f8f9fa;
}
.producto-detalle-img {
  width: 100%;
  height: 400px;
  object-fit: contain;
  background: #f8f9fa;
  padding: 10px;
}
.producto-placeholder-lg { height: 400px; }

/* Flechas grandes y siempre visibles */
.galeria-flecha {
  width: 44px;
  height: 44px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13,110,253,.85) !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  position: absolute;
  z-index: 10;
}
.galeria-flecha.carousel-control-prev { left: 10px; }
.galeria-flecha.carousel-control-next { right: 10px; }
.galeria-flecha i { font-size: 1.4rem; color: #fff; line-height: 1; }
.galeria-flecha:hover { background: #0d6efd !important; }

.galeria-indicadores { bottom: 8px; }
.galeria-indicadores button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background-color: #0d6efd;
  opacity: .5;
}
.galeria-indicadores button.active { opacity: 1; }

@media (max-width: 767px) {
  .producto-detalle-img   { height: 280px; }
  .producto-placeholder-lg{ height: 280px; }
  .galeria-flecha         { width: 36px; height: 36px; }
  .galeria-flecha i       { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .producto-detalle-img   { height: 220px; }
  .producto-placeholder-lg{ height: 220px; }
}

/* =============================================
   DETALLE PRODUCTO – texto
   ============================================= */
.detalle-contenido {
  color: #444;
  line-height: 1.8;
  font-size: 0.97rem;
}
.detalle-contenido b,
.detalle-contenido strong { color: #1a1a2e; font-size: 1rem; }
.detalle-contenido p      { margin-bottom: 0.8rem; }
.detalle-contenido ul,
.detalle-contenido ol     { margin-bottom: 0.8rem; padding-left: 1.4rem; }
.detalle-contenido li     { margin-bottom: 0.3rem; }
.detalle-contenido hr     { border: none; border-top: 1px solid #dee2e6; margin: 1rem 0; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: #f8f9fa !important; }

/* =============================================
   WHATSAPP FLOTANTE
   ============================================= */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.5);
  z-index: 9999;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.7);
  color: #fff;
}
@media (max-width: 575px) {
  .whatsapp-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; font-size: 1.6rem; }
}
