/* ====== Custom Bootstrap Overrides ====== */

/* Colores personalizados */
:root {
  --bs-primary:   #13365C;   /* Azul oscuro */
  --bs-secondary: #6C757D;   /* Gris */
  --bs-success:   #006699;   /* Azul intermedio */
  --bs-info:      #F8F9FA;   /* Gris claro */
  --bs-warning:   #FFF3EB;   /* Crema */
  --bs-danger:    #000033;   /* Azul casi negro */
  --bs-light:     #FFF9F4;   /* Blanco cálido */
  --bs-dark:      #13365C;   /* Reutilizo el azul oscuro */
  --bs-white:     #ffffff;   /* Blanco puro */
  --bs-primary-rgb:19,54,92;
  --bs-secondary-rgb:0,102,153;
  --bs-body-color-rgb:#13365C;
}


/*
WhatsApp (#25D366)

bg-[#006699] bg-[]


*/


.bg-secondary {
   background: #6C757D;   
}


.bg-success {
   background: #006699;   
}

.bg-whatsapp {
   background:#25D366;
}


.btn-outline-primary {
    --bs-btn-color: #006699;
    --bs-btn-border-color: #006699;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006699;
    --bs-btn-hover-border-color: #006699;
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #006699;
    --bs-btn-active-border-color: #006699;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #006699;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #006699;
    --bs-gradient: none;

    --bs-border-radius: 0 !important;
    --bs-border-radius: 0 !important;
    --bs-border-radius-sm: 0 !important;
    --bs-border-radius-lg: 0 !important;

}

.card {

    --bs-card-border-radius: 0 !important;
    --bs-card-inner-border-radius: 0 !important;
}



/* Para botones */
.btn {
  border-radius: 0 !important;
}

/* Inputs, selects, textareas */
.form-control,
.form-select {
  border-radius: 0 !important;
}

/* Checkboxes y radios */
.form-check-input {
  border-radius: 0 !important;
}

/* Toasts, alerts, badges y otros */
.alert,
.badge,
.toast,
.card,
.dropdown-menu,
.modal-content {
  border-radius: 0 !important;
}


/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 60px;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.whatsapp-btn:hover {
  background: #128C7E;
  transform: scale(1.1);
}





.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #13365C;
    --bs-btn-border-color: #0d6efd;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #006699;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #006699;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #0d6efd;
    --bs-btn-disabled-border-color: #0d6efd;
}


/*----------------------------------------------*/


/* Estilo para el off-canvas */
.offcanvas-start {
    width: 280px;
}

.offcanvas .nav-link {
    padding: 12px 16px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
}

.offcanvas .nav-link i {
    width: 24px;
    text-align: center;
    color: #ccc;
}

/* Ajuste en móviles para el header */
.navbar-toggler {
    border-color: #ddd;
}


/*
.btn-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 6px 10px;
    font-size: 1.1rem;
    border: none;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
}

*/






.cursorlink {
    cursor: pointer;
}



.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}






/* Product Cards */

.product-detail .product-card {
  background: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-detail .product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-detail .product-card img {
  width: 100%;
  height: 200px; /* Ajusta según tus imágenes */
  object-fit: cover;
}

.product-detail .card-body {
    flex: 1 1 auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.product-detail .card-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-detail .card-text {
    font-size: 0.9rem;
    color: var(--gray-color);
    flex-grow: 1;
}

.product-detail .product-price {
  margin: 0.5rem 0;
}

.product-detail .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.product-detail .price-old, .price-old {
  font-size: 1rem;
  color: var(--gray-color);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.product-detail .price-new, .price-new {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--danger-color); /* Color para ofertas */
}







/* Estilos para móviles - Productos destacados */
@media (max-width: 767px) {
  /* Reducir márgenes entre productos */
  .grid-cols-2 {
    gap: 8px !important;
  }
  
  /* Reducir márgenes laterales del contenedor */
  .max-w-7xl.mx-auto.px-4 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reducir tamaño del texto del nombre del producto */
  .group .text-lg {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
  
  /* Reducir tamaño del precio */
  .text-2xl {
    font-size: 18px !important;
  }
  
  /* Reducir tamaño del precio de oferta */
  .text-sm {
    font-size: 12px !important;
  }
  
  /* Ajustar altura de imagen */
  .h-64 {
    height: 140px !important;
  }
  
  /* Reducir padding interno de las tarjetas */
  .p-6 {
    padding: 12px !important;
  }
  
  /* Agregar descripción corta del producto */
  .product-short-description {
    display: block;
    font-size: 11px;
    color: #6b7280;
    line-height: 1.2;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

