html, body {
  width: 21cm;
  min-height: 29.7cm;
}

@page  
{ 
    size: A4;   /* auto is the initial value */ 

    /* this affects the margin in the printer settings */ 
    margin: 4cm 0 4cm 0;  
} 

@page {
    @top-center {
        content: element(pageHeader);
    }

    @bottom-center {
        content: element(pageFooter);
    }
}

#pdf_header{
    position: running(pageHeader);
}

#pdf_footer{
    position: running(pageFooter);
}

@media screen {
  #pdf_footer {
    display: none;
  }
}

@media print {

}



body {
  border-radius: 5px;
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  -webkit-print-color-adjust:exact !important;
  print-color-adjust:exact !important;
}

#gotoTop{
  display: none!important;
}

.img_full, .pagina_a4{
  width: 21cm;
  height: 29.7cm;
  position: relative;
  overflow: hidden;
}

.pdf_content{
  position: relative;
}

.contenedor_bloques_catalogo:before {
    content: "";
    background-image: url(../cpanelBW/imagesBW/fondo_catalogo.svg);
    background-size: 21cm;
    background-repeat: repeat-y;
    width: 21cm;
    height: -webkit-fill-available;
    z-index: 0;
    position: absolute;
    display: block;
    top: 0;
}

#content, #wrapper {
    background-color: transparent;
}

#anio_portada {
  position: absolute;
  top: 23.5cm;
  left: 1.3cm;
  font-size: 7em;
  opacity: 0.3;
  z-index: 15;
}

.img_full{
  z-index: 10;
}

#pdf_header, #pdf_footer{
  position: fixed;
  width:21cm;
  z-index: 1;
}

#pdf_header{
  top:0;
}

#pdf_footer{
  bottom:0;
}

.pdf_titulo_categoria, .pdf_foto_categoria{
  position: absolute;
  z-index: 15;
}

.pdf_crop_foto_categoria {
    display: block;
    width: 14cm;
    height: 14.85cm;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.pdf_foto_categoria {
    width: 14cm;
    height: 17.5cm;
    top: -2cm;
    left: -4.3cm;
    transform: skew(-4deg) rotate(13deg);
    -webkit-transform: skew(-4deg) rotate(13deg);
    -moz-transform: skew(-4deg) rotate(13deg);
    overflow: hidden;
}

.pdf_foto_categoria img {
    width: 140%;
    height: 111%;
    object-fit: cover;
    top: 50%;
    position: absolute;
    right: -7cm;
    top: 50%;
    transform: skew(4deg) rotate(-13deg) translateY(-50%);
    -webkit-transform: skew(4deg) rotate(-13deg) translateY(-50%);
    -moz-transform: skew(4deg) rotate(-13deg) translateY(-50%);
}

.pdf_titulo_categoria {
    position: absolute;
    top: 10.5cm;
    right: 1.3cm;
    text-align: right;
    color: #9e1916;
    z-index: 10;
    margin: 0;
    width: 8cm;
    height: 3cm;
    font-size: 2.75em;
    line-height: 1.1em;
}

.pdf_texto_producto p{
    margin-bottom: 0;
}

.pdf_texto_producto p:not(td p), .pdf_texto_producto ol li, .pdf_texto_producto ul li {
    margin-bottom: 0;
    line-height: 1.4em !important;
}

.pdf_texto_producto {
    font-size: 0.8em;
}

.pdf_texto_producto ul li{
    position: relative;
    padding-left: 10px;
    list-style: none;
}

.pdf_texto_producto ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background-color: var(--primary-color); 
}

.pdf_producto_container.avoidbreak.bg-gray {
    background: #f5f5f5;
}


ul.listado_subcategorias {
    position: absolute;
    top: 14.3cm;
    z-index: 15;
    right: 1.3cm;
    list-style-position: inside;
    direction: rtl;
    text-align: right;
    list-style: none;
}

