.txt-loop { display: none; }

.button-large {
  background: var(--color-white);
  
  border: 1px solid var(--color-light-blue);
  cursor: pointer;
  color: #2E47A7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 400;
  padding: 16px 24px;
  position: relative;
  width: 100%;
}
/* .button-large.active { margin-bottom: 1.5rem; } */

.button-large::after { 
  content: "";
  transition: .6s ease-in-out;
  background-image: url("https://3790458.fs1.hubspotusercontent-na1.net/hubfs/3790458/2023/Icons/arrow-down.svg");
  background-repeat: no-repeat;
  background-position-y: center;
  width: 20px;
  height: 20px;
  
}
.button-large.active::after { transform: rotate(180deg); }

@media only screen and (min-width: 767px) {
  .button-large { font-size: 1.5rem; }
}

.button-large .text-questions { width: 90%; }
@media only screen and (min-width: 767px) {
  .button-large .text-questions { width: 97%; }
}

.panel-info { transition: .6s ease-in-out; max-height: 0px; overflow: hidden; opacity: 0; color: var(--wb-font-color-1) !important; }
.panel-info.show { max-height: 1300px; overflow: visible; opacity: 1; }

.panel-info li::before{content: url(https://3790458.fs1.hubspotusercontent-na1.net/hubfs/3790458/2023/Buk-ui-kit/encuestas/Flecha.svg); left: -30px; position: absolute; width: 22px;}
.panel-info li {font-size: 1.125rem; /*padding-left: 30px;*/ position: relative; margin-left: 30px;}
.panel-info li:not(:last-of-type){margin-bottom: 1.125rem;  margin-left: 30px;}

.text-questions { font-family: var(--font-family-title); font-size: 1rem; }


.panel-info ol { list-style: none; counter-reset: lista-contador;  padding-left: 0; }
.panel-info ol li { counter-increment: lista-contador; display: flex; align-items: start; margin-bottom: 10px; font-size: 16px;/* Color del texto */ }
.panel-info ol li::before { content: counter(lista-contador); background-color: #73A0DB; color: white; font-weight: 600; font-size: 14px;
        min-width: 22px; min-height: 22px; display: flex; align-items: center; justify-content: center;
        border-radius: 50%;margin-right: 16px; white-space: nowrap; }

/* ===== CONTENIDO GENERAL ===== */

ul.footer__list {
  padding-left: 0 !important;
}

p b, p strong, strong {
  font-weight: 700 !important;
}

.content h1, 
.content h2,
.content h3,
.content h4, 
.content p,
.content li {
  color: #2B3C6A !important;
  font-family: var(--font-family-title);
}

.content li {
  margin-top: 8px;
}

.content ul li {
  list-style: disc;
}

ul {
  padding-left: 2rem;
}

.txt-dark {
  color: #1A2441 !important;
}

.bg-light-modules {
  background-color: var(--wb-bg-modules);
}

/* ===== BLOQUES DE CONTENIDO ===== */
.bloque-texto-completo,
.bloque-texto-imagen {
  margin-bottom: 3.5rem;
}

.bloque-texto-completo h2,
.bloque-texto-imagen h2 {
  margin-bottom: 1.5rem;
  scroll-margin-top: 220px;
}

.bloque-texto-completo h3,
.bloque-texto-imagen h3 {
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  scroll-margin-top: 220px;
}

.bloque-imagen-wrapper {
  margin-top: 1.5rem;
}

.bloque-imagen-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-16);
}

/* ===== ESTILOS ESPECIALES FORMULARIO ===== */
.formulario input[type=submit] {
  background: transparent !important;
  border: 1px solid var(--Color-outline-outline-blue-dark, #2B3C6A) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  color: #2B3C6A !important;
}

/* ===== TABLA DE CONTENIDO - LAYOUT ===== */
#toc-container-wrapper {
  position: relative;
  padding-top: 0 !important;
}

#tabla-contenido-sticky {
  background: transparent; /* ← Cambiar a transparente */
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 8px; /* ← Agregar espacio para la sombra */
}

@media (min-width: 1020px) {

  /* ===== SCROLL EN LA TABLA DE CONTENIDO ===== */

  #lista-contenido {
    scroll-behavior: smooth;
  }

  #tabla-contenido-sticky {
    position: sticky;
    top: 180px;
    max-height: calc(100vh - 200px); /* Altura máxima = viewport - espacio superior */
    overflow-y: auto; /* Activar scroll vertical */
    overflow-x: hidden; /* Evitar scroll horizontal */
    margin-right: 3.5rem;
  }

  /* Opcional: Padding bottom para que el último item no quede pegado al borde */
  .toc-content {
    padding-bottom: 1rem;
  }
}

/* ===== SCROLL SUAVE ===== */
#tabla-contenido-sticky {
  scroll-behavior: smooth;
}

/* ===== SCROLLBAR PERSONALIZADO (OPCIONAL) ===== */
#tabla-contenido-sticky::-webkit-scrollbar {
  width: 6px;
}

#tabla-contenido-sticky::-webkit-scrollbar-track {
  background: #2B3C6A;
  border-radius: 10px;
  margin: 8px 0; /* Espacio arriba y abajo */
}

#tabla-contenido-sticky::-webkit-scrollbar-thumb {
  background: #2B3C6A;
  border-radius: 10px;
}

#tabla-contenido-sticky::-webkit-scrollbar-thumb:hover {
  background: #1A2441;
}

