/* revisar banner-carrousel */
/* Contenedor principal del carousel del banner */
.banner-container {
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container img {
    object-fit: cover;
    object-position: center;
    display: block;
    width: 100%;
    height: 100%;
}
.banner-container *{
  max-width: 100vW!important;
  height: auto!important;
}
.banner-container img{
object-fit: cover!important;
}
/* CONTENEDOR: Banner Carrousel */
.owl-productos-banner {
    width: 100%;
    position: relative;
    overflow: hidden;
    display: block;
}

/* CRÍTICO: Contenedor interno de Owl Carousel - evita que elementos se pongan uno debajo de otro */
.owl-productos-banner .owl-stage-outer {
    width: 100%;
    margin: 0 !important;
    padding: 0;
    display: block;
}

/* Stage (contenedor real de items en fila) */
.owl-productos-banner .owl-stage {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    position: relative;
    transition: all 0.25s ease 0s;
}

/* Slide wrapper */
.owl-productos-banner .slide-owl-wrap {
    position: relative;
    width: 100%;
    height: auto;
}

/* Carousel item */
.owl-productos-banner .carousel-item {
    width: 100%;
    height: 100%;
    position: relative;
}

/* CRÍTICO: Owl item - evita apilamiento vertical */
.owl-productos-banner .owl-item {
    height: 390px;
    width: 100%;
    flex-shrink: 0;
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner image - responsive aspect ratio */
.banner-carrousel {
    height: 150px;
    max-height: 150px;
    min-height: 150px;
    overflow: hidden;
    display: block;
    width: 100%;
}

/* Banner image styling */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    background-color: #f5f5f5;
}

/* Responsive: Desktop */
@media only screen and (min-width: 450px) {
    .banner-carrousel {
        height: 390px;
        max-height: 390px;
        min-height: 390px;
    }
}

#container-vistos{
  max-height: 662.34px;
  height: 662.34px;
  overflow: hidden;
}

.marcajes-recomendados{
  max-height: 400px;
  height: 400px;
  min-height: 400px;
  overflow: hidden;
}
@media only screen and (max-width: 769px) {
 .marcajes-recomendados{
  max-height: 650px;
  height: 650px;
  overflow: hidden;
}
}

.recomendado-impresion{
    display: block;
    width: 100%;
    max-height: 400px;
    height: 400px;
    min-height: 400px;
    overflow: hidden;
}
@media only screen and (max-width: 769px) {
 .recomendado-impresion{
  display: block;
  width: 100%;
  max-height: 250px;
  height: 250px;
  min-height: 250px;
}
.owl-marcajes-home{
  max-height: 400px;
}
}
.owl-marcajes-home{
  max-height: 250px;
}

/* Reservar espacio para texto home */
.container-fluid {
  min-height: 250px;
}

/* Estilos críticos para recomendado-impresion */
.canvas__recomendaciones .col-md-6.text-center-sm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.canvas__recomendaciones .row {
  align-items: center;
}

.canvas__recomendaciones .text-content {
  text-align: center;
  width: 100%;
}

@media (max-width: 767px) {
  .canvas__recomendaciones .col-md-6 {
    margin-bottom: 20px;
  }
  
  .canvas__recomendaciones .col-md-6:last-child {
    margin-bottom: 0;
  }

  .canvas__recomendaciones .text-content {
    text-align: center;
  }
}

.canvas__recomendaciones {
  background-color: #c1d9c4;
  padding: 5px;
}

