/* Barra superior -- fondo */
.angulo-header-main .top-nav {
    background: #424242;
}
/* Barra superior -- texto e iconos*/
.angulo-header-main .top-nav * {
    color: #ffffff!important;
}
/* letra O*/
.col-md-1.text-center {
 display: none;
}
/*imagenes productos lista
.angulo-item-img .bg-image-center{
   background-size: contain!important;
}*/
/*imagenes productos lista*/
.angulo-item-img {
   background-size: contain!important;
}
/*imagenes productos ficha*/
div[style*="background-size: cover;"] {
  background-size: cover!important;
}
/*Oculta el texto de las categorias del home*/
.angulo-widgets .angulo-item-name {
    display: none;
}
/*Menu responsivo - Hambuguesa*/
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(0, 0, 0)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/*==============HEADER==============
====================================*/

/*================= PREHEADER ====================*/
.top-nav {
  background-color: #F5F5F5 !important;
  width: 100%;
}

/* Texto general */
.top-nav,
.top-nav * {
  color: #0D2642 !important;
}

/* Enlaces (todos los estados) */
.top-nav a,
.top-nav a:link,
.top-nav a:visited,
.top-nav a:hover,
.top-nav a:active,
.top-nav a:focus {
  color: #0D2642 !important;
  text-decoration: none !important;
  font-size: 12px !important;
}

/* Íconos Font Awesome (todas las variantes) */
.top-nav i,
.top-nav .fa,
.top-nav .fas,
.top-nav .far,
.top-nav .fab,
.top-nav [class^="fa"],
.top-nav [class*=" fa-"],
.top-nav .fa::before,
.top-nav .fas::before,
.top-nav .far::before,
.top-nav .fab::before {
  color: #0D2642 !important;
}

/* Íconos en SVG */
.top-nav svg {
  color: #0D2642 !important;
  fill: #0D2642 !important;
  stroke: #0D2642 !important;
}

/* Ajuste de padding (opcional) */
.top-nav .container {
  padding-top: 1px;
  padding-bottom: 1px;
}
/*================= FIN PREHEADER ====================*/


/*================= NAV MENU ====================*/
/* =========================
   NAVBAR ULTRA-COMPACTA
   (solo para .navbar-fondo)
   ========================= */
.navbar-fondo{
  /* Escalas agresivas para desktop */
  --padY: 2px;            /* padding vertical navbar */
  --padX: 8px;            /* padding horizontal container */
  --linkY: .22rem;        /* padding vertical de links */
  --linkX: .52rem;        /* padding horizontal de links */
  --linkSize: .82rem;     /* tamaño de links */
  --iconSize: 1.05rem;    /* reemplaza .fa-2x */
  --badge: 16px;          /* badge del carrito */
}

