/* =============================================
   BADGE
   ============================================= */
.fin-badge {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #73A0DB;
    border-radius: 8px;
    color: #73A0DB;
    font-size: 16px;
    font-weight: 400;
}

/* =============================================
   TOGGLE BUTTON
   ============================================= */
.fin-btn-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  justify-content: left;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-family: inherit;
  text-align: left;
  width: 100%;
}

.fin-chevron {
  color: #2F4DAA;
  transition: transform 250ms ease;
  flex-shrink: 0;
}

/* =============================================
   CHECKBOX LABEL
   ============================================= */
.fin-check-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.fin-label-on {
  display: none;
  align-items: center;
  gap: 4px;
  color: #2F4DAA;
  font-weight: 400;
}

.fin-label--checked .fin-label-off { display: none; }
.fin-label--checked .fin-label-on  { display: inline-flex; }

/* =============================================
   PANEL DESPLEGABLE
   ============================================= */
.fin-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms ease;
}

.fin-panel--open {
  max-height: 2000px;
  transition: max-height 500ms ease;
}

/* =============================================
   INPUT ROW (documentos + total)
   ============================================= */
.fin-input-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 767px) {
  .fin-input-row {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
}

.fin-input-group,
.fin-total-group {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fin-input-label {
  width: 100%;
  font-size: 16px;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fin-doc-input {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #C5CAD4;
  border-radius: 8px;
  font-size: 16px;
  text-align: center;
  font-family: inherit;
  color: #2F4DAA;
}

.fin-calc input[type=checkbox] {
    appearance: none;
    background-color: #E7EEFF;
    border: 1.5px solid var(--color-blue-buk, #2F4DAA);
    border-radius: 3px;
    cursor: pointer;
    height: 18px;
    width: 18px;
    flex-shrink: 0;
}

.fin-calc input[type=checkbox]:checked {
    background-color: var(--color-blue-buk, #2F4DAA);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    border-color: var(--color-blue-buk, #2F4DAA);
}

.fin-doc-input:focus {
  outline: none;
  border-color: #2F4DAA;
  box-shadow: 0 0 0 2px rgba(47, 77, 170, 0.1);
}

.fin-total-display {
  width: 100%;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid #C5CAD4;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
  color: #7d7d7d;
}

@media (min-width: 767px) {
  .fin-doc-input {
    width: 150px;
  }
  .fin-input-label {
    width: auto;
  }
  .fin-total-display {
    max-width: 150px;
  }
  .fin-total-group {
    justify-content: right;
  }
  .fin-module-card {
    width: 100%;
    max-width: 998px;
    margin: 0 auto 24px;
  }
}

/* =============================================
   BULLETS
   ============================================= */
.fin-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fin-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 18px;
  line-height: 1.5;
}

.fin-bullets li svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* =============================================
   TOOLTIP
   ============================================= */
.fin-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: default;
}

.fin-tooltip-inline {
  vertical-align: middle;
}

.fin-info-icon {
  color: #2F4DAA;
  opacity: 0.7;
  display: block;
}

.fin-tooltip-text {
  display: none;
  position: absolute;
      left: 128px;
    right: auto;
    top: -15px;
  transform: translateX(-50%);
  background: #2B3C6A;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  width: 220px;
  z-index: 200;
  pointer-events: none;
  font-weight: 400;
}

.fin-tooltip-wrap:hover .fin-tooltip-text,
.fin-tooltip-wrap:focus-within .fin-tooltip-text {
  display: block;
}

/* =============================================
   STICKY BAR FINANZAS
   ============================================= */
.fin-sticky {
  position: fixed;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 50;
  transform: translateY(100%);
  transition: transform 300ms ease;
  display: block !important;
}

.fin-sticky.show {
  top: 76px;
  bottom: auto;
  transform: translateY(0);
}

/* Caja pill del precio */
.fin-price-box {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 10px 28px;
  border-radius: 8px;
  border: 1px solid #D9E3FC;
  background: #F6F8FE;
}

.fin-price-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2F4DAA;
  font-family: var(--font-family-title, sans-serif);
}

.fin-price-tax {
  font-size: 1rem;
  font-weight: 500;
  color: #F79E1B;
}

/* Elementos exclusivos de mobile: ocultos en desktop */
.fin-sticky-title-mobile,
.fin-sticky-disclaimer {
  display: none;
}

@media (min-width: 767px) {
  .fin-sticky.show {
    bottom: 0;
    top: auto;
  }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
  .fin-btn-toggle {
    flex-direction: row;
    justify-content: left;
  }
  .fin-tooltip-text {
    left: -110px;
  }
  .fin-tooltip-text.tooltip-special {
    left: -50px; top: 18px;
  }  
  {#
  .fin-bullets li svg {
    display: none;
  }
  #}
  .fin-sticky-title-mobile,
  .fin-sticky-disclaimer {
    display: block;
  }

  .fin-sticky-left {
    display: none;
  }

  .fin-sticky-row {
    flex-direction: column;
    gap: 16px;
  }

  .fin-sticky-center,
  .fin-sticky-right {
    width: 100%;
    text-align: center;
  }

  .fin-price-box {
    width: 100%;
    justify-content: center;
  }

  .fin-sticky-right .btn {
    width: 100%;
  }
}

/* =============================================
   MODAL (reutiliza estilos del módulo RRHH)
   ============================================= */