ul.listado_subcategorias li::before {
  content: "\27EB";  /* Add content: \2022 is the CSS Code/unicode for a bullet */
  color: #9e1916; /* Change the color */
  font-weight: bold; /* If you want it to be bold */
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 1em; /* Also needed for space (tweak if needed) */
  margin-left: 0em; /* Also needed for space (tweak if needed) */
}

.pdf_titulo_categoria_subcategoria{ 
    margin: 0.15cm 0 0cm 1.3cm;
    font-weight: 400!important;
    font-family: 'Roboto'!important;
    font-size: 1em;
  }

.pdf_titulo_subcategoria {
    background: #3c3c3b;
    height: 1.25cm;
    margin-left: 1.3cm;
    margin-right: 0;
    margin-top: 0.4cm;
    margin-bottom: 0.3cm;
    position: relative;
    -webkit-transform: skew(10deg);
    -moz-transform: skew(10deg);
    -ms-transform: skew(10deg);
    -o-transform: skew(10deg);
    transform: skew(10deg);
    position: relative;
    z-index: 999;
}

.pdf_titulo_subcategoria h2 {
    color: white;
    line-height: 1.2cm;
    font-size: 1.5em;
    -webkit-transform: skew(-10deg);
    -moz-transform: skew(-10deg);
    -ms-transform: skew(-10deg);
    -o-transform: skew(-10deg);
    transform: skew(-10deg);
}

.pdf_crop_foto_subcategoria {
    display: block;
    width: 4.75cm;
    height: 2.75cm;
    overflow: hidden;
    position: absolute;
    top: -0.5cm;
    right: -0.2cm;
    -webkit-transform: skew(-10deg);
    -moz-transform: skew(-10deg);
    -ms-transform: skew(-10deg);
    -o-transform: skew(-10deg);
    transform: skew(-10deg);
}

.pdf_foto_subcategoria {
    width: 5cm;
    height: 2.5cm;
    top: -5px;
    transform: skew(-10deg) rotate(0deg);
    -webkit-transform: skew(10deg) rotate(0deg);
    -moz-transform: skew(-10deg) rotate(0deg);
    overflow: hidden;
    float: right;
    position: relative;
    right: -0.7cm;
    border-left: 10px solid #868686;
    -webkit-box-shadow: -10px 0px 0px 0px rgba(0,0,0,0.25);
    -moz-box-shadow: -10px 0px 0px 0px rgba(0,0,0,0.25);
    box-shadow: -10px 0px 0px 0px rgba(0,0,0,0.25);
}

.pdf_foto_subcategoria img {
    width: 160%;
    height: 130%;
    object-fit: cover;
    top: 50%;
    position: absolute;
    right: 25px;
    top: 50%;
    transform: skew(-10deg) rotate(0deg) translateY(-50%);
    -webkit-transform: skew(-10deg) rotate(0deg) translateY(-50%);
    -moz-transform: skew(-10deg) rotate(0deg) translateY(-50%);
}

.pdf_producto_container:not(.pdf_producto_container .pdf_producto_container){
  padding: 0.2cm 1.5cm 0;
}

.variantes_tabla td {
    white-space: nowrap;
}

p.no-content {
    display: none;
}

.pdf_foto_producto{
  height: 4.1cm;
  width: 100%;
  margin-bottom: 15px;
  object-fit: contain;
  mix-blend-mode: multiply!important;
}

.pdf_titulo_producto{
  color: #9e1916;
  font-size: 1.3em;
  margin-bottom: 0.3cm;
}

.web_view .pdf_titulo_producto{
     max-width: calc(100% - 100px);
}

.pdf_subtitulo_producto{
  font-size: 0.85em;
  line-height: 1.2em;
}

.table > :not(caption) > * > * {
    padding: 0.05rem 0.25rem;
    font-size: 11px;
    line-height: 1.3em;
}

.pdf_foto_plano{
  object-fit: contain;
  width:2.75cm;
  height: 2.75cm;
  margin: 0 0.15cm 0.5cm 0.15cm;
}

