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;
  background: #2c3e50;
}

.pagina_a4.contenedor_bloques_catalogo {
    padding-top: 43px;
}

.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: 22.3cm;
left: 8.4cm;
font-size: 4.5em;
opacity: 0.15;
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: 21cm;
    height: 11.7cm;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

.pdf_foto_categoria {
    width: 21cm;
    height: 12.5cm;
    top: 0cm;
    left: 0cm;
    overflow: hidden;
}

.pdf_foto_categoria img {
    object-fit: cover;
    width: 100%;
    object-position: center center;
    height: 100%;
}

.pdf_titulo_categoria {
    position: absolute;
    top: 12cm;
    right: 0cm;
    text-align: center;
    color: #2c3e50;
    z-index: 110;
    margin: 0;
    width: 21cm;
    height: 3cm;
    font-size: 3.75em;
    line-height: 1.1em;
    text-transform: uppercase;
}

.pdf_foto_categoria:after {
    content: url(../images/hexagon.svg);
    display: block;
    width: 23cm;
    height: 21cm;
    z-index: 99;
    top: 6cm;
    position: absolute;
    left: -1cm;
}

.pdf_texto_producto p, .pdf_texto_producto_no_square p{
    margin-bottom: 0;
    font-size: 0.8em;
    line-height: 1.4em !important;
}

.pdf_producto_container.avoidbreak.bg-gray {
    background: rgba(255, 255, 255, 0.05);
}


.listado_subcategorias {
    position: absolute;
    top: 14.5cm;
    z-index: 150;
    right: 3cm;
    width: 15cm;
    text-align: center;
    font-size: 13px;
    line-height: 1.4em;
}

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.25cm 1.85cm 0cm 1.3cm;
    font-weight: 400 !important;
    font-family: 'Roboto' !important;
    font-size: 1em;
    color: white;
    text-align: right;
}

.pdf_titulo_subcategoria {
    background: #1e2e3d;
    margin-top: 0.5cm;
    position: relative;
}

.pdf_titulo_subcategoria h2 {
    color: white;
    text-align: center;
}

.pdf_crop_foto_subcategoria {
    display: block;
    width: 5cm;
    height: 2.9cm;
    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);
    z-index: 10;
}

.pdf_foto_subcategoria {
    width: 4cm;
    height: 3cm;
    top: 0;
    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{
  padding: 0cm;
}

.pdf_foto_producto{
    height: 5cm;
    width: 100%;
    border-radius: 10px;
    object-fit: contain;
}

h6.titulo_pagina {
    position: absolute;
    top: 5px;
    font-size: 14px;
    width: calc(100% - 60px);
    padding: 10px;
    border-bottom: 1px solid #2c3e50;
    margin: 0 30px;
    color: #2c3e50;
}

.even h6.titulo_pagina {
    text-align: right;
}

.foto_vertical .pdf_foto_producto{
    height: 6.5cm!important;
}

.col-5 .pdf_foto_producto{
    height: 7.5cm!important;
}

.pdf_titulo_producto {
    font-size: 1.75em;
    margin-top: 10px;
}

.row.row_producto_details.producto_cat_83{
    padding-top: 50px;
}
.row.row_producto_details.producto_cat_83 .pdf_foto_producto{
    height: 6.5cm;
}

.row.row_producto_details.producto_cat_83 .variantes_tabla{
    margin-bottom: 30px;
}

.pdf_texto_producto p {
  position: relative;
  padding-left: 10px;
}

.pdf_texto_producto p.has-content::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #000; /* Aquí puedes definir el color */
  margin-right: 5px;
  position: absolute;
  left: 0;
  top: 9px;
  transform: translateY(-50%);
}

table.full_width {
    width: 100%!important;
    height: auto !important;
}

table {
    width: 100%;
}

.pdf_texto_producto p.no-content::before {
  display: none;
}


.pdf_subtitulo_producto{
  font-size: 0.85em;
  line-height: 1.2em;
}

.pdf_producto_container table > :not(caption) > * > * {
    padding: 0.1rem 0.3rem;
    font-size: 13px;
    line-height: 1.4em;
}

.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 {

}

.pdf_titulo_categoria {
    transform: scaleX(0.9);
}

