/*Hacer que el main permanezca visible cuando se realizan descargas de PDF*/
.page-id-256943 main {
  opacity: 1 !important;
}

/*Estilo imagen índice WP*/
/* .fachada-img-indice img {
  width: 100% !important;
  height: 400px !important;
  object-fit: cover;
  display: block;
}

.page-id-256943 .lista {
  margin-top: 0.5rem;
} */

/*-----------------------------------------------------------------------------------*/

/***************************************
*** BLOQUE A LA IZQUIERDA DEL ÍNDICE ***
***************************************/

/* .soluciones-bloque-izquierda-indice > div {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px !important;
}

.soluciones-bloque-izquierda-indice > div:first-child {
  padding-right: 2rem !important;
}

.izda-indice-prototipo-slider {
  margin-top: 0px !important;
} */

/*-----------------------------------------------------------------------------------*/

/***************
*** TARJETAS ***
***************/

.nivel1-tarjetas {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 1rem;
}

.nivel1-tarjetas-tarjeta {
  flex: 1;
  min-width: 0;
  background: #f8f4f5;
  margin-top: 0px;
  margin-bottom: 1rem;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.nivel1-tarjetas-tarjeta h2 {
  font-size: 20px;
}

.nivel1-tarjetas-tarjeta .nivel1-tarjetas-tarjeta-a img, .nivel2-subtarjetas-subtarjeta .nivel2-subtarjetas-subtarjeta-a img {
    width: 150px;
    height: auto;
}

.nivel1-tarjetas-tarjeta .nivel1-tarjetas-tarjeta-b h2, .nivel2-subtarjetas-subtarjeta .nivel2-subtarjetas-subtarjeta-b h2 {
  text-align: center;
}

.tarjeta-subtarjeta-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #c5311b;
  border-radius: 10px;
  background-color: #c5311b;
  color: #fff;
}

.tarjeta-subtarjeta-btn:hover {
  background-color: #f8f4f5;
  color: #c5311b;
}

.nivel1-tarjetas-tarjeta:has(.tarjeta-subtarjeta-btn.active), .nivel2-subtarjetas-subtarjeta:has(.tarjeta-subtarjeta-btn.active) {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  background-color: #eedfe3;
}

/*-----------------------------------------------------------------------------------*/

/******************
*** SUBTARJETAS ***
******************/

