/*.tooltip svg {
transform: rotate(180deg) !important;
}*/

@media only screen and (min-width: 767px) {
  #whithout-discount-mobile {
    display: none !important;
  }
}

@media only screen and (max-width: 767px) { 
  label.benefit-2{
    padding-right: 2rem;
    top: 10px;
    position: relative;
  }
  input#bn-2 {
    width: 20px;
  }
  /* span.circulo.buk-mx-1.dcto{
  height: 28px;
  width: 38px;
}*/
}
.modal-form-container {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #00000050;
  border: none;
  z-index: 100;
}
.modalForm {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 564px;
  width: calc(100% - 32px);
  border: none;
  position: relative;
}

.modalForm .hs-input {
  border-radius: 30px;
  background: var(--wb-bg-modules);
  color: var(--color-blue-buk);
  box-shadow: none;
  cursor: pointer;
  display: block;
  font-family: inter, sans-serif;
  font-size: 1rem;
  line-height: 22px;
  outline: 0;
  border: none;
  padding: 8px 10px;
  width: 100%!important;
}
.modalForm label.hs-form-checkbox-display {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.modalForm .input {
  margin: 0!important;
}
.popup-form h1, .popup-form h2, .form-columns-0 h1, .form-columns-0 h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
fieldset.form-columns-2, fieldset.form-columns-1 {
  margin-bottom: 1rem!important;
}

.hs-form-checkbox .hs-input{
  width: auto!important;
}
.modalForm label {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  margin-left: 8px;
  gap: 8px;
  align-items: baseline;
}
.modalForm label .hs-input {
  width: auto!important;
}
.modalForm label.hs-error-msg {
  color: var(--color-error);
}
.modalForm input.hs-button.primary.large {
  background: var(--bg-cta-1);
  border-color: var(--bg-cta-1);
  border-radius: var(--radius-btn);
  border-style: none;
  color: var(--color-white);
  cursor: pointer;
  display: block;
  font-family: var(--font-family-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin: auto;
  padding: .688rem 1.875rem;
  text-align: center;
  transition: all .3s ease;
  width: auto;
}
.modalForm input.hs-button.primary.large:hover {
  background: linear-gradient(.496turn, #f59121 1.23%, #ce5816 151.61%);
  color: var(--color-white);
  cursor: pointer;
  display: block;
}
fieldset.form-columns-1, fieldset.form-columns-2, .hs-form-field {
  margin-bottom: 1rem !important;
}

/* ── Gestión de Rendiciones ─────────────────────────────── */

/* Badge en el header */
.rend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E7EEFF;
  border-radius: 8px;
  padding: 4px 12px;
  font-family: var(--font-family-body);
  font-size: 1.125rem;
  color: var(--color-blue-buk);
  line-height: 1.3;
  margin-top: 6px;
  vertical-align: top;
}
.rend-badge-check {
  display: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  background: var(--color-blue-buk);
  border-radius: 4px;
  position: relative;
}
.rend-badge[data-selected] .rend-badge-check { display: inline-block; }
.rend-badge[data-selected] { cursor: pointer; }

/* Badge estado Pro */
.rend-badge[data-selected="pro"] {
  background: var(--color-blue-buk);
  color: white;
}
.rend-badge[data-selected="pro"] .rend-badge-check {
  background: white;
}
.rend-badge[data-selected="pro"] .rend-badge-check::after {
  border-left-color: var(--color-blue-buk);
  border-bottom-color: var(--color-blue-buk);
}

.rend-badge-check::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 10px;
  height: 6px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}

/* Pill switch (solo mobile, dentro del panel) */
.choice-plan-rendiciones {
  display: none;
  background: #fff;
  border: 1.25px solid #d9e3fc;
  border-radius: 57.5px;
  color: var(--color-blue-buk);
  display: flex;
  height: auto;
  padding: .625rem;
  width: max-content;
}
.choice-plan-rendiciones button {
  background-color: #fff;
  border-radius: 86.25px;
  color: var(--color-blue-buk);
  cursor: pointer;
  padding: .813rem 2.313rem;
  border:none;
}
.choice-plan-rendiciones button[aria-checked="true"] {
  background-color: #d9e3fc;
  color: var(--color-blue-buk);
}

/* Disclaimer */
.rend-disclaimer {
  display: flex;
  align-items: center;
  background: #E1E2E4;
  border-radius: 4px;
  padding-right: 8px;
  gap: 0;
  margin-bottom: 1rem;
  max-width: 390px;
}
.rend-disclaimer__bar {
  width: auto;
  min-height: 0;
  background: transparent;
  border-radius: 0;
  padding: 8px 6px 8px 10px;
  flex-shrink: 0;
}
.rend-disclaimer__bar::after {
  content: 'ⓘ';
  font-size: 1rem;
  color: #4D4D4D;
  display: block;
}
.rend-disclaimer__text {
  font-family: var(--font-family-body);
  font-size: 0.875rem;
  color: #4D4D4D;
  line-height: 1.3;
  padding: 4px 0 4px 5px;
}

.rend-usuarios-input::placeholder {
color: var(--color-blue-buk);
}
.rend-usuarios-label .tooltip {
  position: relative;
}
.rend-usuarios-label .tooltip-text {
  white-space: normal;
  width: 220px;
}
@media only screen and (max-width: 766px) {
  .rend-usuarios-label .tooltip-text {
    left: auto;
    right: 0;
  }
}

/* Cards wrapper */
.rend-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Tarjeta individual */
.rend-card {
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rend-card--esencial { background: #E7EEFF; }
.rend-card--pro      { background: var(--color-blue-buk); }

.rend-card__title {
  font-family: var(--font-family-title);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  align-self: flex-start;
  width: 100%;
}
.rend-card--esencial .rend-card__title { color: var(--color-blue-buk); }
.rend-card--pro      .rend-card__title { color: white; }

/* Lista de features */
.rend-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  {#gap: 12px;#}
  flex: 1;
}
.rend-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-family-body);
  font-size: 1rem;
  line-height: 1.3;
}
.rend-card__features li::before {
  background:url(https://www.buk.cl/hubfs/2024/precios-24/Bullet-arrow.svg); 
  background-repeat: no-repeat;
}
.rend-card--esencial .rend-card__features li { color: #1A2441; }
.rend-card--pro      .rend-card__features li { color: white; }

/* Botón de selección */
.rend-card__select {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  min-height: 55px;
  padding: 0 16px;
  cursor: pointer;
  font-family: var(--font-family-body);
  font-size: 1.125rem;
  margin-top: auto;
  box-sizing: border-box;
  max-width: 215px;
  justify-content: center;
  align-self: center;
}
.rend-card--esencial .rend-card__select {
  border: 1px solid var(--color-blue-buk);
  background: #E7EEFF;
  color: var(--color-blue-buk);
}
.rend-card--pro .rend-card__select {
  border: 1px solid white;
  background: var(--color-blue-buk);
  color: white;
}

/* Checkbox real (oculto) */
.rend-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Visual del checkbox */
.rend-check-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}
.rend-card--esencial .rend-check-icon { border: 1.626px solid var(--color-blue-buk); background: transparent; }
.rend-card--pro      .rend-check-icon { border: 1.626px solid white; background: transparent; }

/* Estado seleccionado — checkbox icon */
.rend-card--esencial.selected-version .rend-check-icon {
  background: white;
  border-color: white;
}
.rend-card--pro.selected-version .rend-check-icon {
  background: var(--color-blue-buk);
  border-color: var(--color-blue-buk);
}
.rend-card.selected-version .rend-check-icon::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-blue-buk);
  border-bottom: 2px solid var(--color-blue-buk);
  transform: rotate(-45deg);
}
.rend-card--pro.selected-version .rend-check-icon::after {
  border-left-color: white;
  border-bottom-color: white;
}