/* Estilos críticos para imágenes en recomendaciones */
.img-recomendaciones {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.img-recomendaciones:hover {
  transform: scale(1.02);
}

@media (max-width: 480px) {
  .img-recomendaciones {
    max-height: 180px;
    object-fit: cover;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .img-recomendaciones {
    max-height: 220px;
    object-fit: cover;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .img-recomendaciones {
    max-height: 260px;
    object-fit: cover;
  }
}

@media (min-width: 992px) {
  .img-recomendaciones {
    max-height: 300px;
    object-fit: cover;
  }
}

/* Estilos críticos para marcajes */
.text__marcajes-descripcion {
  color: #031a46;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

@media (min-width: 768px) {
  .text__marcajes-descripcion {
    padding-left: 85px;
  }
}

@media (max-width: 992px) {
  .text__marcajes-descripcion {
    top: 0.5rem;
  }
}

.texto__marcajes-titulo {
  display: inline-block;
  background: #c4017a;
  padding: 5px 10px;
  color: #ffed02;
  text-shadow:
    -1px -1px 3px #999,
    0 0 1px darkred,
    1px 1px 1px white,
    2px 2px 1px #555,
    2px 2px 1px #222,
    4px 4px 1px #000;
  border-radius: 40px 57px 0 107px;
  border: 0 solid #000;
}

.marcajes__fondo {
  background: #f5f5f5;
  border-radius: 1rem;
  padding: 10px;
}

.carouselMarcajes img.img-aspect-ratio {
  aspect-ratio: 480 / 200;
  width: 100%;
  max-width: 480px;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 8px;
}

/* Estilos críticos para texto home */
.texto__home {
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.2px;
  margin-top: 20px;
}

.texto__home a {
  color: #0073e6;
}

section {
    display: flex;
    flex-direction: column;
    flex: 0 0 20%;
    margin: 0 5px;
}

.logo-movil {
    height: 40px;
    max-height: 40px;
    min-height: 40px;
}

.banner-carrousel {
    /* display: block !important; */
    max-height: 390px;
    min-height: 150px;
    height: 390px !important;
    overflow: hidden;
}


.owl-mas-vistos {
    /* display: block !important; */
    /* height: 502.2px; */
    max-height: 502.2px;
    min-height: 460.2px;
}


.catalogo-carrousel {
    height: 546px;
    max-height: 546px;
    min-height: 546px;
}



.banner-carrousel{
      height: 390px!important;
}

.owl-productos-banner {
  min-height: 390px;
  height: 390px;
  position: relative;
  overflow: hidden;
}
.owl-productos-banner .slide-owl-wrap {
  position: relative;
  width: 100%;
  height: 390px; 
}
.owl-productos-banner .carousel-item {
  width: 100%;
  height: 100%;
  position: relative;
}
/* CRÍTICO: Solo las imágenes banner dentro de este carousel específico */
.owl-productos-banner img.banner-image {
  width: 100%;
  height: 390px; 
  object-fit: cover; 
  position: relative;
  left: 0%;
  transform: translateX(0%);
  transition: opacity 0.5s ease-in-out;
  /* display: block; */
  background-color: #fff;
}

.owl-productos-banner .owl-item {
  height: 390px;
}

.owl-productos-banner .owl-item img {
  opacity: 1; 
}


.owl-productos-banner.owl-carousel .owl-item:not(.active) img {
  opacity: 0; 
}

.owl-productos-banner img.banner-image.loaded {
  opacity: 1;
}

.owl-productos-banner img.banner-image[data-src]:not([src]) {
  background: linear-gradient(90deg, #fff 25%, #e8e8e8 50%, #fff 75%);
  background-size: 200% 100%;
}
@media only screen and (max-width: 769px) {
    .banner-carrousel {
        height:300px;
    }
}
.banner-carrousel {
        height:300px;
    }
/* ===========================================
   RESPONSIVE DESIGN - MOBILE FIRST APPROACH
   =========================================== */

/* Tablets grandes y laptops pequeñas (768px - 1024px) */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
  .owl-productos-banner {
    min-height: 300px;
          height: 300px;

  }
  .banner-carrousel{
      height: 300px!important;
}
  .owl-productos-banner .slide-owl-wrap {
    height: 300px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 300px;
  }
  
  .owl-productos-banner .owl-item {
    height: 300px;
  }
}

/* Tablets (768px) */
@media only screen and (max-width: 768px) and (min-width: 577px) {
  .owl-productos-banner {
    min-height: 250px;
  }
  
  .owl-productos-banner .slide-owl-wrap {
    height: 250px;
  }
  .banner-carrousel{
      height: 150px!important;
}
  .owl-productos-banner img.banner-image {
    height: 250px;
  }
  
  .owl-productos-banner .owl-item {
    height: 250px;
  }
}

/* Móviles grandes / Phablets (577px - 480px) */
@media only screen and (max-width: 576px) and (min-width: 481px) {
  .owl-productos-banner {
    min-height: 200px;
    height: 200px;
  }
  .banner-carrousel{
      height: 200px!important;
}
  
  .owl-productos-banner .slide-owl-wrap {
    height: 200px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 200px;
  }
  
  .owl-productos-banner .owl-item {
    height: 200px;
  }
}

/* Móviles medianos (480px - 376px) */
@media only screen and (max-width: 480px) and (min-width: 376px) {
  .owl-productos-banner {
      height: 170px;
    min-height: 170px;
  }
  .banner-carrousel{
      height: 170px!important;
}
  .owl-productos-banner .slide-owl-wrap {
    height: 170px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 170px;
  }
  
  .owl-productos-banner .owl-item {
    height: 170px;
  }
}

/* Móviles pequeños (375px y menos) */
@media only screen and (max-width: 375px) {
  .owl-productos-banner {
          height: 150px;

    min-height: 150px;
  }.banner-carrousel{
      height: 150px!important;
}
  
  .owl-productos-banner .slide-owl-wrap {
    height: 150px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 150px;
  }
  
  .owl-productos-banner .owl-item {
    height: 150px;
  }
}

/* Para dispositivos muy pequeños (320px y menos) */
@media only screen and (max-width: 320px) {
  .owl-productos-banner {
          height: 130px;

    min-height: 130px;
  }
  .banner-carrousel{
      height: 130px!important;
}
  
  .owl-productos-banner .slide-owl-wrap {
    height: 130px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 130px;
  }
  
  .owl-productos-banner .owl-item {
    height: 130px;
  }
}

/* OPCIONAL: Animación sutil mientras carga - solo este carousel */
@keyframes shimmer-banner {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
.owl-productos-banner img.banner-image[data-src]:not([src]) {
  animation: shimmer-banner 1.5s ease-in-out infinite;
}

/* MEJORAS ADICIONALES PARA MEJOR RESPONSIVE */

/* Asegurar que el aspect ratio se mantenga en orientación landscape en móviles */
@media only screen and (max-width: 768px) and (orientation: landscape) {
  .owl-productos-banner {
    min-height: 180px;
        height: 180px;

  }
  .banner-carrousel{
      height: 180px!important;
}
  .owl-productos-banner .slide-owl-wrap {
    height: 180px;
  }
  
  .owl-productos-banner img.banner-image {
    height: 180px;
  }
  
  .owl-productos-banner .owl-item {
    height: 180px;
  }
}

.product-card img{
    aspect-ratio:11/10
}
/* Para pantallas con alta densidad de píxeles */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
       only screen and (min-resolution: 192dpi) {
  .owl-productos-banner img.banner-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}


.panel-heading {
    margin-bottom: 1rem;
}

.heading h1, .heading h2 {
    line-height: 1.1;
    display: inline-block;
   
    padding-bottom: 10px;
}

.heading h1:after, .heading h2:after {
    content: " ";
    display: block;
    width: 100px;
    height: 2px;
    margin-top: .6rem;
    background: #467fbf;
}

.heading.text-center h1:after, .heading.text-center h2:after {
    margin-left: auto;
    margin-right: auto;
}


.h1__home {
  margin: 0;
  font-size: 1.8em;
  border: none;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h2 {
  padding-bottom: 0 !important;
}


h1, h2, h4, h5, h6 {
    margin-bottom: 1rem;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}


@media (max-width: 600px) {
  .h1,
  h1,
  .h1__home {
    font-size: 0.8em;
  }

  .h2,
  h2 {
    font-size: 1.3rem;
  }

  .h3,
  h3 {
    font-size: 1.1rem;
  }

  .h4,
  h4 {
    font-size: 1rem;
  }
}

.text-center {
  text-align: center;
}
/* ===========================================
   ESTABILIDAD DE SECCIONES (CLS FIX)
   =========================================== */

/* Reserva de espacio inmediata para Owl Carousels */
#container-vistos, 
.owl-productos-banner {
    background-color: #fff;
    position: relative;
}

/* Móviles (Base) */
.owl-productos-banner,
.owl-productos-banner .slide-owl-wrap,
.owl-productos-banner img.banner-image {
    height: 150px !important;
    min-height: 150px;
}

#container-vistos {
    height: 500px; /* Ajuste para móvil */
}

.marcajes-recomendados {
    height: 650px;
}

/* Tablets (768px+) */
@media only screen and (min-width: 769px) {
    .owl-productos-banner,
    .owl-productos-banner .slide-owl-wrap,
    .owl-productos-banner img.banner-image {
        height: 300px !important;
        min-height: 300px;
    }
    
    #container-vistos {
        height: 662.34px;
    }
    
    .marcajes-recomendados {
        height: 400px;
    }
}

/* Desktop Grande (1200px+) */
@media only screen and (min-width: 1200px) {
    .owl-productos-banner,
    .owl-productos-banner .slide-owl-wrap,
    .owl-productos-banner img.banner-image {
        height: 390px !important;
        min-height: 390px;
    }
}

/* Shimmer Effect para indicar carga sin mover el layout */
.owl-productos-banner:empty::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