/* Fondo y compactación general */
.navbar-fondo{
  padding-top: var(--padY) !important;
  padding-bottom: var(--padY) !important;
  background: #0D2642 !important;          /* azul del tema, compacto */
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-fondo .container{
  padding-left: var(--padX) !important;
  padding-right: var(--padX) !important;
}

/* Quita cualquier altura extra accidental */
.navbar-fondo,
.navbar-fondo *{
  line-height: 1.1;
}

/* Menú: tipografía y rellenos mínimos */
.navbar-fondo .navbar-nav{
  align-items: center;
}
.navbar-fondo .navbar-nav .nav-item{
  margin: 0 .55rem !important;
}
.navbar-fondo .navbar-nav .nav-link{
  font-size: var(--linkSize) !important;
  padding: var(--linkY) var(--linkX) !important;
  font-weight: 500;
  letter-spacing: .01em;
  opacity: .95;
  transition: opacity .2s ease;
}
.navbar-fondo .navbar-nav .nav-link:hover,
.navbar-fondo .navbar-nav .nav-link:focus{
  opacity: 1;
}

/* Íconos: anula .fa-2x para que no estiren la barra */
.navbar-fondo .fa-2x{
  font-size: var(--iconSize) !important;
  line-height: 1 !important;
}

/* Bloques derechos (login, carrito, totales) aún más compactos */
.navbar-fondo .d-lg-flex .p-2{
  padding: .1rem !important;   /* MUY chico para bajar altura total */
}

/* Garantiza VISIBILIDAD del texto "Ingresá o registrate" */
.navbar-fondo .item-cart-menu{
  color: #fff !important;
}
.navbar-fondo .item-cart-menu span:first-child{
  display: inline-block !important;
  width: auto !important;          /* anula width:92px inline si molesta */
  min-width: 70px;
  margin-right: .35rem;
  font-size: .78rem !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  color: #fff !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Carrito y totales */
.navbar-fondo .item-cart-menu{ position: relative; }
.navbar-fondo .cart-items-badge{
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: var(--badge);
  height: var(--badge);
  padding: 0 4px;
  border-radius: 999px;
  font-size: .7rem;
  line-height: var(--badge);
  text-align: center;
  background: #00E0B2;
  color: #0D2642;
}
.navbar-fondo .text-order{
  font-size: .72rem !important;
  line-height: 1.1 !important;
  margin-left: .25rem;
  color: #fff !important;
}
.navbar-fondo .cart-items-total{
  font-weight: 600;
}

/* Dropdowns: densos y sin aportar altura extra */
.navbar-fondo .dropdown-menu{
  padding: .25rem 0 !important;
  border-radius: 10px !important;
}
.navbar-fondo .dropdown-menu a,
.navbar-fondo .dropdown-menu .dropdown-item{
  font-size: .85rem !important;
  padding: .4rem .75rem !important;
}

/* ------- Desktop: lleva la altura al mínimo posible ------- */
@media (min-width: 992px){
  .navbar-fondo{
    --padY: 1px;              /* aún menos alto en desktop */
    --linkY: .18rem;
    --linkX: .48rem;
    --linkSize: .8rem;
    --iconSize: 1rem;
  }
}

/* ------- Mobile: mantiene targets táctiles usables ------- */
@media (max-width: 991.98px){
  .navbar-fondo{
    --padY: 8px;              /* no ultra-compactar en móvil */
    --linkY: .44rem;
    --linkX: .66rem;
    --linkSize: .95rem;
    --iconSize: 1.25rem;
  }
}


/* Oculta el texto "Ingresá o registrate" sin afectar el ícono */
.navbar-fondo a.item-cart-menu .d-flex > span:first-child{
  display: none !important;
}

/* Fallback por si cambia el inline style del ancho */
.navbar-fondo a.item-cart-menu span[style*="width: 92px"]{
  display: none !important;
}


/* Separar el círculo/numero del ícono del carrito */
.navbar-fondo .item-cart-menu{ position: relative; }

.navbar-fondo .cart-items-badge{
  top: -10px !important;      /* más arriba */
  right: -12px !important;    /* más a la derecha (fuera del ícono) */
  z-index: 2;
  box-shadow: 0 0 0 2px #0D2642;  /* halo del color del header para despegarlo */
}

/* Desktop: badge apenas más chico = menos solapamiento */
@media (min-width: 992px){
  .navbar-fondo{ --badge: 14px; }  /* si prefieres mantener 16px, quita esta línea */
}

/* Mobile: mueve un poco más por densidad */
@media (max-width: 991.98px){
  .navbar-fondo .cart-items-badge{
    top: -12px !important;
    right: -10px !important;
  }
}

/* Ocultar texto "Pedidos" y el importe */
.navbar-fondo .text-order,
.navbar-fondo .text-order .cart-items-total{
  display: none !important;
}


/* === Engrosar la barra (override) === */
.navbar-fondo{
  --padY: 6px;         /* antes 1–2px: sube la altura general */
  --linkY: .36rem;     /* antes .18–.26rem: más alto cada link */
  --iconSize: 1.18rem; /* opcional: íconos un poco más grandes */
}

/* Altura mínima por si algún padding queda corto (solo desktop) */
@media (min-width: 992px){
  .navbar-fondo{ min-height: 46px; }
}

/* Si el subrayado te quedó “muy finito”, engrosarlo: */
.navbar-fondo .navbar-nav .nav-link::after{
  height: 3px;         /* antes 2px */
  bottom: .22rem;      /* ajusta la posición si lo ves muy pegado */
}

/* Si el badge del carrito se movió con el nuevo alto, reajústalo: */
.navbar-fondo .cart-items-badge{
  top: -9px !important;   /* prueba -8 a -12 */
  right: -11px !important;/* prueba -8 a -14 */
}


/*================= FIN NAV MENU ====================*/

/*==============FIN HEADER==============
====================================*/

/* =========================================================
   PRODUCT DETAIL • Modern UI makeover (scoped)
   Solo CSS — no HTML changes
   ========================================================= */
#sectionDetalleProductos {
  --ui-bg: #ffffff;
  --ui-soft: #f6f7f9;
  --ui-soft-2: #eef0f4;
  --ui-ink: #1e2330;
  --ui-muted: #6b7280;
  --ui-primary: #0D2642;           /* color de acción (puedes cambiarlo) */
  --ui-primary-2: #1B4F82;         /* hover */
  --ui-success: #16a34a;
  --ui-radius: 14px;
  --ui-shadow: 0 8px 24px rgba(16,24,40,.12);
  --ui-shadow-soft: 0 4px 14px rgba(16,24,40,.10);
  --ui-gap: 18px;
  --ui-tr: .25s ease;
  background: var(--ui-bg);
  color: var(--ui-ink);
}

/* ---------- Contenedor general ---------- */
#sectionDetalleProductos .container {
  border-top: 0 !important;
  padding-top: 8px;
}

/* ---------- Título del producto ---------- */
#sectionDetalleProductos .container-product-description_info h3 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.2 !important;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 8px !important;
}

/* Código / meta */
#sectionDetalleProductos .product-view-code {
  color: var(--ui-muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Imagen principal en CONTAIN ---------- */
#sectionDetalleProductos .containerImagePrincipal a > div {
  /* el HTML trae inline cover; forzamos contain */
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--ui-soft);
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow-soft);
  height: 458px !important; /* respeta la altura original */
}