/* Estado seleccionado — relleno del botón */
.rend-card--esencial.selected-version .rend-card__select {
  background: var(--color-blue-buk);
  color: white;
  border-color: var(--color-blue-buk);
}
.rend-card--pro.selected-version .rend-card__select {
  background: white;
  color: var(--color-blue-buk);
  border-color: white;
}

/* Input usuarios activos */
.rend-usuarios-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.rend-usuarios-label {
  font-family: var(--font-family-title);
  font-size: 1.125rem;
  color: var(--color-blue-buk);
  white-space: nowrap;
}
.rend-usuarios-input {
  background: white;
  border: 1px solid var(--color-light-blue);
  border-radius: 8px;
  padding: 4px 16px;
  width: 179px;
  text-align: right;
  font-family: var(--font-family-body);
  font-size: 1.125rem;
  color: var(--color-blue-buk);
  outline: none;
}
.rend-usuarios-input:focus,
.rend-usuarios-input:hover { border-color: var(--color-blue-buk); }

/* Desktop: cards en fila */
@media only screen and (min-width: 767px) {
  .choice-plan-rendiciones { display: none !important; }
  .rend-cards { flex-direction: row; }
  .rend-card { flex: 1; }
  .rend-panel-body { display: flex; flex-direction: column; }
  .rend-controls-col { display: flex; justify-content: flex-end; align-items: center; }
}

/* Mobile: pill visible, alternar card según data-active */
@media only screen and (max-width: 766px) {

  /* Header: columnas en fila, badge al extremo derecho */
  article.rend-article { display: flex !important; flex-direction: row; align-items: center; }
  .rend-header-col { flex: 1 !important; min-width: 0; max-width: none !important; }
  .rend-controls-col { display: flex !important; align-items: center; justify-content: flex-end; flex: 0 0 auto; max-width: none !important; }
  .rend-controls-col .rend-badge { font-size: 18px; padding: 4px 8px; }

  /* Panel: flex column para reordenar elementos */
  .rend-panel-body {
    display: flex;
    flex-direction: column;
  }
  .rend-panel-body .choice-plan-rendiciones { order: 1; }
  .rend-panel-body #rend-usuarios-group     { order: 2; display: flex !important; }
  .rend-panel-body #rend-disclaimer         { order: 3; }
  .rend-panel-body .rend-cards              { order: 4; }

  /* Pill: ancho completo, botones iguales */
  .choice-plan-rendiciones { display: flex; width: 100%; }
  .choice-plan-rendiciones button {
    flex: 1;
    text-align: center;
    padding: 14px 38px;
    font-size: 1.375rem;
  }

  /* Selector numérico: label encima, input ancho completo */
  .rend-usuarios-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .rend-usuarios-input {
    width: 100%;
    box-sizing: border-box;
  }

  /* Cards: alternancia por data-active */
  .rend-cards[data-active="esencial"] #card-rend-pro  { display: none; }
  .rend-cards[data-active="pro"] #card-rend-esencial  { display: none; }

  /* Botón selección: ancho completo en mobile */
  .rend-card__select { align-self: stretch; max-width: 100%; }
}

.close-modal {
  cursor: pointer;
  height: 15px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 15px;
  background: transparent;
  border: none;
}