.hexagon-wrapper {
    position: absolute;
    width: 106px; /* Hexagon width + border width */
    height: 116px; /* Hexagon height + border width */
    left: calc(50% - 53px);
    top: 5cm;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.hexagon {
    position: relative;
    width: 100px;
    height: 110px;
    background-color: #64C7CC;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
}

.hexagon-wrapper:before {
    content: "";
    position: absolute;
    width: 106px; /* Slightly larger than hexagon */
    height: 116px; /* Slightly larger than hexagon */
    background-color: white;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 0;
}

.pdf_producto_container table th{
    background: #1e2e3d;
    color: white;
    font-weight: bold;
    white-space: nowrap;
}

.white-bg table{
    width:100%;
}

.white-bg table tbody > tr:nth-child(odd){
    background-color: rgba(0, 0, 0, 0.04);
}

.pdf_producto_container table tbody{
    background: #fafafa;
}

table, table td{
    border: none;
}

.pdf_hexagono_foto {
    width: 155px;
    height: 145px;
    overflow: hidden;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    position: absolute;
    top: -35px;
}

.pdf_hexagono_foto img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto asegura que la imagen cubra completamente el contenedor */
}

.hexagon-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: #1e2e3d;
    color: white;
    padding: 10px 20px 10px 10px;
    position: relative;
    height: 70px;
    float: right;
    margin-right: 45px;
    border-right: 4px solid;
}

.hexagon-container h2{
    color: white;
    margin: 0;
}

.hexagon-container:before {
    content: "";
    position: absolute;
    top: 0;
    left: -30px;
    width: 0;
    height: 0;
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
    border-right: 30px solid #1e2e3d;
}

.fotos_planos img {
    mix-blend-mode: multiply;
}


.row.row_producto_details.producto_cat_86 .col-5, .producto_cat_86 .pdf_texto_producto {
    display: none;
}

.row.row_producto_details.producto_cat_86 .col-7 {
    background-color: white !important;
    padding-left: 30px !important;
    width: 100%;
}

.row.row_producto_details.producto_cat_86 .col-7 .pdf_titulo_producto{
    color: #2c3e50;
}



.fotos_planos {
    display: flex;
    flex-wrap: wrap; /* Permite que las imágenes se envuelvan en varias líneas */
    justify-content: center; /* Centra las imágenes horizontalmente */
    align-items: flex-start; /* Alinea las imágenes al inicio de la línea */
    height: auto; /* Permite que el contenedor se ajuste a múltiples líneas */
    padding: 0;
}

.foto_plano:not(.full) {
    border: 10px solid white;
    border-top: 5px solid white;
    border-bottom: 5px solid white;
    min-width: 200px;
    min-height: 140px;
    max-height: 180px;
    max-width: 510px;
    object-fit: contain;
}

.producto_cat_86 .foto_plano.full {
    max-width: 680px;
    max-height: 430px;
    margin-bottom: 20px;
}

.producto_cat_86 .foto_plano:not(.full) {
    min-width: 200px;
    min-height: 100px;
    max-height: 110px;
}

.contenedor_ficha_tecnica{
    display: inline-block;
    /*width: fit-content;*/
    width: 100%;
}

.contenedor_ficha_tecnica table {
    width: 100%;
}

.pdf_content.producto_cat_84 .pdf_producto_container , .pdf_content.producto_cat_85 .pdf_producto_container {
    padding: 0.6cm 1.5cm 0.6cm 1.5cm!important;
}

.cuadradito_pieza{
    width: 7px;
    height: 7px;
    display: inline-block;
    position: relative;
    top: 0px;
    left: -4px;
}

.foto_aclaracion {
    text-align: right !important;
    position: absolute;
    right: 8%;
    top: 30px;
    font-size: 12px;
}

.referencias_text{
    font-size: 14px;
}

.producto_cat_86 .pdf_foto_producto {
    margin-top: 10px;
    margin-bottom: 15px;
}

span.page_number {
    width: 30px;
    display: block;
    height: 32px;
    text-align: center;
    background: white;
    line-height: 32px;
    font-weight: 600;
    position: absolute;
    bottom: 25px;
    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: 29px;
    opacity: 0.9;
    color: white;
}

.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;
}

.producto_cat_86 .pdf_titulo_producto {
    font-size: 2.2em;
    margin-top: 30px;
}

.indice_fila{
    margin:4px 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;
    mix-blend-mode: multiply;
}

.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: 15px;
    margin-bottom: 10px;
}

.indice_catalogo .footer-div .page_number, .indice_catalogo .footer-div .category_name{
    display: none;
}
.indice_catalogo .footer-div .page_number, .indice_catalogo .footer-div .category_name{
    display: none;
}

.pagina_a4.contenedor_bloques_catalogo.indice_catalogo {
    padding-top: 70px;
    padding-bottom: 70px;
}

.franja_azul{
    background-color:var(--black-color) ;
    border-top: 1px solid white;
}

.franja_azul .pdf_texto_producto{
    padding-top: 20px;
}

.row:not(.franja_azul) .pdf_titulo_producto{
    color:var(--primary-color) ;
}

.franja_azul .pdf_titulo_producto, .franja_azul .pdf_texto_producto  p{
    color: white!important;
}