/* Fancybox hover sutil */
#sectionDetalleProductos .containerImagePrincipal .fancyboxPrincipal {
  display: block;
  border-radius: var(--ui-radius);
  overflow: hidden;
}
#sectionDetalleProductos .containerImagePrincipal .fancyboxPrincipal:hover > div {
  transform: scale(1.01);
  transition: transform var(--ui-tr);
}

/* ---------- Columna derecha: tarjeta de detalle ---------- */
#sectionDetalleProductos .containerDetailProductCard {
  background: #fff;
  border-radius: var(--ui-radius);
  box-shadow: var(--ui-shadow);
  padding: clamp(16px, 2vw, 22px);
  gap: 12px;
}

/* Separadores más finos y modernos */
#sectionDetalleProductos hr {
  border: none;
  height: 1px;
  background: var(--ui-soft-2);
  margin: 20px 0;
  border-radius: 999px;
}

/* ---------- Stock + cantidad ---------- */
#sectionDetalleProductos .product-stock-box {
  background: var(--ui-soft);
  border-radius: var(--ui-radius);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}

#sectionDetalleProductos .product-view-stock {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: var(--ui-muted);
}
#sectionDetalleProductos .product-view-stock .textStock {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
  color: var(--ui-success);
  background: #e8f7ee;
  padding: 2px 10px;
  border-radius: 999px;
}

/* Campo cantidad */
#sectionDetalleProductos input[data-input-product="qty"] {
  border-radius: 10px;
  border: 1px solid #d9dde4;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  transition: border-color var(--ui-tr), box-shadow var(--ui-tr);
  height: 44px;
  padding: 0 12px;
  font-size: 15px;
}
#sectionDetalleProductos input[data-input-product="qty"]:focus {
  border-color: var(--ui-primary);
  box-shadow: 0 0 0 4px rgba(114,64,130,.12);
  outline: none;
}

/* ---------- Botón principal: Añadir al carrito ---------- */
#sectionDetalleProductos #btnAddCart,
#sectionDetalleProductos .angulo-item-button {
  background: var(--ui-primary) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700;
  letter-spacing: .2px;
  border-radius: 12px !important;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(114,64,130,.28);
  transition: transform var(--ui-tr), box-shadow var(--ui-tr), background var(--ui-tr);
  text-transform: uppercase;
}
#sectionDetalleProductos #btnAddCart:hover,
#sectionDetalleProductos .angulo-item-button:hover {
  background: var(--ui-primary-2) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(114,64,130,.32);
}
#sectionDetalleProductos #btnAddCart:active,
#sectionDetalleProductos .angulo-item-button:active {
  transform: translateY(0);
}

/* ---------- Modales (promos bancarias) ---------- */
#sectionDetalleProductos .modal-header-primary {
  background: var(--ui-primary);
  color: #fff;
}
#sectionDetalleProductos .modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: var(--ui-shadow);
}

/* ---------- Texto de especificaciones (descripción bajo la ficha) ---------- */
#sectionDetalleProductos > .container > form > div > hr + div {
  background: var(--ui-soft);
  padding: 14px 16px;
  border-radius: var(--ui-radius);
  color: var(--ui-ink);
  font-size: 15px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(0,0,0,.03);
}

/* Nombre del producto relacionado */
#sectionDetalleProductos .relatedProductsContainer .angulo-item-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ui-ink);
  line-height: 1.35;
  margin: 10px 8px 8px;
  min-height: 40px;
}

/* Espaciado del título “Productos relacionados” */
#sectionDetalleProductos .titleRelatedProducts {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  letter-spacing: .2px;
  margin: 8px 0 16px 0;
}

/* ---------- Mensajes de error ---------- */
#sectionDetalleProductos .message-error {
  background: #fff4f4;
  color: #b42318;
  border: 1px solid #ffd4d4;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  display: none; /* el sistema lo mostrará cuando corresponda */
}

/* ---------- Tipografía y microdetalles ---------- */
#sectionDetalleProductos .text-secondary,
#sectionDetalleProductos label.font-weight-bold.text-secondary {
  color: var(--ui-muted) !important;
}
#sectionDetalleProductos .discountPricePaymentPesonality {
  color: var(--ui-muted);
  font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  #sectionDetalleProductos .containerDetailProductCard {
    box-shadow: none;
    padding: 12px;
  }
  #sectionDetalleProductos .containerImagePrincipal a > div {
    height: 360px !important;
  }
}
@media (max-width: 575.98px) {
  #sectionDetalleProductos .containerImagePrincipal a > div {
    height: 300px !important;
  }
  #sectionDetalleProductos .product-stock-box { padding: 12px; }
  #sectionDetalleProductos #btnAddCart { height: 46px; }
}

/* ---------- Accesibilidad / foco ---------- */
#sectionDetalleProductos a:focus,
#sectionDetalleProductos button:focus,
#sectionDetalleProductos input:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(114,64,130,.18) !important;
  border-color: var(--ui-primary) !important;
}