.catalogo #top-bar, .catalogo #header, .catalogo #footer, .catalogo #page-title{
  display:none;
}

@media print {

}

.foto_plano {
    border: 10px solid white;
    border-top: 5px solid white;
    border-bottom: 5px solid white;
    min-width: 200px;
    min-height: 140px;
    max-height: 235px;
    max-width: 340px;
    object-fit: contain;
    white-space: nowrap;
}

.fotos_planos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    padding: 0;
}

span.page_number {
    width: 30px;
    display: block;
    height: 32px;
    text-align: center;
    background: white;
    line-height: 32px;
    font-weight: 600;
    position: absolute;
    bottom: 22px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    color: white;
    background: #404040;
}
.category_name{
    font-weight: 600;
    position: absolute;
    bottom: 26px;
    opacity: 0.9;
}
.pagina_a4.contenedor_bloques_catalogo {
    padding-top: 60px;
}
.pagina_a4:not(.even) .page_number{
    left: 25px;
}
.pagina_a4.even .page_number{
    right: 25px;
}
.pagina_a4:not(.even) .category_name{
    left: 75px;
}
.pagina_a4.even .category_name{
    right: 75px;
    text-align: right;
}

.img-qr {
    width: 14mm;
    left: -7mm;
    top: 3px;
    z-index: 99999;
    padding: 5px;
}

.odd .img-qr{
    background: #f5f5f5;
}

.even .img-qr{
    background: white;
}
.titulo_indice{
    margin-left: 70px;
}
.indice_fila{
    margin:7px 70px 0px;
    padding: 0 15px;
}

.indice_fila p{
    line-height: 40px!important;
    width: calc(100% - 10px);
    margin-bottom: 0!important;

}

.indice_fila.odd{
    background: #fafafa;
}

.indice_fila img.foto_indice{
    position: relative;
    mix-blend-mode: multiply;
    height: 48px;
    width: 48px;
    margin-top: -4px;
    object-fit: contain;
}

span.numero_indice {
    bottom: unset;
    left: unset !important;
    right: 15px !important;
    top: 5px;
    background: #eaeaea !important;
    color: #2c3e50;
    font-size: 14px;
}

.img-qr-indice {
    position: absolute;
    width: 38px;
    height: 38px;
    right: -40px;
    top: 1px;
}

.indice_catalogo .pdf_crop_foto_subcategoria {
    height: 2cm;
    top: -10px;
}

.indice_catalogo .pdf_foto_subcategoria{
    border-color: #9e1916!important;
}

.indice_catalogo .pdf_foto_subcategoria img{
    top: 25%;
}

.indice_catalogo .pdf_titulo_subcategoria h2 {
    color: #9e1916;
}

.indice_catalogo .pdf_titulo_subcategoria {
    background: #eaeaea;
    margin-top: 20px;
    margin-bottom: 14px;
}

.indice_catalogo .footer-div .page_number, .indice_catalogo .footer-div .category_name{
    display: none;
}

.button-ficha-tecnica {
    z-index: 9999;
    right: calc(50% - 69px);
    font-size: 11px !important;
    padding: 4px 8px !important;
    top: 3px;
    right: -10px;
    width: fit-content;
}

.button-ficha-tecnica i {
    margin: 0 0 0 3px;
}

.texto-qr{
    top: 55px;
    left: -22px;
    width: 42px;
    font-size: 10px;
    text-align: center;
    line-height: 10px !important;
}

.pdf_texto_producto table {
    width: 100% !important;
}

table.table-striped {
    border: none !important;
    height: auto !important;
}

.texto_2_pdf p:not(td, p) {
    font-size: 0.8em;
    line-height: 1.4em !important;
}

.pdf_producto_container {
  scroll-margin-top: 100px; /* Ajustá 100px al valor que necesites */
}

.variantes_tabla tbody tr.grupo-fin:not(:last-child) {
    border-bottom: 1px solid #b80a2c !important;
}