.nivel2-subtarjetas {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.nivel2-subtarjetas-subtarjeta {
  flex: 1;
  min-width: 0;
  background: #eedfe3;
  margin-top: 0px;
  margin-bottom: 1rem;
  padding: 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.nivel2-subtarjetas-subtarjeta h3 {
  font-size: 18px;
}

.nivel2-subtarjetas-subtarjeta-abc {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  min-width: 100%;
}

.nivel2-subtarjetas-subtarjeta-a {
  flex-basis: 20%;
}

.nivel2-subtarjetas-subtarjeta-bc {
  flex-basis: 80%;
  margin-top: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nivel2-subtarjetas-subtarjeta-c {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
/*-----------------------------------------------------------------------------------*/

/***********************************************
*** CONMUTADORES PARA MOSTRAR O NO CONTENIDO ***
***********************************************/

/*Mostrar o no el contenido*/
.nivel2-subtarjetas,
.nivel3-tabla {
  display: none;
}

.nivel2-subtarjetas.active,
.nivel3-tabla.active {
  display: block;
}

/*-----------------------------------------------------------------------------------*/

/*******************
*** DESPLEGABLES ***
*******************/

/*Estilos de los acordeones*/

.bloque-item {
  background: #f8f4f5;
  margin-bottom: 1rem;
  padding: 1rem;
}

.bloque-header {
  cursor: pointer;
  font-weight: bold;
  font-size: 1.2rem;
}

.bloque-content {
  margin-top: 1rem;
}

/*Estilos de las tablas*/

.tabla-soluciones {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

/**/
.tabla-soluciones {
  table-layout: auto;
}

/* Columna Hoja principal */
.tabla-soluciones thead tr:nth-child(2) th:nth-child(2),
.tabla-soluciones tbody tr:first-child td:nth-child(2) {
  width: 12%;
  min-width: 120px;
}

/* Enlaces de Hoja principal */
.tabla-soluciones tbody tr:first-child td:nth-child(2) a {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Columna Ficha técnica */
.tabla-soluciones thead tr:nth-child(2) th:nth-child(3),
.tabla-soluciones tbody tr:first-child td.ficha {
  width: 12%;
  min-width: 130px;
}

/* Icono de ficha técnica con más presencia */
.tabla-soluciones a.fachadas-boton-descargar img {
  width: 42px;
  height: 42px;
}
/**/

.tabla-soluciones th {
  background: #c52b1f;
  color: white;
  padding: 10px;
  border: 1px solid #fff;
  text-align: center;
}

.tabla-soluciones td {
  border: 1px solid #c52b1f;
  padding: 8px;
  text-align: center;
}

.tabla-soluciones .ficha {
  background: #f3b1a8;
}

.tabla-soluciones tbody tr:nth-child(even) {
  background: #f9f9f9;
}

/*algo de las imágenes*/
.tabla-soluciones .fachadas-tabla-img {
  height: 150px;
}

/*Borde de cada bloque*/
.tabla-soluciones .bloque {
  border: 3px solid #c52b1f;
}

/*Botón de descarga*/
.tabla-soluciones a.fachadas-boton-descargar {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}

.tabla-soluciones a.fachadas-boton-descargar img {
  width: 37px;
  height: 37px;
}

.tabla-soluciones a.fachadas-boton-descargar:hover img {
scale: 105%;
}

/*Hacer que la tabla sea scroleable*/
.tabla-wrapper {
  width: 100%;
  overflow-x: visible;
}

/*-----------------------------------------------------------------------------------*/

/*************
*** TABLAS ***
*************/

.nivel3-tabla h4 {
  font-size: 18px;
}

/*Centrar imagen de las tablas*/
.bloque-inicio > td:nth-child(1) img {
  display: unset !important;
}

/*-----------------------------------------------------------------------------------*/

/***************************
*** SCROLL TO TOP BUTTON ***
***************************/

.bg-scroll-top-btn {
  position: fixed;
  bottom: 100px;
  right: 10px;
  z-index: 99;
  font-size: 20px;
  border: 1px solid #fff;
  outline: none;
  background-color: #c5311b;
  color: #fff;
  cursor: pointer;
  padding: 5px 13px 10px 13px;

  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, color 0.2s ease;
}

.bg-scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.bg-scroll-top-btn:hover {
  background-color: #fff;
  border: 1px solid #c5311b;
  color: #c5311b;
}

/*-----------------------------------------------------------------------------------*/

/****************
*** CTA POPUP ***
****************/
/* .cta-popup h3, .cta-popup p {
  text-align: center;
}

.button-openpopup a {
  color: #fff !important;
  background-color: #c5311b !important;
  border-color: #c5311b;
}

.button-openpopup:hover a {
  color: #c5311b !important;
  background-color: #fff !important;
}

.cta-popup > .wp-block-group__inner-container > .wp-block-group > .wp-block-group__inner-container {
      border-left: none !important;
}

.cta-popup {
  background-color: #eedfe3;
} */

.cta-popup {
  width: 100%;
  max-width: 100% !important;
  padding-left: 40px !important;
  padding-right: 40px !important;
  background-color: #eedfe3;
  padding: 4rem 1.5rem;
}

.cta-popup-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-popup h3 {
  margin-bottom: 1rem;
  color: #000;
  font-size: 1.4rem;
}

.cta-popup p {
  max-width: 750px;
  margin: 0 auto 2rem auto;
  color: #000;
}

.bg-popup-open {
  padding: 0.8rem 1.4rem;
  border: 2px solid #c5311b;
  border-radius: 10px;
  background-color: #c5311b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.bg-popup-open:hover {
  background-color: #fff;
  color: #c5311b;
}

/*-----------------------------------------------------------------------------------*/

/************
*** POPUP ***
************/

/*corrección para que el footer no quede por encima del popup*/
footer ul {
  z-index: 0;
}

.bg-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999999 !important;
}

.bg-popup.active {
  display: block;
  max-width: 100% !important;
}

.bg-popup-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.bg-popup-content {
  position: relative;
  width: min(1000px, calc(100% - 2rem));
  max-height: 80vh;
  margin: 8vh auto;
  padding: 2rem;
  background: #fff;
  overflow-y: auto;
  z-index: 1;
}

.bg-popup-close {

  position: sticky;
  top: 1rem;
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #c5311b;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
}

.bg-popup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.bg-popup-producto {
  padding: 1.5rem;
  background: #f8f4f5;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.bg-popup-producto img {
  max-width: 180px;
  height: auto;
  display: block;
}

.bg-popup-producto-b {
  margin: 0px;
}

.bg-popup-is-open {
  overflow: hidden;
}

/*Imagenes de gráficos del popup*/
.bg-popup-graph {
    display: flex;
    flex-wrap: wrap;
}

.bg-popup-graph > img {
  width: 400px;
}

@media (max-width: 958px) {
  /*POPUP*/
  .bg-popup-graph {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
}

.bg-popup-graph > img {
  width: auto;
}
}

@media (max-width: 781px) {
.bg-popup-producto {
    padding: 1.5rem;
    background: #f8f4f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
}

@media (max-width: 768px) {
  .bg-popup-content {
    padding: 1.5rem;
    max-height: 90vh;
    margin: 10vh auto;
  }
}

@media (max-width: 7359px) {
  .bg-popup {
    padding-left: 0rem;
    padding-right: 0rem;
  }
}

/*-----------------------------------------------------------------------------------*/

/*****************
*** RESPONSIVE ***
*****************/

@media (max-width: 900px) {

  /*Hacer que la tabla sea scrloleable*/
  .tabla-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* suaviza en iOS */
  }
}

@media (max-width: 860px) {
  /*Indicación visual de scroll para tablas*/
  .tabla-wrapper::after, .tabla-wrapper::before {
    content: "← Desliza →";
    display: block;
    text-align: center;
    font-size: 12px;
    color: #666;
    padding-top: 5px;
    padding-bottom: 5px;
  }
}

@media (max-width: 801px) {
  /*ÍNDICE*/
  /*Sepear del bloque de texto de WP*/
  .indice-pavimentos {
    margin-bottom: 3rem;
  }

  /*TARJETAS N1*/
  /*Hacer que las tarjetas se dispongan en columna*/
  .nivel1-tarjetas {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
  }

  /*Corregir paddings*/
  .nivel1-tarjetas-tarjeta {
      padding: 2rem;
  }


  /*SUBTARJETAS N2*/
  /*Tamaño texto párrafos*/
  .nivel2-subtarjetas-subtarjeta p {
    font-size: 16px;
  }
}



@media (max-width: 600px) {
  /*SUBTARJETAS N2*/
  /*Corregir padding subtarjetas*/
  .nivel2-subtarjetas-subtarjeta {
    padding: 2rem;
  }

  /*Disposición de las subtarjetas en columna*/
  .nivel2-subtarjetas-subtarjeta-abc {
    flex-direction: column;
    gap: 1.5rem;
  }

  /*Centrar el h3*/
  .nivel2-subtarjetas-subtarjeta-titulo {
    width: 100%;
    text-align: center;
  }

  /*Centrar la foto horizontalmente*/
  .nivel2-subtarjetas-subtarjeta-a {
    display: flex;
    justify-content: center;
  }

  /*Bajar tamaño a la foto*/
  .nivel2-subtarjetas-subtarjeta .nivel2-subtarjetas-subtarjeta-a img {
      width: 100px;
  }

  /*Centrar el párrafo*/
  .nivel2-subtarjetas-subtarjeta-b p {
    text-align: center;
  }
}