.toc-content {
  
  border-radius: var(--radius-16);
  box-shadow: var(--box-shadow-1);
}

#tabla-contenido-sticky {
  position: sticky;
  top: 180px;
  overflow-y: auto;
}
}

/* ===== TABLA DE CONTENIDO - HEADER ===== */
#tabla-contenido-sticky .toc-header {
  padding: 1.5rem;
  background: var(--color-white);
  font-weight: 700;
}

.toc-header-collapsible {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 24px 37px;
  cursor: pointer;
  background-color: #FFFFFF;
  border-radius: 16px 16px 0 0;
  transition: all 0.3s ease;
}


.toc-header-text {
  font-weight: 600;
}

.toc-header-icon {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.toc-header-icon svg {
  width: 16px;
  height: 10px;
}

#tabla-contenido-sticky:not(.toc-collapsed) .toc-header-icon {
  transform: rotate(180deg);
}

/* ===== TABLA DE CONTENIDO - LISTA ===== */
#tabla-contenido-sticky ol {
  background: #ffff;
  padding: 0 1.5rem 1rem;
  margin: 0;
  list-style: none;
  counter-reset: item;
}

#tabla-contenido-sticky ol li {
  counter-increment: item;
  position: relative;
  margin-bottom: 12px;
}

#tabla-contenido-sticky ol li:last-child {
  margin-bottom: 12px;
}

#tabla-contenido-sticky ol li a {
  font-size: 16px;
  font-weight: 400;
  line-height: 130%;
  text-decoration: none !important;
  transition: all ease 0.1s;
  display: block;
  color: var(--wb-font-color-1);
}

#tabla-contenido-sticky ol li a:hover {
  font-weight: 700;
}

#tabla-contenido-sticky ol li.active a {
  font-weight: 700 !important;
}

/* ===== ITEMS H2 ===== */
#lista-contenido li.toc-h2 a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1A2441;
  font-family: Inter;
  font-size: 18px !important;
  font-weight: 400;
}

#lista-contenido li.toc-h2[data-has-children="true"] a {
  cursor: pointer;
}

#lista-contenido li.toc-h2[data-has-children="true"] a:hover {
  padding: 4px 8px;
  margin: -4px -8px;
}

#lista-contenido li.toc-h2 .toc-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  flex-shrink: 0;
  order: -1;
  width: 12px;
  height: 12px;
}

#lista-contenido li.toc-h2:not(.expanded) .toc-chevron {
  transform: rotate(0deg);
}

#lista-contenido li.toc-h2.expanded .toc-chevron {
  transform: rotate(90deg);
}

#lista-contenido li.toc-h2 .toc-text {
  flex: 1;
}

/* ===== ITEMS H3 ===== */
.toc-h3-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  margin: 0;
  padding: 0;
}

#lista-contenido li.toc-h2.expanded + .toc-h3-container {
  max-height: 1100px;
}

#lista-contenido .toc-h3-container[style*="display: block"] {
  margin-top: 8px;
  margin-bottom: 8px;
}

.toc-h3-container li.toc-h3 {
  list-style: none;
  padding-left: 52px;
  margin-bottom: 16px;
  opacity: 1;
}

.toc-h3-container li.toc-h3:last-child {
  margin-bottom: 0;
}

#lista-contenido li.toc-h3 a {
  color: #1A2441;
  font-family: Inter;
  font-size: 14px !important;
  font-weight: 400;
}

/* ===== SEPARADOR Y REDES SOCIALES ===== */

.toc-social-icon img:hover {
  opacity: 0.6;
  transition: 0.3s;
}

.toc-separator {
  height: 1px; 
  background-color: #D9E3FC; 
  width: 80%;
  margin-left: 32px;
}

/* ===== BOTÓN PDF ===== */
button#btn-form-modal.btn.btn--pdf.btn-form-modal:hover {
  border-radius: 69px;
  border: 1px solid #2B3C6A;
  background: #fff;
  color: #2B3C6A;
  font-size: 20px;
  font-weight: 700;
  width: 250px !important;

}

button#btn-form-modal.btn.btn--pdf.btn-form-modal {
  border-radius: 69px;
  border: 1px solid #2B3C6A;
  background: #2B3C6A;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  width: 250px !important;
}

/* ===== SCROLLBAR ===== */
#tabla-contenido-sticky::-webkit-scrollbar {
  width: 6px;
}

#tabla-contenido-sticky::-webkit-scrollbar-track {
  background: var(--color-light-blue);
  border-radius: 10px;
}

#tabla-contenido-sticky::-webkit-scrollbar-thumb {
  background: var(--color-blue-buk);
  border-radius: 10px;
}

#tabla-contenido-sticky::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark-blue);
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 1019px) {
  #toc-container-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
    width: calc(100% + 2rem);
  }

  #tabla-contenido-sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    margin: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .toc-header-collapsible {
    display: flex;
  }

  .toc-content > .toc-header {
    display: none;
  }

  .toc-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.4s ease;

    border-radius: none;
    box-shadow: none;
  }


  #tabla-contenido-sticky.toc-collapsed .toc-content {
    max-height: 0;
  }

  /* ===== BOTÓN PDF ===== */
  button#btn-form-modal.btn.btn--pdf.btn-form-modal:hover {
    width: 354px !important;
  }

  button#btn-form-modal.btn.btn--pdf.btn-form-modal {
    width: 354px !important;
  }
}