:root {
  --azul: #0D2C6C;
  --amarillo: #F2C230;
  --fondo: #F4F6FA;
  --gris: #E9ECEF;
  --gris-borde: #D8DEE8;
  --texto: #263238;
  --rojo: #D32F2F;
  --blanco: #FFFFFF;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--fondo);
  color: var(--texto);
}

.page {
  min-height: 100vh;
  padding: 28px 50px;
}

.screen {
  display: none;
  width: 100%;
}

.screen.active {
  display: block;
}

.card {
  width: 100%;
  max-width: 1050px;
  margin: 0 auto;
  background: var(--blanco);
  border-radius: 18px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(13, 44, 108, 0.10);
}

.home-card {
  max-width: 450px;
  text-align: center;
  margin-top: 6vh;
}

.logo {
  width: 125px;
  max-width: 50%;
  object-fit: contain;
  margin-bottom: 12px;
  border-radius: 14px;
}

.page-header {
  max-width: 1050px;
  margin: 0 auto 14px auto;
  background: white;
  border-radius: 16px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 5px 16px rgba(13, 44, 108, 0.08);
}

.page-header img {
  width: 78px;
  height: auto;
  object-fit: contain;
}

.page-header-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-header-title strong {
  color: var(--azul);
  font-size: 20px;
}

.page-header-title span {
  color: #666;
  font-size: 14px;
}

.top-actions {
  max-width: 1050px;
  margin: 0 auto 10px auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--azul);
}

h1 {
  font-size: 25px;
  font-weight: 800;
}

h2 {
  font-size: 23px;
  font-weight: 800;
}

h3 {
  font-size: 16px;
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 12px;
  border-left: 5px solid var(--amarillo);
  padding-left: 10px;
}

.subtitle {
  color: var(--azul);
  font-size: 18px;
  font-weight: 700;
  margin-top: 5px;
}

.module-title {
  color: var(--amarillo);
  font-size: 18px;
  font-weight: 800;
  margin-top: 5px;
  margin-bottom: 20px;
}

.description {
  color: #555;
  margin-top: 6px;
  margin-bottom: 16px;
  font-size: 14px;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 11px;
  padding: 12px 15px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 9px;
  transition: 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.btn-primary {
  background: var(--azul);
  color: white;
}

.btn-yellow {
  background: var(--amarillo);
  color: var(--azul);
}

.btn-gray {
  background: #DDE1E6;
  color: var(--azul);
  width: auto;
  padding: 9px 15px;
  font-size: 13px;
}

.btn-back-blue {
  background: #0D2C6C !important;
  color: white !important;
  width: auto;
  padding: 9px 15px;
  font-size: 13px;
}

.btn-history-home {
  margin-top: 14px;
}

.form-card {
  max-width: 1050px;
}

.field {
  margin-bottom: 12px;
}

label {
  display: block;
  color: #344054;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

input,
select {
  width: 100%;
  height: 40px;
  border: 1.4px solid var(--gris-borde);
  border-radius: 9px;
  padding: 0 11px;
  font-size: 14px;
  background: white;
  color: var(--texto);
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(13, 44, 108, 0.08);
}

input.error,
select.error {
  border-color: var(--rojo);
  background: #FFF7F7;
}

input[readonly] {
  background: var(--gris);
  color: #555;
  font-weight: 700;
}

.error-message {
  display: none;
  color: var(--rojo);
  font-weight: 700;
  margin-top: 10px;
  font-size: 14px;
}

.radio-row {
  display: flex;
  gap: 22px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 4px;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
}

.radio-row input {
  width: auto;
  height: auto;
}

.result-card {
  margin-top: 16px;
  border: 1px solid var(--amarillo);
  border-radius: 16px;
  padding: 16px;
  background: white;
  box-shadow: 0 6px 18px rgba(13, 44, 108, 0.08);
}

.result-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.result-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid #EEF1F5;
  font-size: 13.5px;
}

.result-row:last-child {
  border-bottom: none;
}

.result-row strong {
  color: var(--azul);
}

.highlight {
  color: var(--azul);
  font-size: 15px;
  font-weight: 800;
}

.hidden {
  display: none !important;
}

/* Organización visual por secciones */
.card h3 + .field,
.card h3 + .radio-row {
  margin-top: 8px;
}

/* HISTORIAL */
.history-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-clear-history {
  background: #0D2C6C !important;
  color: white !important;
  width: auto;
  padding: 9px 15px;
  font-size: 13px;
}

.history-panel {
  margin-bottom: 30px;
}

.history-controls {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-end;
  margin-top: 10px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #E5EAF2;
  border-radius: 16px;
  background: #FBFCFE;
}

.history-tabs {
  display: flex;
  gap: 10px;
}

.history-tab {
  border: 1px solid var(--gris-borde);
  background: white;
  color: var(--azul);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.history-tab.active {
  background: var(--azul);
  color: white;
  border-color: var(--azul);
  box-shadow: 0 5px 14px rgba(13, 44, 108, 0.18);
}

.history-filter-box {
  min-width: 230px;
}

.history-empty {
  border: 1px dashed var(--gris-borde);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  color: #667085;
  background: #FAFBFC;
  font-weight: 700;
}

.history-card {
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(13, 44, 108, 0.08);
  padding: 18px;
  margin-top: 18px;
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid #EEF1F5;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.history-title-block strong {
  display: block;
  color: var(--azul);
  font-size: 17px;
}

.history-title-block span {
  display: block;
  color: #667085;
  font-size: 13px;
  margin-top: 4px;
}

.history-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.history-badge {
  background: rgba(242, 194, 48, 0.22);
  color: var(--azul);
  font-weight: 800;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.history-delete-btn {
  border: 1px solid rgba(211, 47, 47, 0.25);
  background: #FFF5F5;
  color: #B42318;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.history-delete-btn:hover {
  background: #FFE3E3;
  transform: translateY(-1px);
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.history-cell {
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  min-height: 62px;
}

.history-cell span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.history-cell strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.history-cell-highlight {
  background: rgba(13, 44, 108, 0.06);
  border-color: rgba(13, 44, 108, 0.25);
}

.history-cell-highlight strong {
  font-size: 15px;
}

/* Diseño más compacto en pantallas grandes */
@media (min-width: 950px) {
  .form-card {
    padding: 24px 30px;
  }

  .form-card .field {
    display: inline-block;
    vertical-align: top;
    width: calc(33.33% - 11px);
    margin-right: 12px;
  }

  .form-card .field:nth-of-type(3n) {
    margin-right: 0;
  }

  .form-card h3,
  .form-card .radio-row,
  .form-card .btn,
  .form-card .error-message,
  .form-card .result-card,
  .form-card p,
  .form-card h2 {
    display: block;
    width: 100%;
  }

  .form-card .btn {
    max-width: 320px;
  }
}

/* Tablet */
@media (max-width: 949px) {
  .page {
    padding: 20px;
  }

  .form-card .field {
    display: inline-block;
    vertical-align: top;
    width: calc(50% - 8px);
    margin-right: 10px;
  }

  .form-card .field:nth-of-type(2n) {
    margin-right: 0;
  }

  .history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Celular */
@media (max-width: 600px) {
  .page {
    padding: 14px;
  }

  .card {
    padding: 18px;
    border-radius: 18px;
  }

  .home-card {
    margin-top: 3vh;
  }

  .page-header {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .page-header img {
    width: 90px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 21px;
  }

  .form-card .field {
    width: 100%;
    margin-right: 0;
    display: block;
  }

  .result-row {
    flex-direction: column;
    gap: 3px;
  }

  .history-top-actions,
  .history-controls,
  .history-card-header,
  .history-header-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .history-tabs {
    flex-direction: column;
  }

  .history-filter-box {
    min-width: 100%;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-badge {
    white-space: normal;
    text-align: center;
  }

  .history-delete-btn {
    width: 100%;
  }
}

/* HISTORIAL COMPACTO - versión mejorada */
.history-top-actions {
  max-width: 1050px;
  margin: 0 auto 12px auto;
  display: flex !important;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

.history-top-actions .btn {
  width: auto !important;
  margin-top: 0 !important;
}

.history-controls-compact {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px 0;
  border: 1px solid #E5EAF2;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.history-tabs {
  display: inline-flex !important;
  gap: 0 !important;
  padding: 4px;
  background: #EEF2F8;
  border: 1px solid #D8DEE8;
  border-radius: 999px;
}

.history-tab {
  appearance: none;
  border: none !important;
  background: transparent !important;
  color: var(--azul) !important;
  border-radius: 999px !important;
  padding: 9px 18px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer;
  line-height: 1;
  box-shadow: none !important;
}

.history-tab.active {
  background: var(--azul) !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 14px rgba(13, 44, 108, 0.22) !important;
}

.history-filter-compact {
  min-width: 180px !important;
  max-width: 220px;
}

.history-filter-compact label {
  font-size: 11.5px;
  margin-bottom: 4px;
}

.history-filter-compact select {
  height: 38px;
  border-radius: 999px;
  font-weight: 700;
  padding-left: 14px;
}

.history-card-compact {
  padding: 0 !important;
  margin-top: 12px !important;
  overflow: hidden;
  border: 1px solid #E5EAF2 !important;
  border-radius: 16px !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(13, 44, 108, 0.06) !important;
}

.history-compact-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.history-compact-left {
  min-width: 0;
}

.history-number-type {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.history-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 44, 108, 0.08);
  color: var(--azul);
  border: 1px solid rgba(13, 44, 108, 0.15);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 900;
}

.history-number-type strong {
  color: var(--azul);
  font-size: 18px;
  font-weight: 900;
}

.history-date {
  display: block;
  color: #667085;
  font-size: 12.5px;
  margin-top: 5px;
}

.history-compact-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.history-total-badge {
  background: rgba(242, 194, 48, 0.23) !important;
  border: 1px solid rgba(242, 194, 48, 0.50);
  color: var(--azul) !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  padding: 8px 13px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

.history-detail-btn,
.history-delete-btn {
  appearance: none;
  border-radius: 999px !important;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: 0.2s;
  line-height: 1;
}

.history-detail-btn {
  border: 1px solid rgba(13, 44, 108, 0.22) !important;
  background: #F4F7FB !important;
  color: var(--azul) !important;
}

.history-detail-btn:hover {
  background: #EAF0F8 !important;
  transform: translateY(-1px);
}

.history-delete-btn {
  border: 1px solid rgba(211, 47, 47, 0.28) !important;
  background: #FFF7F7 !important;
  color: #B42318 !important;
}

.history-delete-btn:hover {
  background: #FFE8E8 !important;
  transform: translateY(-1px);
}

.history-detail-panel {
  padding: 14px 16px 16px 16px;
  border-top: 1px solid #EEF1F5;
  background: #FBFCFE;
}

.history-grid-compact {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.history-grid-compact .history-cell {
  min-height: auto !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  background: #FFFFFF !important;
}

.history-grid-compact .history-cell span {
  font-size: 11.5px !important;
  margin-bottom: 3px !important;
}

.history-grid-compact .history-cell strong {
  font-size: 13px !important;
}

.history-grid-compact .history-cell-highlight {
  background: rgba(13, 44, 108, 0.055) !important;
}

.history-empty {
  margin-top: 12px;
}

@media (max-width: 949px) {
  .history-controls-compact,
  .history-compact-main {
    flex-direction: column;
    align-items: stretch;
  }

  .history-compact-right {
    justify-content: flex-start;
  }

  .history-filter-compact {
    max-width: none;
    width: 100%;
  }

  .history-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 600px) {
  .history-tabs {
    width: 100%;
  }

  .history-tab {
    flex: 1;
  }

  .history-compact-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .history-total-badge {
    grid-column: 1 / -1;
    text-align: center;
  }

  .history-detail-btn,
  .history-delete-btn {
    width: 100%;
  }

  .history-grid-compact {
    grid-template-columns: 1fr !important;
  }
}


/* RESULTADOS DE CRÉDITO MÁS LIMPIOS Y COMPACTOS */
.result-card-modern {
  border: 1px solid rgba(242, 194, 48, 0.75);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFF 100%);
}

.result-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #EEF1F5;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.result-card-header h3 {
  margin: 0;
  padding-left: 0;
  border-left: none;
  color: var(--azul);
  font-size: 20px;
}

.result-card-header p {
  margin: 4px 0 0 0;
  color: #667085;
  font-size: 13px;
}

.result-main-badge {
  background: rgba(242, 194, 48, 0.22);
  color: var(--azul);
  border: 1px solid rgba(242, 194, 48, 0.5);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.result-item {
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  min-height: 62px;
}

.result-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.result-item strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}

.result-item-highlight {
  background: rgba(13, 44, 108, 0.055);
  border-color: rgba(13, 44, 108, 0.22);
}

.result-item-highlight strong {
  font-size: 15px;
}

@media (max-width: 949px) {
  .result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .result-card-header {
    flex-direction: column;
  }

  .result-main-badge {
    white-space: normal;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}


/* RESULTADOS ORGANIZADOS POR BLOQUES */
.result-card-grouped {
  padding: 16px;
}

.result-group-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.result-block {
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  background: #F8FAFC;
  overflow: hidden;
}

.result-block h4 {
  margin: 0;
  padding: 10px 13px;
  color: var(--azul);
  font-size: 13px;
  font-weight: 900;
  border-bottom: 1px solid #E5EAF2;
}

.result-block-datos h4 {
  background: rgba(13, 44, 108, 0.07);
}

.result-block-condiciones h4 {
  background: rgba(242, 194, 48, 0.16);
}

.result-block-gastos h4 {
  background: rgba(211, 47, 47, 0.07);
}

.result-block-resumen h4 {
  background: rgba(46, 125, 50, 0.08);
}

.result-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-bottom: 1px solid #EAF0F6;
  align-items: flex-start;
}

.result-line:last-child {
  border-bottom: none;
}

.result-line span {
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.result-line strong {
  color: var(--azul);
  font-size: 13.5px;
  font-weight: 900;
  text-align: right;
  line-height: 1.3;
}

.result-line-highlight {
  background: rgba(13, 44, 108, 0.045);
}

.result-line-highlight strong {
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .result-group-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .result-line {
    flex-direction: column;
    gap: 4px;
  }

  .result-line strong {
    text-align: left;
  }
}


/* APARTADO DE CÁLCULO INICIAL MICROCRÉDITO */
.helper-panel {
  border: 1px solid rgba(13, 44, 108, 0.16);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, rgba(13, 44, 108, 0.045), rgba(242, 194, 48, 0.08));
}

.helper-panel h3 {
  margin-top: 0;
}

.helper-panel p {
  margin: 0 0 12px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.btn-small-action {
  max-width: 260px;
  margin-top: 4px;
}

.helper-note {
  margin-top: 8px;
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
}

/* RESULTADOS VERTICALES TIPO INFORME */
.result-card-vertical {
  border: 1px solid rgba(242, 194, 48, 0.70);
  border-radius: 18px;
  padding: 16px;
  background: #FFFFFF;
}

.result-card-header-vertical {
  align-items: center;
  border-bottom: 1px solid #EAF0F6;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.result-vertical-layout {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-section-line {
  border: 1px solid #E3EAF3;
  border-radius: 13px;
  overflow: hidden;
  background: #FAFCFF;
}

.result-section-line h4 {
  margin: 0;
  padding: 9px 13px;
  color: var(--azul);
  font-size: 13.5px;
  font-weight: 900;
  border-bottom: 1px solid #E3EAF3;
  letter-spacing: 0.2px;
}

.result-section-datos h4 {
  background: rgba(13, 44, 108, 0.08);
}

.result-section-inicial h4 {
  background: rgba(242, 194, 48, 0.18);
}

.result-section-costos h4 {
  background: rgba(13, 44, 108, 0.055);
}

.result-section-contribuciones h4 {
  background: rgba(242, 194, 48, 0.14);
}

.result-section-garantias h4 {
  background: rgba(211, 47, 47, 0.065);
}

.result-section-simulacion h4 {
  background: rgba(13, 44, 108, 0.075);
}

.result-section-desembolso h4 {
  background: rgba(46, 125, 50, 0.09);
}

.result-section-resumen h4 {
  background: rgba(102, 112, 133, 0.10);
}

.result-row-line {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, auto);
  gap: 14px;
  padding: 8px 13px;
  border-bottom: 1px solid #EDF2F7;
  align-items: center;
}

.result-row-line:last-child {
  border-bottom: none;
}

.result-row-line span {
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.result-row-line strong {
  color: var(--azul);
  font-size: 13.5px;
  font-weight: 900;
  text-align: right;
  line-height: 1.3;
}

.result-row-highlight {
  background: rgba(242, 194, 48, 0.13);
}

.result-row-highlight strong {
  font-size: 14.5px;
}

@media (max-width: 600px) {
  .result-card-header-vertical {
    align-items: flex-start;
  }

  .result-row-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .result-row-line strong {
    text-align: left;
  }

  .btn-small-action {
    max-width: none;
  }
}


/* SIMULADOR EXEQUIAL */
#exequial .form-card h3 {
  margin-top: 18px;
}

#exequial .result-section-inicial h4 {
  background: rgba(242, 194, 48, 0.16);
}


/* SIMULADOR EXEQUIAL POR PLANES */
.plan-exequial-box {
  border: 1px solid #DFE7F1;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 12px;
  margin-bottom: 12px;
}

.plan-exequial-header {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 12px;
  align-items: center;
}

.plan-exequial-header strong {
  color: var(--azul);
  font-size: 15px;
}

.plan-exequial-header select {
  margin: 0;
}

.plan-exequial-detalle {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5EAF2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.oculto {
  display: none !important;
}

@media (max-width: 700px) {
  .plan-exequial-header {
    grid-template-columns: 1fr;
  }

  .plan-exequial-detalle {
    grid-template-columns: 1fr;
  }
}


/* AJUSTE PUNTUAL: select corto de Sí/No en exequial sin montar la flecha */
.plan-exequial-header {
  grid-template-columns: 1fr 145px;
}

.plan-exequial-header select {
  font-size: 13px;
  padding-left: 9px;
  padding-right: 30px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .plan-exequial-header {
    grid-template-columns: 1fr;
  }
}


/* ===============================
   ALERTAS PERSONALIZADAS CON SOL
   =============================== */
body.sun-modal-open {
  overflow: hidden;
}

.sun-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 18, 48, 0.72);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.sun-modal-hidden {
  display: none;
}

.sun-modal-dialog {
  width: min(960px, 100%);
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(4, 20, 56, 0.35);
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, 360px) 1fr;
  overflow: hidden;
  border: 1px solid rgba(13, 57, 128, 0.1);
}

.sun-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #f3f6fb;
  color: #61708a;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.sun-modal-figure {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 28px 12px 0;
}

.sun-modal-figure img {
  width: 100%;
  max-width: 460px;
  height: 460px;
  object-fit: contain;
}

.sun-modal-content {
  padding: 58px 46px 42px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sun-modal-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #dce9ff;
  color: #0e3a8a;
  font-size: 54px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

#sunModalTitle {
  color: #0d3b86;
  font-size: 2.2rem;
  line-height: 1.2;
  margin: 0 0 16px;
  max-width: 540px;
}

#sunModalMessage {
  color: #46546f;
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0;
  max-width: 560px;
}

.sun-modal-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 20px 0 24px;
  color: #f0bf2d;
}

.sun-modal-divider span {
  width: 110px;
  height: 3px;
  border-radius: 99px;
  background: #f0bf2d;
}

.sun-modal-divider i {
  font-style: normal;
  font-size: 24px;
}

.sun-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.sun-modal-btn {
  min-width: 190px;
  padding: 16px 24px;
  border-radius: 22px;
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sun-modal-btn:hover {
  transform: translateY(-1px);
}

.sun-modal-btn-primary {
  border: none;
  background: linear-gradient(135deg, #0f51bf 0%, #0b3f9d 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 81, 191, 0.25);
}

.sun-modal-btn-secondary {
  border: 2px solid #1b4fa7;
  background: #ffffff;
  color: #1b4fa7;
}

@media (max-width: 860px) {
  .sun-modal-dialog {
    grid-template-columns: 1fr;
    max-width: 540px;
  }

  .sun-modal-figure {
    padding: 18px 18px 0;
  }

  .sun-modal-figure img {
    max-width: 250px;
  }

  .sun-modal-content {
    padding: 26px 24px 30px;
  }

  #sunModalTitle {
    font-size: 1.7rem;
  }

  #sunModalMessage {
    font-size: 1rem;
  }
}

@media (max-width: 520px) {
  .sun-modal-overlay {
    padding: 14px;
  }

  .sun-modal-dialog {
    border-radius: 22px;
  }

  .sun-modal-content {
    padding: 22px 18px 24px;
  }

  .sun-modal-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .sun-modal-icon {
    width: 74px;
    height: 74px;
    font-size: 42px;
    margin-bottom: 16px;
  }

  #sunModalTitle {
    font-size: 1.45rem;
  }

  .sun-modal-divider span {
    width: 70px;
  }

  .sun-modal-btn {
    min-width: 150px;
    width: 100%;
    font-size: 1.02rem;
  }

  .sun-modal-actions {
    width: 100%;
  }
}


/* AJUSTE FINAL: MISMO TAMAÑO PARA ALERTAS DE ELIMINAR HISTORIAL Y ELIMINAR SIMULACIÓN */
.sun-modal-dialog {
  width: min(900px, 100%);
  min-height: 440px;
  grid-template-columns: 420px 1fr;
}

.sun-modal-figure {
  min-height: 440px;
}

.sun-modal-figure img {
  width: 100%;
  max-width: 390px;
  height: 390px;
  object-fit: contain;
}

.sun-modal-content {
  min-height: 440px;
  padding-top: 42px;
  padding-bottom: 34px;
}

#sunModalTitle {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#sunModalMessage {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 860px) {
  .sun-modal-dialog {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .sun-modal-figure {
    min-height: auto;
  }

  .sun-modal-figure img {
    max-width: 270px;
    height: 270px;
  }

  .sun-modal-content {
    min-height: auto;
  }

  #sunModalTitle,
  #sunModalMessage {
    min-height: auto;
  }
}

.sun-modal-dialog {
  background: #ffffff !important;
  grid-template-columns: 420px 1fr;
}

.sun-modal-figure {
  background: #ffffff !important;
  min-height: 440px;
  padding: 0 !important;
  display: flex;
  align-items: end;
  justify-content: center;
  overflow: hidden;
}

.sun-modal-content {
  background: #ffffff !important;
}

/* ajustar sol de info */
.sun-modal-figure img {
  width: 100%;
  max-width: 440px;
  height: 435px;
  object-fit: cover;
  object-position: center bottom;
  background: #ffffff !important;
}

/* CONSULTA CLIENTE */
.consulta-card .consulta-bases-panel {
  border: 1px solid rgba(13, 44, 108, 0.16);
  border-radius: 16px;
  padding: 14px;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, rgba(13, 44, 108, 0.045), rgba(242, 194, 48, 0.08));
}

.consulta-bases-panel h3 {
  margin-top: 0;
}

.consulta-bases-panel p {
  margin: 0 0 12px 0;
  color: #475467;
  font-size: 13px;
  line-height: 1.45;
}

.base-status {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.base-status-ok {
  color: #157347;
}

.consulta-result-card {
  margin-top: 16px;
  border: 1px solid rgba(242, 194, 48, 0.70);
  border-radius: 18px;
  padding: 16px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(13, 44, 108, 0.08);
}

.consulta-result-header {
  border-bottom: 1px solid #EEF1F5;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.consulta-result-header h3 {
  margin: 0;
  border-left: none;
  padding-left: 0;
  color: var(--azul);
}

.consulta-result-header p {
  margin: 4px 0 0 0;
  color: #667085;
  font-size: 13px;
}

.consulta-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.consulta-result-item {
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  min-height: 62px;
}

.consulta-result-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 5px;
}

.consulta-result-item strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}

.consulta-result-highlight {
  background: rgba(242, 194, 48, 0.18);
  border-color: rgba(242, 194, 48, 0.45);
}

@media (max-width: 949px) {
  .consulta-result-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .consulta-result-grid {
    grid-template-columns: 1fr;
  }
}

/* AJUSTE CONSULTA CLIENTE - BASES AUTOMÁTICAS */
.consulta-base-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.consulta-base-card {
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 10px 12px;
}

.consulta-base-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.consulta-base-card strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 600px) {
  .consulta-base-status-grid {
    grid-template-columns: 1fr;
  }
}


/* CONSULTA CLIENTE - LISTADO GENERAL */
.consulta-filtros-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.consulta-actions-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 4px 0 14px;
}

.consulta-actions-row .btn {
  width: auto;
  min-width: 180px;
}

.consulta-table-card {
  margin-top: 16px;
  border: 1px solid rgba(242, 194, 48, 0.70);
  border-radius: 18px;
  padding: 16px;
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(13, 44, 108, 0.08);
}

.consulta-table-header {
  border-bottom: 1px solid #EEF1F5;
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.consulta-table-header h3 {
  margin: 0;
  border-left: none;
  padding-left: 0;
  color: var(--azul);
}

.consulta-table-header p {
  margin: 4px 0 0 0;
  color: #667085;
  font-size: 13px;
}

.consulta-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
}

.consulta-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #FFFFFF;
}

.consulta-table th {
  background: var(--azul);
  color: #FFFFFF;
  text-align: left;
  font-size: 13px;
  padding: 12px 14px;
  white-space: nowrap;
}

.consulta-table td {
  border-bottom: 1px solid #EAF0F6;
  color: #263238;
  font-size: 13px;
  padding: 10px 14px;
  vertical-align: middle;
}

.consulta-table tbody tr:hover {
  background: rgba(13, 44, 108, 0.035);
}

.consulta-table td:last-child,
.consulta-table th:last-child {
  text-align: center;
}

.estado-producto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  text-transform: lowercase;
}

.estado-si {
  background: rgba(46, 125, 50, 0.12);
  color: #157347;
}

.estado-no {
  background: rgba(211, 47, 47, 0.10);
  color: #B42318;
}

@media (max-width: 949px) {
  .consulta-filtros-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .consulta-actions-row {
    flex-direction: column;
    align-items: stretch;
  }

  .consulta-actions-row .btn {
    width: 100%;
  }
}


/* CONSULTA CLIENTE - PAGINACIÓN Y EXPORTACIÓN */
.consulta-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.consulta-page-btn {
  border: 1px solid #D8DEE8;
  background: #FFFFFF;
  color: var(--azul);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.consulta-page-btn:hover:not(:disabled) {
  background: rgba(13, 44, 108, 0.08);
  transform: translateY(-1px);
}

.consulta-page-btn.active {
  background: var(--azul);
  border-color: var(--azul);
  color: #FFFFFF;
}

.consulta-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.consulta-page-dots {
  color: #667085;
  font-weight: 900;
  padding: 0 4px;
}

@media (max-width: 600px) {
  .consulta-pagination {
    justify-content: flex-start;
  }

  .consulta-page-btn {
    padding: 7px 10px;
    font-size: 12px;
  }
}


/* BOTÓN VERDE PARA EXPORTAR EXCEL */
.btn-export-excel {
  background: #107C41 !important;
  color: #FFFFFF !important;
  width: auto;
  min-width: 180px;
}

.btn-export-excel:hover {
  background: #0B6A36 !important;
  filter: none;
}


/* AJUSTE FILTRO TOTAL PRODUCTO */
.consulta-filtros-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 949px) {
  .consulta-filtros-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .consulta-filtros-grid {
    grid-template-columns: 1fr;
  }
}


/* CONSULTA CLIENTE - 4 PRODUCTOS */
.consulta-base-status-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.consulta-table-4-productos {
  min-width: 980px;
}

.consulta-table-4-productos th,
.consulta-table-4-productos td {
  font-size: 12.5px;
  padding: 9px 10px;
}

@media (max-width: 949px) {
  .consulta-base-status-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .consulta-base-status-grid-4 {
    grid-template-columns: 1fr;
  }
}


/* CONSULTA CLIENTE - 5 PRODUCTOS RESUMIDO */
.consulta-base-status-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.consulta-table-resumen-productos { min-width: 760px; }
.consulta-table-resumen-productos th, .consulta-table-resumen-productos td { font-size: 12.5px; padding: 9px 10px; }
.consulta-productos-btn { border: 1px solid rgba(13, 44, 108, 0.22); background: #F4F7FB; color: var(--azul); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 800; cursor: pointer; }
.consulta-productos-btn:hover { background: #EAF0F8; transform: translateY(-1px); }
.consulta-detalle-row td { background: #FBFCFE !important; padding: 0 !important; border-top: none !important; }
.consulta-productos-detalle { padding: 12px 14px; border-top: 1px solid #E5EAF2; }
.consulta-productos-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.consulta-producto-card { border: 1px solid #E5EAF2; background: #FFFFFF; border-radius: 12px; padding: 8px 10px; }
.consulta-producto-card span { display: block; color: #667085; font-size: 11.5px; font-weight: 800; margin-bottom: 4px; }
.consulta-producto-card strong { display: block; font-size: 14px; font-weight: 900; text-transform: lowercase; }
.estado-texto-si { color: #157347; }
.estado-texto-no { color: #B42318; }
@media (max-width: 1100px) { .consulta-base-status-grid-5, .consulta-productos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .consulta-base-status-grid-5, .consulta-productos-grid { grid-template-columns: 1fr; } }


/* CONSULTA CLIENTE - FILTRO CRÉDITO */
@media (min-width: 950px) {
  .consulta-filtros-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}


/* CONSULTA CLIENTE - FILTRO TIENE AHORRO */
@media (min-width: 950px) {
  .consulta-filtros-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* CONSULTA CLIENTE - AJUSTE FINAL FILTROS Y ESTADOS */
.consulta-card .consulta-filtros-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  align-items: end;
}

.consulta-card .consulta-filtros-grid .field {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.consulta-card .consulta-filtros-grid input,
.consulta-card .consulta-filtros-grid select {
  width: 100% !important;
}

.consulta-actions-row {
  justify-content: flex-start;
  margin-top: 14px;
}

.consulta-table-resumen-productos {
  min-width: 850px;
}

.consulta-aviso {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.consulta-aviso-ok {
  background: rgba(46, 125, 50, 0.12);
  color: #157347;
}

.consulta-aviso-alerta {
  background: #FFF4D6;
  color: #B26A00;
}

.estado-texto-alerta {
  color: #B26A00;
}

@media (max-width: 1100px) {
  .consulta-card .consulta-filtros-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .consulta-card .consulta-filtros-grid {
    grid-template-columns: 1fr !important;
  }
}


/* AJUSTE FINAL LISTADO DE ASOCIADOS - COLUMNA TIENE AHORRO */
.consulta-table-resumen-productos {
  min-width: 920px !important;
  table-layout: fixed;
}

.consulta-table-resumen-productos th,
.consulta-table-resumen-productos td {
  padding: 10px 12px !important;
  vertical-align: middle;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 145px;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 220px;
}

.consulta-table-resumen-productos th:nth-child(3),
.consulta-table-resumen-productos td:nth-child(3) {
  width: 125px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(4),
.consulta-table-resumen-productos td:nth-child(4) {
  width: 120px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(5),
.consulta-table-resumen-productos td:nth-child(5) {
  width: 210px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 140px;
  text-align: center;
}

.consulta-table-resumen-productos td:nth-child(1) {
  color: var(--azul);
  font-weight: 800;
}

.consulta-table-resumen-productos td:nth-child(2) {
  white-space: normal;
}

.consulta-table-resumen-productos .estado-producto {
  min-width: 58px;
}

.consulta-table-resumen-productos .consulta-aviso {
  min-width: 160px;
}

@media (max-width: 700px) {
  .consulta-table-resumen-productos {
    min-width: 880px !important;
  }
}


/* AJUSTE FINAL LISTADO DE ASOCIADOS - COLUMNA TIENE CRÉDITO */
.consulta-table-resumen-productos {
  min-width: 1040px !important;
  table-layout: fixed;
}

.consulta-table-resumen-productos th,
.consulta-table-resumen-productos td {
  padding: 10px 12px !important;
  vertical-align: middle;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 140px;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 210px;
}

.consulta-table-resumen-productos th:nth-child(3),
.consulta-table-resumen-productos td:nth-child(3) {
  width: 120px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(4),
.consulta-table-resumen-productos td:nth-child(4) {
  width: 120px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(5),
.consulta-table-resumen-productos td:nth-child(5) {
  width: 120px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 200px;
  text-align: center;
}

.consulta-table-resumen-productos th:nth-child(7),
.consulta-table-resumen-productos td:nth-child(7) {
  width: 130px;
  text-align: center;
}

.consulta-table-resumen-productos td:nth-child(1) {
  color: var(--azul);
  font-weight: 800;
}

.consulta-table-resumen-productos td:nth-child(2) {
  white-space: normal;
}

.consulta-table-resumen-productos .estado-producto {
  min-width: 58px;
}

.consulta-table-resumen-productos .consulta-aviso {
  min-width: 160px;
}

@media (max-width: 700px) {
  .consulta-table-resumen-productos {
    min-width: 1000px !important;
  }
}


/* AJUSTE FINAL: LISTADO FIJO SIN MOVER A LOS LADOS */
.consulta-table-wrap {
  overflow-x: hidden !important;
}

.consulta-table-resumen-productos {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.consulta-table-resumen-productos th,
.consulta-table-resumen-productos td {
  padding: 9px 8px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 14% !important;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 18% !important;
}

.consulta-table-resumen-productos th:nth-child(3),
.consulta-table-resumen-productos td:nth-child(3) {
  width: 11% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(4),
.consulta-table-resumen-productos td:nth-child(4) {
  width: 11% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(5),
.consulta-table-resumen-productos td:nth-child(5) {
  width: 11% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 22% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(7),
.consulta-table-resumen-productos td:nth-child(7) {
  width: 13% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos td:nth-child(1) {
  color: var(--azul);
  font-weight: 800;
  word-break: break-word;
}

.consulta-table-resumen-productos td:nth-child(2) {
  white-space: normal !important;
  word-break: normal;
}

.consulta-table-resumen-productos .estado-producto {
  min-width: 42px !important;
  padding: 5px 8px !important;
}

.consulta-table-resumen-productos .consulta-aviso {
  min-width: 0 !important;
  width: 100% !important;
  padding: 6px 8px !important;
  white-space: normal !important;
  line-height: 1.2;
}

.consulta-table-resumen-productos .consulta-productos-btn {
  width: 100% !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  font-size: 11.5px !important;
  white-space: normal !important;
}

/* En celular se permite desplazamiento porque no cabe cómodamente en pantalla pequeña */
@media (max-width: 700px) {
  .consulta-table-wrap {
    overflow-x: auto !important;
  }

  .consulta-table-resumen-productos {
    min-width: 900px !important;
  }
}

/* AJUSTES CRÉDITO CONSUMO - CONTRIBUCIÓN INICIAL Y VALOR SUGERIDO */
.helper-note {
  margin: 8px 0 12px;
  color: #0D2C6C;
  font-size: 13px;
  font-weight: 700;
}

.field small {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}


/* AGENCIA DE VIAJE */
.viaje-card .viaje-form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}

.viaje-card .viaje-filtros-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
}

.viaje-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed;
}

.viaje-table th,
.viaje-table td {
  padding: 10px 9px !important;
  font-size: 12px !important;
  vertical-align: middle;
}

.viaje-table th:nth-child(1),
.viaje-table td:nth-child(1) {
  width: 22%;
  word-break: break-word;
}

.viaje-table th:nth-child(2),
.viaje-table td:nth-child(2) {
  width: 14%;
}

.viaje-table th:nth-child(3),
.viaje-table td:nth-child(3) {
  width: 14%;
}

.viaje-table th:nth-child(4),
.viaje-table td:nth-child(4) {
  width: 20%;
}

.viaje-table th:nth-child(5),
.viaje-table td:nth-child(5) {
  width: 18%;
  text-align: center;
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  width: 12%;
  text-align: center;
}

.viaje-editar-panel {
  padding: 14px !important;
}

.viaje-editar-readonly {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  color: #334155;
  font-size: 12px;
}

.viaje-editar-readonly strong {
  color: #0D2C6C;
}

.viaje-editar-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
}

@media (max-width: 900px) {
  .viaje-card .viaje-form-grid,
  .viaje-card .viaje-filtros-grid,
  .viaje-editar-grid {
    grid-template-columns: 1fr !important;
  }

  .viaje-table {
    min-width: 850px !important;
  }

  .consulta-table-wrap {
    overflow-x: auto !important;
  }
}


/* AGENCIA DE VIAJE - ACCIONES Y CAMPO OTRO */
.viaje-acciones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.btn-delete-viaje {
  border: none;
  border-radius: 999px;
  padding: 7px 10px;
  background: #FEE4E2;
  color: #B42318;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #FDA29B;
}

.btn-delete-viaje:hover {
  background: #FDD5D1;
}

.viaje-card input:disabled {
  background: #EEF2F8;
  color: #98A2B3;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .viaje-acciones {
    min-width: 95px;
  }
}


/* CONSULTA CLIENTE - EXEQUIAL Y MEDALLAS DE SOL */
.consulta-base-status-grid-6 {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.cedula-medalla-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.medalla-sol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(13, 44, 108, 0.18);
  border: 2px solid rgba(255,255,255,0.9);
}

.sol-oro {
  background: radial-gradient(circle at 35% 30%, #FFF7B0 0%, #FFD84D 45%, #D99A00 100%);
  color: #7A4B00;
}

.sol-plata {
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #D9E2EC 45%, #94A3B8 100%);
  color: #334155;
}

.sol-bronce {
  background: radial-gradient(circle at 35% 30%, #FFD9A8 0%, #C47A32 45%, #8A4B1A 100%);
  color: #FFF7ED;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 15% !important;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 17% !important;
}

.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 21% !important;
}

@media (max-width: 1200px) {
  .consulta-base-status-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* AJUSTES CONSULTA CLIENTE EXEQUIAL - TABULADO Y PRESENTACIÓN */
.consulta-actualizar-bases-row {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.consulta-actualizar-bases-row .btn {
  min-width: 190px;
}

.consulta-table-resumen-productos {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.consulta-table-resumen-productos th,
.consulta-table-resumen-productos td {
  padding: 9px 8px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 15% !important;
  word-break: break-word;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 17% !important;
  white-space: normal !important;
  word-break: normal;
}

.consulta-table-resumen-productos th:nth-child(3),
.consulta-table-resumen-productos td:nth-child(3) {
  width: 10% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(4),
.consulta-table-resumen-productos td:nth-child(4) {
  width: 10% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(5),
.consulta-table-resumen-productos td:nth-child(5) {
  width: 10% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 24% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(7),
.consulta-table-resumen-productos td:nth-child(7) {
  width: 14% !important;
  text-align: center !important;
}

.cedula-medalla-wrap {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .consulta-table-wrap {
    overflow-x: auto !important;
  }

  .consulta-table-resumen-productos {
    min-width: 980px !important;
  }
}


/* AJUSTE FINAL CONSUMO Y CONSULTA SIN AVISO */
.helper-panel + h3 {
  margin-top: 18px;
}

.consulta-table-resumen-productos {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

.consulta-table-resumen-productos th,
.consulta-table-resumen-productos td {
  padding: 9px 8px !important;
  font-size: 12px !important;
  vertical-align: middle !important;
}

.consulta-table-resumen-productos th:nth-child(1),
.consulta-table-resumen-productos td:nth-child(1) {
  width: 16% !important;
  word-break: break-word;
}

.consulta-table-resumen-productos th:nth-child(2),
.consulta-table-resumen-productos td:nth-child(2) {
  width: 18% !important;
  white-space: normal !important;
}

.consulta-table-resumen-productos th:nth-child(3),
.consulta-table-resumen-productos td:nth-child(3),
.consulta-table-resumen-productos th:nth-child(4),
.consulta-table-resumen-productos td:nth-child(4),
.consulta-table-resumen-productos th:nth-child(5),
.consulta-table-resumen-productos td:nth-child(5),
.consulta-table-resumen-productos th:nth-child(6),
.consulta-table-resumen-productos td:nth-child(6) {
  width: 12% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos th:nth-child(7),
.consulta-table-resumen-productos td:nth-child(7) {
  width: 18% !important;
  text-align: center !important;
}

.consulta-table-resumen-productos .consulta-productos-btn {
  width: 100% !important;
  min-width: 0 !important;
}


/* AJUSTE CONSUMO - PREGUNTAS PARA VALOR SUGERIDO */
.consumo-opciones-sugerido {
  border: 1px solid #E5EAF2;
  background: #F8FAFC;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 18px;
}

.consumo-opciones-sugerido h3 {
  margin-top: 6px;
  margin-bottom: 8px;
}

.consumo-opciones-sugerido .radio-row {
  margin-bottom: 12px;
}


/* AJUSTE MICROCRÉDITO - GARANTÍA ARRIBA Y MENSAJES SUGERIDO */
.micro-garantia-sugerido {
  border: 1px solid #E5EAF2;
  background: #F8FAFC;
  border-radius: 16px;
  padding: 14px 16px;
  margin: 14px 0 18px;
}

.micro-garantia-sugerido h3 {
  margin-top: 6px;
  margin-bottom: 8px;
}

.micro-garantia-sugerido .radio-row {
  margin-bottom: 12px;
}


/* AGENCIA DE VIAJE - PRECIOS Y ESTADO */
.viaje-table th,
.viaje-table td {
  vertical-align: middle;
}

.viaje-table th:nth-child(5),
.viaje-table td:nth-child(5) {
  min-width: 120px;
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  min-width: 105px;
  text-align: center;
}

.viaje-table th:nth-child(7),
.viaje-table td:nth-child(7) {
  min-width: 90px;
  text-align: center;
}

.viaje-editar-grid {
  align-items: end;
}

.viaje-card .estado-texto-si {
  color: #157347;
  font-weight: 900;
  text-transform: capitalize;
}

.viaje-card .estado-texto-alerta {
  color: #B42318;
  font-weight: 900;
  text-transform: capitalize;
}

@media (max-width: 900px) {
  .viaje-table {
    min-width: 980px;
  }
}


/* AGENCIA DE VIAJE - TABLA COMPLETA Y COTIZACIÓN */
.viaje-form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.viaje-table-card .consulta-table-wrap {
  overflow-x: auto;
  width: 100%;
}

.viaje-table {
  width: 100%;
  min-width: 980px;
  table-layout: fixed;
}

.viaje-table th,
.viaje-table td {
  padding: 8px 6px !important;
  font-size: 11.5px !important;
  line-height: 1.25;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.viaje-table th:nth-child(1),
.viaje-table td:nth-child(1) {
  width: 18%;
}

.viaje-table th:nth-child(2),
.viaje-table td:nth-child(2) {
  width: 10%;
}

.viaje-table th:nth-child(3),
.viaje-table td:nth-child(3) {
  width: 10%;
}

.viaje-table th:nth-child(4),
.viaje-table td:nth-child(4) {
  width: 13%;
}

.viaje-table th:nth-child(5),
.viaje-table td:nth-child(5) {
  width: 11%;
  text-align: center;
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  width: 12%;
  text-align: center;
}

.viaje-table th:nth-child(7),
.viaje-table td:nth-child(7) {
  width: 10%;
  text-align: center;
}

.viaje-table th:nth-child(8),
.viaje-table td:nth-child(8) {
  width: 16%;
  text-align: center;
}

.viaje-precio-cell strong {
  white-space: nowrap;
  color: #0D2C6C;
}

.viaje-estado-cell strong {
  display: inline-block;
  min-width: 64px;
}

.viaje-table .viaje-acciones {
  flex-direction: row;
  justify-content: center;
  gap: 5px;
}

.viaje-table .consulta-productos-btn,
.viaje-table .btn-delete-viaje {
  padding: 7px 8px;
  font-size: 10.5px;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .viaje-form-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .viaje-form-grid {
    grid-template-columns: 1fr;
  }
}


/* AGENCIA DE VIAJE - LISTADO RESUMIDO E INFORMACIÓN */
.viaje-table {
  min-width: 760px !important;
  table-layout: fixed;
}

.viaje-table th,
.viaje-table td {
  padding: 9px 7px !important;
  font-size: 11.5px !important;
}

.viaje-table th:nth-child(1),
.viaje-table td:nth-child(1) {
  width: 14% !important;
}

.viaje-table th:nth-child(2),
.viaje-table td:nth-child(2) {
  width: 22% !important;
}

.viaje-table th:nth-child(3),
.viaje-table td:nth-child(3) {
  width: 18% !important;
}

.viaje-table th:nth-child(4),
.viaje-table td:nth-child(4) {
  width: 13% !important;
  text-align: center;
}

.viaje-table th:nth-child(5),
.viaje-table td:nth-child(5) {
  width: 10% !important;
  text-align: center;
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  width: 23% !important;
  text-align: center;
}

.viaje-acciones-3 {
  display: flex;
  flex-direction: row;
  gap: 5px;
  justify-content: center;
  flex-wrap: nowrap;
}

.btn-info-viaje {
  border: none;
  border-radius: 999px;
  padding: 7px 8px;
  background: #EAF2FF;
  color: #0D2C6C;
  font-size: 10.5px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #BFD3F7;
  white-space: nowrap;
}

.btn-info-viaje:hover {
  background: #DCEAFF;
}

.viaje-info-panel {
  padding: 14px !important;
}

.viaje-info-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
}

.viaje-info-grid div {
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  padding: 10px;
}

.viaje-info-grid span {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.viaje-info-grid strong {
  display: block;
  color: #0D2C6C;
  font-size: 12px;
  word-break: break-word;
}

@media (max-width: 1100px) {
  .viaje-info-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

@media (max-width: 700px) {
  .viaje-table {
    min-width: 820px !important;
  }

  .viaje-info-grid {
    grid-template-columns: 1fr;
  }
}


/* AGENCIA DE VIAJE - BOTÓN ELIMINAR CON ICONO */
.viaje-acciones-3 {
  gap: 4px !important;
  align-items: center;
}

.viaje-acciones-3 .consulta-productos-btn,
.viaje-acciones-3 .btn-info-viaje {
  padding: 7px 7px !important;
  font-size: 10.2px !important;
}

.btn-delete-viaje-icon {
  width: 31px !important;
  min-width: 31px !important;
  height: 31px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 15px !important;
  line-height: 31px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #B42318 !important;
  background: #FEE4E2 !important;
  border: 1px solid #FDA29B !important;
  box-shadow: none !important;
}

.btn-delete-viaje-icon:hover {
  background: #FDD5D1 !important;
  transform: translateY(-1px);
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  width: 24% !important;
}


/* AGENCIA DE VIAJE - CREACIÓN DE VIAJES, HABITACIONES Y SOLECITOS */
.viaje-main-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  background: #F8FAFC;
}

.viaje-main-actions .btn {
  margin-top: 0 !important;
  width: 100% !important;
}

.viaje-main-actions .btn.active {
  box-shadow: 0 0 0 3px rgba(242, 194, 48, 0.35);
  transform: translateY(-1px);
}

.viaje-panel {
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 16px;
  margin: 16px 0 20px;
  box-shadow: 0 5px 16px rgba(13, 44, 108, 0.06);
}

.viaje-habitaciones-crear-card,
.viaje-disponibilidad-card,
.viaje-persona-panel,
.viaje-seleccion-resumen-card,
.viaje-info-trip-card,
.viaje-creado-item,
.viaje-factura-card {
  border: 1px solid #E5EAF2;
  border-radius: 16px;
  background: #FBFCFE;
  padding: 14px;
  margin-top: 14px;
}

.viaje-habitaciones-crear-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
}

.viaje-habitacion-capacidad {
  width: 100% !important;
  display: block !important;
  margin-right: 0 !important;
}

.viaje-empty-box {
  width: 100%;
  border: 1px dashed #D8DEE8;
  border-radius: 14px;
  background: #FFFFFF;
  color: #667085;
  font-weight: 800;
  text-align: center;
  padding: 16px;
}

.viaje-empty-alerta,
.viaje-note-alerta {
  color: #B42318 !important;
}

.viaje-note-ok {
  color: #157347 !important;
}

.viaje-lista-creados {
  display: grid;
  gap: 12px;
}

.viaje-creado-main,
.viaje-info-trip-header,
.viaje-factura-header,
.viaje-disponibilidad-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.viaje-creado-main strong,
.viaje-info-trip-header strong,
.viaje-factura-header strong {
  display: block;
  color: var(--azul);
  font-size: 17px;
  font-weight: 900;
}

.viaje-creado-main span,
.viaje-info-trip-header span,
.viaje-factura-header span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.viaje-creado-badges {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 5px;
  min-width: 170px;
}

.viaje-creado-badges b,
.viaje-factura-total {
  color: var(--azul);
  background: rgba(242, 194, 48, 0.24);
  border: 1px solid rgba(242, 194, 48, 0.55);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.viaje-creado-badges span,
.viaje-creado-badges em {
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.viaje-creado-actions .btn {
  max-width: 180px !important;
}

.viaje-disponibilidad-header h3 {
  margin-top: 0;
}

.viaje-leyenda {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.viaje-leyenda span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid #E5EAF2;
  border-radius: 999px;
  padding: 5px 8px;
}

.sol-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: white;
  font-size: 13px;
  line-height: 1;
}

.sol-libre { background: #16A34A; }
.sol-seleccionado { background: #F2C230; color: #0D2C6C; }
.sol-ocupado { background: #D32F2F; }

.viaje-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.viaje-room-card {
  border: 1px solid #D8DEE8;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(13, 44, 108, 0.05);
}

.viaje-room-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.viaje-room-head strong {
  color: var(--azul);
  font-size: 15px;
  font-weight: 900;
}

.viaje-room-head span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  background: #F2F4F7;
  border-radius: 999px;
  padding: 5px 8px;
}

.viaje-room-soles {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.viaje-sol-seat {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border: none;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(13, 44, 108, 0.16);
  transition: 0.2s;
}

.viaje-sol-seat:hover {
  transform: translateY(-2px) scale(1.03);
}

.viaje-sol-seat.libre { background: #16A34A; }
.viaje-sol-seat.ocupado { background: #D32F2F; }
.viaje-sol-seat.seleccionado { background: #F2C230; color: #0D2C6C; }

.viaje-personas-resumen {
  margin-top: 12px;
}

.viaje-seleccion-resumen-card > strong,
.viaje-seleccion-resumen-card > span {
  display: block;
  color: var(--azul);
  font-weight: 900;
  margin-bottom: 6px;
}

.viaje-personas-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.viaje-persona-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #D8DEE8;
  background: #FFFFFF;
  border-radius: 999px;
  padding: 7px 9px;
}

.viaje-persona-chip strong {
  color: var(--azul);
  font-size: 12px;
}

.viaje-persona-chip span {
  color: #667085;
  font-size: 11.5px;
  font-weight: 700;
}

.viaje-persona-chip button,
.btn-delete-viaje-mini {
  border: none;
  border-radius: 999px;
  background: #FEE4E2;
  color: #B42318;
  font-weight: 900;
  font-size: 11px;
  padding: 5px 8px;
  cursor: pointer;
}

.viaje-estadisticas-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.viaje-estadisticas-grid div {
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  padding: 12px;
}

.viaje-estadisticas-grid span {
  display: block;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
}

.viaje-estadisticas-grid strong {
  display: block;
  color: var(--azul);
  font-size: 22px;
  font-weight: 900;
  margin-top: 4px;
}

.viaje-factura-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border-color: rgba(13, 44, 108, 0.18);
}

.viaje-factura-header {
  border-bottom: 1px solid #E5EAF2;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.viaje-personas-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
}

.viaje-personas-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.viaje-personas-table th,
.viaje-personas-table td {
  border: 1px solid #E5EAF2;
  padding: 8px;
  font-size: 12px;
  text-align: left;
}

.viaje-personas-table th {
  background: var(--azul);
  color: white;
  font-weight: 900;
}

.viaje-table {
  min-width: 860px !important;
}

.viaje-table th:nth-child(1),
.viaje-table td:nth-child(1) {
  width: 14% !important;
}

.viaje-table th:nth-child(2),
.viaje-table td:nth-child(2) {
  width: 22% !important;
}

.viaje-table th:nth-child(3),
.viaje-table td:nth-child(3) {
  width: 18% !important;
}

.viaje-table th:nth-child(4),
.viaje-table td:nth-child(4) {
  width: 15% !important;
  text-align: center;
}

.viaje-table th:nth-child(5),
.viaje-table td:nth-child(5) {
  width: 10% !important;
  text-align: center;
}

.viaje-table th:nth-child(6),
.viaje-table td:nth-child(6) {
  width: 21% !important;
  text-align: center;
}

@media (max-width: 1000px) {
  .viaje-main-actions,
  .viaje-habitaciones-crear-grid,
  .viaje-room-grid,
  .viaje-estadisticas-grid {
    grid-template-columns: 1fr !important;
  }

  .viaje-creado-main,
  .viaje-info-trip-header,
  .viaje-factura-header,
  .viaje-disponibilidad-header {
    flex-direction: column;
    align-items: stretch;
  }

  .viaje-creado-badges {
    align-items: flex-start;
  }

  .viaje-leyenda {
    justify-content: flex-start;
  }
}

/* Ajustes Agencia de viaje: panel editar e información resumida */
.viaje-info-trip-card-resumen {
  padding: 16px;
}

.viaje-info-trip-header-resumen {
  margin-bottom: 10px;
}

.viaje-info-resumen-linea {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.viaje-info-resumen-linea span {
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #F8FAFC;
  padding: 10px 12px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.viaje-info-resumen-linea strong {
  color: var(--azul);
}

.viaje-info-toggle-row {
  margin-top: 12px;
}

.viaje-info-detalle {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #EEF1F5;
}

@media (max-width: 949px) {
  .viaje-info-resumen-linea {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .viaje-info-resumen-linea {
    grid-template-columns: 1fr;
  }
}

/* Mover personas entre habitaciones en edición de Agencia de viaje */
.viaje-mover-panel {
  border: 1px solid #E5EAF2;
  border-radius: 16px;
  background: #FFFFFF;
  padding: 14px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.viaje-mover-panel h3 {
  margin-top: 0;
}

.viaje-mover-list {
  display: grid;
  gap: 10px;
}

.viaje-mover-item {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(240px, 1fr) auto;
  gap: 10px;
  align-items: end;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 12px;
}

.viaje-mover-persona strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
}

.viaje-mover-persona span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.viaje-mover-select-field {
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
}

.btn-mover-persona {
  width: auto !important;
  min-width: 105px;
  margin-top: 0 !important;
  padding: 10px 14px !important;
}

@media (max-width: 900px) {
  .viaje-mover-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .btn-mover-persona {
    width: 100% !important;
  }
}



/* AGENDA IPS */
.agenda-main-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
  padding: 12px;
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  background: #F8FAFC;
}

.agenda-main-actions .btn {
  margin-top: 0 !important;
  width: 100% !important;
}

.agenda-main-actions .btn.active {
  box-shadow: 0 0 0 3px rgba(242, 194, 48, 0.35);
  transform: translateY(-1px);
}

.agenda-panel,
.agenda-preview-card,
.agenda-calendar-card,
.agenda-dia-resumen-card {
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  background: #FFFFFF;
  padding: 16px;
  margin: 16px 0 20px;
  box-shadow: 0 5px 16px rgba(13, 44, 108, 0.06);
}

.agenda-preview-card,
.agenda-calendar-card,
.agenda-dia-resumen-card {
  background: #FBFCFE;
}

.agenda-horarios-preview {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #667085;
  font-weight: 800;
}

.agenda-horarios-preview span {
  border: 1px solid #D8DEE8;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--azul);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.agenda-calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.agenda-calendar-head h3 {
  margin-top: 0;
}

.agenda-leyenda {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.agenda-leyenda span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #E5EAF2;
  border-radius: 999px;
  background: #FFFFFF;
  padding: 6px 9px;
}

.agenda-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.agenda-dot.disponible { background: #16A34A; }
.agenda-dot.lleno { background: #D32F2F; }
.agenda-dot.seleccionado { background: #F2C230; border: 2px solid #0D2C6C; }

.agenda-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 8px;
}

.agenda-calendar-day-name {
  text-align: center;
  color: var(--azul);
  font-weight: 900;
  font-size: 12px;
  padding: 8px;
  background: #EEF2F8;
  border-radius: 10px;
}

.agenda-calendar-empty {
  min-height: 72px;
}

.agenda-calendar-day {
  min-height: 82px;
  border: 1px solid #E5EAF2;
  border-radius: 16px;
  background: #FFFFFF;
  color: #667085;
  padding: 10px 8px;
  text-align: center;
  cursor: default;
  transition: 0.2s;
}

.agenda-calendar-day strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--azul);
}

.agenda-calendar-day span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
}

.agenda-calendar-day.domingo {
  border-color: rgba(13, 44, 108, 0.18);
}

.agenda-calendar-day.disponible {
  background: #ECFDF3;
  border-color: #16A34A;
  cursor: pointer;
}

.agenda-calendar-day.lleno {
  background: #FFF1F1;
  border-color: #D32F2F;
  cursor: pointer;
}

.agenda-calendar-day.seleccionado {
  background: rgba(242, 194, 48, 0.30);
  border-color: #F2C230;
  box-shadow: 0 0 0 3px rgba(242, 194, 48, 0.28);
}

.agenda-calendar-day:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 16px rgba(13, 44, 108, 0.12);
}

.agenda-disponibilidad-resumen {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.agenda-dia-resumen-card {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: start;
  margin: 0;
}

.agenda-dia-resumen-card strong {
  color: var(--azul);
  font-size: 16px;
  font-weight: 900;
}

.agenda-dia-resumen-card span,
.agenda-dia-resumen-card p {
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
  margin: 4px 0 0;
}

.agenda-dia-badges {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.agenda-dia-badges b {
  color: var(--azul);
  background: rgba(242, 194, 48, 0.24);
  border: 1px solid rgba(242, 194, 48, 0.55);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.agenda-dia-badges span {
  color: #344054;
  font-weight: 900;
}

.agenda-table {
  min-width: 900px !important;
}

.agenda-acciones {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

@media (max-width: 1000px) {
  .agenda-main-actions,
  .agenda-dia-resumen-card {
    grid-template-columns: 1fr !important;
  }

  .agenda-calendar-head {
    flex-direction: column;
    align-items: stretch;
  }

  .agenda-leyenda {
    justify-content: flex-start;
  }

  .agenda-calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agenda-dia-badges {
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .agenda-calendar-grid {
    grid-template-columns: 1fr;
  }
}


/* AJUSTE AGENDA IPS - sin crear cita, agenda fija domingos */
.agenda-main-actions-2 {
  grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
}

.agenda-dia-resumen-card-compacta {
  align-items: center;
}

.agenda-dia-resumen-card-compacta .btn-info-viaje {
  margin-top: 4px;
  white-space: nowrap;
}

.agenda-table-compacta {
  min-width: 620px !important;
}

#sunModalMessage {
  white-space: pre-line;
}

@media (max-width: 700px) {
  .agenda-main-actions-2 {
    grid-template-columns: 1fr !important;
  }
}

/* AJUSTE AGENDA IPS - información organizada en tablas */
.sun-modal-dialog.sun-modal-dialog-wide {
  width: min(1180px, 100%) !important;
  grid-template-columns: 330px minmax(0, 1fr) !important;
}

.sun-modal-dialog-wide .sun-modal-figure {
  min-height: 520px;
}

.sun-modal-dialog-wide .sun-modal-figure img {
  max-width: 330px !important;
  height: 410px !important;
  object-fit: contain !important;
}

.sun-modal-dialog-wide .sun-modal-content {
  align-items: stretch !important;
  text-align: left !important;
  padding-right: 34px !important;
}

.sun-modal-dialog-wide #sunModalTitle {
  width: 100%;
  max-width: none;
  justify-content: flex-start !important;
  min-height: auto !important;
  margin-bottom: 14px !important;
}

#sunModalMessage.sun-modal-message-html {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  align-items: initial !important;
  justify-content: initial !important;
  text-align: left !important;
  white-space: normal !important;
  line-height: 1.35 !important;
}

.agenda-info-modal {
  width: 100%;
}

.agenda-info-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.agenda-info-summary-card {
  border: 1px solid #E5EAF2;
  background: #F8FAFC;
  border-radius: 14px;
  padding: 10px 12px;
}

.agenda-info-summary-card span {
  display: block;
  color: #667085;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 4px;
}

.agenda-info-summary-card strong {
  display: block;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
}

.agenda-info-section {
  margin-top: 14px;
}

.agenda-info-section h4 {
  margin: 0 0 8px 0;
  color: var(--azul);
  font-size: 15px;
  font-weight: 900;
  border-left: 5px solid var(--amarillo);
  padding-left: 9px;
}

.agenda-modal-table-wrap {
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  overflow: auto;
  max-height: 210px;
  background: #FFFFFF;
}

.agenda-modal-table-wrap-small {
  max-height: 190px;
}

.agenda-modal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 12.5px;
}

.agenda-modal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--azul);
  color: #FFFFFF;
  padding: 9px 10px;
  text-align: left;
  font-weight: 900;
}

.agenda-modal-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #EEF1F5;
  color: #344054;
  font-weight: 700;
  vertical-align: top;
}

.agenda-modal-table tbody tr:nth-child(even) td {
  background: #FAFBFC;
}

.agenda-modal-empty {
  text-align: center !important;
  color: #667085 !important;
  font-weight: 800 !important;
  padding: 16px 10px !important;
}

.agenda-modal-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 900;
}

.agenda-modal-status.libre {
  color: #027A48;
  background: #ECFDF3;
  border: 1px solid #ABEFC6;
}

@media (max-width: 860px) {
  .sun-modal-dialog.sun-modal-dialog-wide {
    grid-template-columns: 1fr !important;
    max-width: 96vw !important;
  }

  .sun-modal-dialog-wide .sun-modal-content {
    padding: 24px !important;
  }

  .agenda-info-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .agenda-info-summary-grid {
    grid-template-columns: 1fr;
  }

  .agenda-modal-table {
    min-width: 480px;
  }
}

/* ACCESO ADMINISTRATIVO PARA MÓDULOS PROTEGIDOS */
.btn-admin-locked {
  background: #E4E7EC !important;
  color: #667085 !important;
  border: 1px solid #CBD5E1 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.55);
}

.btn-admin-locked:hover {
  background: #D9DEE7 !important;
  color: #344054 !important;
  transform: translateY(-1px);
}

.btn-admin-enabled {
  position: relative;
}

.sun-modal-dialog-admin {
  max-width: 620px !important;
}

.admin-login-modal {
  text-align: left;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.admin-login-intro {
  text-align: center;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 16px 0;
}

.admin-login-field {
  margin-bottom: 12px;
}

.admin-login-field label {
  display: block;
  color: var(--azul);
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 5px;
}

.admin-login-field input {
  width: 100%;
  height: 42px;
  border: 1.4px solid var(--gris-borde);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: white;
  color: var(--texto);
  outline: none;
}

.admin-login-field input:focus {
  border-color: var(--azul);
  box-shadow: 0 0 0 3px rgba(13, 44, 108, 0.08);
}

.admin-login-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  color: #667085;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
}



/* ANIMACIÓN DE ENTRADA - AGENCIA DE VIAJE */
body.viaje-entry-open {
  overflow: hidden;
}

.viaje-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(135deg, rgba(13, 44, 108, 0.92), rgba(242, 194, 48, 0.88));
  backdrop-filter: blur(4px);
  animation: viajeEntradaAparecer 0.25s ease-out forwards;
}

.viaje-entry-overlay.viaje-entry-out {
  animation: viajeEntradaSalir 0.28s ease-in forwards;
}

.viaje-entry-card {
  width: min(620px, 94vw);
  min-height: 350px;
  border-radius: 30px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  box-shadow: 0 24px 70px rgba(13, 44, 108, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
  position: relative;
  padding: 28px 30px 24px 30px;
  text-align: center;
}

.viaje-entry-title {
  color: var(--azul);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.viaje-entry-subtitle {
  color: #667085;
  font-size: 15px;
  font-weight: 800;
  margin-top: 6px;
}

.viaje-entry-sky {
  position: relative;
  height: 210px;
  margin-top: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #EAF4FF 0%, #FFFFFF 100%);
  border: 1px solid #DCEAFE;
  overflow: hidden;
}

.viaje-entry-cloud {
  position: absolute;
  width: 84px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(13, 44, 108, 0.08);
}

.viaje-entry-cloud::before,
.viaje-entry-cloud::after {
  content: '';
  position: absolute;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
}

.viaje-entry-cloud::before {
  width: 34px;
  height: 34px;
  left: 12px;
}

.viaje-entry-cloud::after {
  width: 44px;
  height: 44px;
  right: 12px;
}

.viaje-entry-cloud-1 {
  top: 32px;
  left: 45px;
  animation: viajeNube 2.3s ease-in-out infinite alternate;
}

.viaje-entry-cloud-2 {
  right: 85px;
  bottom: 38px;
  opacity: 0.72;
  transform: scale(0.82);
  animation: viajeNube 2.1s ease-in-out infinite alternate-reverse;
}

.viaje-entry-route {
  position: absolute;
  left: 78px;
  right: 150px;
  top: 118px;
  height: 3px;
  border-top: 3px dashed rgba(13, 44, 108, 0.28);
  border-radius: 999px;
  transform: rotate(-8deg);
  transform-origin: left center;
}

.viaje-entry-plane {
  position: absolute;
  left: 54px;
  top: 118px;
  font-size: 44px;
  line-height: 1;
  filter: drop-shadow(0 10px 12px rgba(13, 44, 108, 0.25));
  animation: viajeAvionSol 2.15s cubic-bezier(0.34, 0.05, 0.16, 1) forwards;
}

.viaje-entry-sun {
  position: absolute;
  right: 66px;
  top: 48px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE58A 0%, #F2C230 52%, #F4A300 100%);
  box-shadow: 0 0 0 12px rgba(242, 194, 48, 0.15), 0 10px 24px rgba(242, 194, 48, 0.35);
  animation: viajeSolPulso 1.2s ease-in-out infinite alternate;
}

.viaje-entry-sun::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(242, 194, 48, 0.0), rgba(242, 194, 48, 0.85), rgba(242, 194, 48, 0.0) 18%, transparent 18%, transparent 32%, rgba(242, 194, 48, 0.8) 33%, transparent 48%, transparent 64%, rgba(242, 194, 48, 0.78) 66%, transparent 82%, transparent 100%);
  z-index: -1;
  animation: viajeSolGirar 3.2s linear infinite;
}

.viaje-entry-sun span {
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.viaje-entry-footer {
  margin-top: 16px;
  color: var(--azul);
  font-size: 14px;
  font-weight: 900;
}

@keyframes viajeEntradaAparecer {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes viajeEntradaSalir {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes viajeAvionSol {
  0% {
    transform: translate(0, 38px) rotate(-16deg) scale(0.88);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  58% {
    transform: translate(250px, -22px) rotate(-10deg) scale(1.02);
  }
  86% {
    transform: translate(395px, -65px) rotate(-5deg) scale(0.82);
    opacity: 1;
  }
  100% {
    transform: translate(435px, -74px) rotate(-2deg) scale(0.58);
    opacity: 0;
  }
}

@keyframes viajeSolPulso {
  from { transform: scale(0.96); }
  to { transform: scale(1.04); }
}

@keyframes viajeSolGirar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes viajeNube {
  from { transform: translateX(0); }
  to { transform: translateX(14px); }
}

@media (max-width: 650px) {
  .viaje-entry-card {
    padding: 24px 18px 20px 18px;
    min-height: 330px;
  }

  .viaje-entry-title {
    font-size: 24px;
  }

  .viaje-entry-sky {
    height: 190px;
  }

  .viaje-entry-sun {
    right: 36px;
    top: 44px;
    width: 74px;
    height: 74px;
  }

  .viaje-entry-route {
    left: 36px;
    right: 110px;
  }

  .viaje-entry-plane {
    left: 24px;
    font-size: 38px;
  }

  @keyframes viajeAvionSol {
    0% {
      transform: translate(0, 40px) rotate(-16deg) scale(0.86);
      opacity: 0;
    }
    14% {
      opacity: 1;
    }
    70% {
      transform: translate(205px, -50px) rotate(-7deg) scale(0.82);
      opacity: 1;
    }
    100% {
      transform: translate(245px, -62px) rotate(-2deg) scale(0.55);
      opacity: 0;
    }
  }
}


/* AJUSTE PROFESIONAL - MODAL ADMINISTRATIVO */
.sun-modal-dialog.sun-modal-dialog-admin {
  width: min(920px, 100%) !important;
  max-width: 920px !important;
  min-height: 520px;
  grid-template-columns: minmax(280px, 330px) 1fr !important;
}

.sun-modal-dialog-admin .sun-modal-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 28px;
  background: rgba(243, 246, 251, 0.95);
}

.sun-modal-dialog-admin .sun-modal-figure {
  min-height: 520px;
  padding: 22px 0 0 !important;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 72%) !important;
  border-right: 1px solid rgba(13, 44, 108, 0.08);
}

.sun-modal-dialog-admin .sun-modal-figure img {
  width: 100%;
  max-width: 305px;
  height: 390px;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 12px 24px rgba(13, 44, 108, 0.14));
}

.sun-modal-dialog-admin .sun-modal-content {
  min-height: 520px;
  padding: 42px 40px 34px 18px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}

.sun-modal-dialog-admin .sun-modal-icon {
  width: 78px;
  height: 78px;
  font-size: 46px;
  margin-bottom: 18px;
}

.sun-modal-dialog-admin #sunModalTitle {
  min-height: auto;
  display: block;
  max-width: none;
  margin: 0 0 10px 0;
  text-align: left;
  font-size: 2rem;
  line-height: 1.12;
}

.sun-modal-dialog-admin #sunModalMessage {
  min-height: auto;
  display: block;
  max-width: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
  line-height: 1.6;
}

.sun-modal-dialog-admin .sun-modal-divider {
  justify-content: flex-start;
  margin: 18px 0 22px;
}

.sun-modal-dialog-admin .sun-modal-divider span {
  width: 86px;
}

.sun-modal-dialog-admin .sun-modal-actions {
  width: 100%;
  justify-content: flex-start;
}

.sun-modal-dialog-admin .sun-modal-btn {
  min-width: 168px;
  border-radius: 18px;
  padding: 14px 22px;
  font-size: 1.02rem;
}

.admin-login-modal {
  width: 100%;
  max-width: none;
  margin: 0;
}

.admin-login-intro {
  text-align: left;
  color: #475467;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 18px 0;
}

.admin-login-field {
  margin-bottom: 14px;
}

.admin-login-field label {
  margin-bottom: 6px;
  font-size: 12.5px;
}

.admin-login-field input {
  height: 46px;
  border-radius: 12px;
  padding: 0 14px;
}

.admin-login-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  text-align: left;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .sun-modal-dialog.sun-modal-dialog-admin {
    min-height: auto;
    grid-template-columns: 1fr !important;
  }

  .sun-modal-dialog-admin .sun-modal-figure {
    min-height: auto;
    padding: 16px 16px 0 !important;
    border-right: none;
    border-bottom: 1px solid rgba(13, 44, 108, 0.08);
  }

  .sun-modal-dialog-admin .sun-modal-figure img {
    max-width: 220px;
    height: 220px;
  }

  .sun-modal-dialog-admin .sun-modal-content {
    min-height: auto;
    padding: 28px 24px 28px;
  }

  .sun-modal-dialog-admin #sunModalTitle,
  .sun-modal-dialog-admin #sunModalMessage,
  .admin-login-intro,
  .admin-login-note {
    text-align: center;
  }

  .sun-modal-dialog-admin .sun-modal-actions,
  .sun-modal-dialog-admin .sun-modal-divider {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .sun-modal-dialog-admin .sun-modal-content {
    padding: 22px 18px 24px;
  }

  .sun-modal-dialog-admin .sun-modal-icon {
    width: 70px;
    height: 70px;
    font-size: 40px;
  }

  .sun-modal-dialog-admin #sunModalTitle {
    font-size: 1.7rem;
  }

  .sun-modal-dialog-admin .sun-modal-btn {
    width: 100%;
  }
}

/* ANIMACIÓN PROFESIONAL - AGENCIA DE VIAJE */
.viaje-entry-overlay {
  background: radial-gradient(circle at top, rgba(34, 63, 117, 0.96) 0%, rgba(11, 29, 70, 0.98) 60%, rgba(7, 20, 49, 1) 100%);
}

.viaje-entry-card {
  width: min(700px, 94vw);
  min-height: 360px;
  padding: 28px 30px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 72px rgba(2, 12, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.78);
  text-align: left;
}

.viaje-entry-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.viaje-entry-badge {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 194, 48, 0.18), rgba(242, 194, 48, 0.32));
  color: #c98a00;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(242, 194, 48, 0.28);
}

.viaje-entry-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
}

.viaje-entry-subtitle {
  margin-top: 4px;
  color: #667085;
  font-size: 15px;
  font-weight: 700;
}

.viaje-entry-stage {
  position: relative;
  height: 185px;
  margin-top: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #d9e8ff;
  overflow: hidden;
}

.viaje-entry-glow {
  position: absolute;
  right: 70px;
  top: 28px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 194, 48, 0.42) 0%, rgba(242, 194, 48, 0.18) 52%, rgba(242, 194, 48, 0) 72%);
  animation: viajeGlowPulse 1.6s ease-in-out infinite alternate;
}

.viaje-entry-label {
  position: absolute;
  bottom: 24px;
  font-size: 12px;
  font-weight: 800;
  color: #667085;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.viaje-entry-label-origin { left: 30px; }
.viaje-entry-label-destination { right: 32px; }

.viaje-entry-path {
  position: absolute;
  left: 48px;
  right: 120px;
  top: 90px;
  height: 0;
}

.viaje-entry-path span {
  display: block;
  width: 100%;
  border-top: 3px dashed rgba(13, 44, 108, 0.24);
  transform: rotate(-6deg);
  transform-origin: left center;
}

.viaje-entry-plane-wrap {
  position: absolute;
  left: 54px;
  top: 92px;
  animation: viajePlaneProfessional 2.05s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}

.viaje-entry-plane-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0d2c6c 0%, #1f5cc8 100%);
  color: #ffffff;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(13, 44, 108, 0.22);
}

.viaje-entry-destination {
  position: absolute;
  right: 68px;
  top: 44px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.viaje-entry-destination-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(242, 194, 48, 0.45);
  animation: viajeDestinationRing 1.6s ease-in-out infinite;
}

.viaje-entry-destination-core {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe58a 0%, #f2c230 55%, #eda61a 100%);
  box-shadow: 0 10px 22px rgba(242, 194, 48, 0.35);
}

.viaje-entry-progress {
  height: 10px;
  margin-top: 20px;
  border-radius: 999px;
  background: #e7eef8;
  overflow: hidden;
}

.viaje-entry-progress-bar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d2c6c 0%, #1f5cc8 52%, #f2c230 100%);
  transform-origin: left center;
  animation: viajeProgressFill 2.15s linear forwards;
}

.viaje-entry-footer {
  margin-top: 16px;
  color: #344054;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

@keyframes viajePlaneProfessional {
  0% {
    transform: translate(0, 24px) rotate(-10deg) scale(0.88);
    opacity: 0;
  }
  14% { opacity: 1; }
  58% {
    transform: translate(255px, -10px) rotate(-7deg) scale(1);
  }
  84% {
    transform: translate(430px, -46px) rotate(-3deg) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translate(455px, -54px) rotate(-2deg) scale(0.75);
    opacity: 0;
  }
}

@keyframes viajeDestinationRing {
  0% { transform: scale(0.82); opacity: 0.28; }
  100% { transform: scale(1.14); opacity: 0; }
}

@keyframes viajeGlowPulse {
  from { transform: scale(0.96); opacity: 0.85; }
  to { transform: scale(1.04); opacity: 1; }
}

@keyframes viajeProgressFill {
  from { transform: scaleX(0.08); }
  to { transform: scaleX(1); }
}

@media (max-width: 650px) {
  .viaje-entry-card {
    min-height: 340px;
    padding: 22px 18px 20px;
  }

  .viaje-entry-header {
    align-items: flex-start;
  }

  .viaje-entry-title {
    font-size: 24px;
  }

  .viaje-entry-stage {
    height: 170px;
  }

  .viaje-entry-glow {
    right: 28px;
    top: 24px;
    width: 86px;
    height: 86px;
  }

  .viaje-entry-path {
    left: 32px;
    right: 86px;
    top: 88px;
  }

  .viaje-entry-plane-wrap {
    left: 26px;
    top: 90px;
  }

  .viaje-entry-plane-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .viaje-entry-destination {
    right: 22px;
    top: 42px;
    width: 72px;
    height: 72px;
  }

  .viaje-entry-destination-core {
    width: 46px;
    height: 46px;
  }

  .viaje-entry-label {
    bottom: 18px;
    font-size: 11px;
  }

  @keyframes viajePlaneProfessional {
    0% {
      transform: translate(0, 20px) rotate(-10deg) scale(0.88);
      opacity: 0;
    }
    14% { opacity: 1; }
    60% { transform: translate(165px, -8px) rotate(-7deg) scale(0.98); }
    86% {
      transform: translate(238px, -38px) rotate(-3deg) scale(0.88);
      opacity: 1;
    }
    100% {
      transform: translate(252px, -42px) rotate(-2deg) scale(0.74);
      opacity: 0;
    }
  }
}


/* AJUSTE FINAL LOGIN ADMINISTRATIVO: SIN MASCOTA LATERAL */
.sun-modal-dialog.sun-modal-dialog-admin {
  width: min(640px, 100%) !important;
  max-width: 640px !important;
  min-height: auto !important;
  grid-template-columns: 1fr !important;
}

.sun-modal-dialog-admin .sun-modal-figure { display: none !important; }
.sun-modal-dialog-admin .sun-modal-content {
  min-height: auto !important;
  padding: 46px 46px 36px !important;
  align-items: stretch !important;
  text-align: left !important;
}
.sun-modal-dialog-admin .sun-modal-icon { margin-left: 0 !important; margin-right: 0 !important; }
.sun-modal-dialog-admin #sunModalTitle { justify-content: flex-start !important; text-align: left !important; }
.sun-modal-dialog-admin #sunModalMessage { justify-content: flex-start !important; text-align: left !important; }
.sun-modal-dialog-admin .sun-modal-actions,
.sun-modal-dialog-admin .sun-modal-divider { justify-content: flex-start !important; }
@media (max-width: 620px) {
  .sun-modal-dialog-admin .sun-modal-content { padding: 34px 22px 26px !important; }
  .sun-modal-dialog-admin .sun-modal-actions { justify-content: stretch !important; }
}

/* CAMPOS NUEVOS AGENDA IPS */
textarea {
  width: 100%;
  min-height: 90px;
  border: 1.4px solid var(--gris-borde);
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  background: white;
  color: var(--texto);
  outline: none;
  resize: vertical;
}
textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(13, 44, 108, 0.08); }
textarea.error { border-color: var(--rojo); background: #FFF7F7; }
.agenda-comentario-field { width: calc(66.66% - 11px) !important; }
.agenda-comentario-box {
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  background: #F8FAFC;
  padding: 14px;
  color: #344054;
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-wrap;
}
.viaje-readonly-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: #F2F4F7;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}
@media (max-width: 949px) { .agenda-comentario-field { width: 100% !important; } }

/* ANIMACIÓN PROFESIONAL - AGENDA IPS */
body.ips-entry-open { overflow: hidden; }
.ips-entry-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: radial-gradient(circle at top, rgba(13, 44, 108, 0.96) 0%, rgba(7, 20, 49, 0.99) 72%);
  backdrop-filter: blur(4px);
  animation: viajeEntradaAparecer 0.25s ease-out forwards;
}
.ips-entry-overlay.ips-entry-out { animation: viajeEntradaSalir 0.28s ease-in forwards; }
.ips-entry-card {
  width: min(700px, 94vw);
  min-height: 360px;
  padding: 28px 30px 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 72px rgba(2, 12, 34, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.78);
  text-align: left;
  overflow: hidden;
}
.ips-entry-header { display: flex; align-items: center; gap: 16px; }
.ips-entry-badge {
  width: 58px; height: 58px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(242, 194, 48, 0.18), rgba(242, 194, 48, 0.32));
  color: #c98a00; font-size: 34px; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(242, 194, 48, 0.28);
}
.ips-entry-title { color: var(--azul); font-size: 30px; font-weight: 900; line-height: 1.1; }
.ips-entry-subtitle { margin-top: 4px; color: #667085; font-size: 15px; font-weight: 700; }
.ips-entry-desk {
  position: relative; height: 185px; margin-top: 28px; border-radius: 24px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid #d9e8ff; overflow: hidden;
}
.ips-entry-notebook {
  position: absolute; left: 50%; top: 22px; width: 250px; height: 135px;
  transform: translateX(-50%); border-radius: 18px; background: #ffffff;
  border: 1px solid #d9e2f1; box-shadow: 0 16px 30px rgba(13, 44, 108, 0.12);
}
.ips-entry-notebook::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 3px; background: rgba(242, 194, 48, 0.55); }
.ips-entry-notebook-line { position: absolute; left: 52px; right: 26px; height: 3px; border-radius: 999px; background: #d7e3f5; }
.ips-entry-notebook-line.line-1 { top: 34px; }
.ips-entry-notebook-line.line-2 { top: 66px; }
.ips-entry-notebook-line.line-3 { top: 98px; }
.ips-entry-writing { position: absolute; left: 52px; top: 64px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #0d2c6c, #1f5cc8); animation: ipsWriting 1.65s ease-in-out forwards; transform-origin: left center; }
.ips-entry-pencil {
  position: absolute; left: calc(50% - 10px); top: 72px; width: 118px; height: 16px;
  border-radius: 999px; background: linear-gradient(90deg, #f2c230 0%, #f2c230 72%, #0d2c6c 72%, #0d2c6c 86%, #f7dba1 86%, #f7dba1 100%);
  box-shadow: 0 10px 20px rgba(13, 44, 108, 0.16); transform: rotate(-22deg); animation: ipsPencilMove 1.75s ease-in-out forwards;
}
.ips-entry-pencil span { position: absolute; right: -12px; top: 3px; width: 0; height: 0; border-left: 14px solid #344054; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ips-entry-check {
  position: absolute; right: 92px; top: 50px; width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf3 0%, #d1fadf 100%); color: #039855;
  display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 900;
  opacity: 0; transform: scale(0.7); animation: ipsCheckIn 0.45s ease-out 1.65s forwards;
  box-shadow: 0 12px 24px rgba(3, 152, 85, 0.16);
}
.ips-entry-progress { height: 10px; margin-top: 20px; border-radius: 999px; background: #e7eef8; overflow: hidden; }
.ips-entry-progress-bar { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0d2c6c 0%, #1f5cc8 52%, #f2c230 100%); transform-origin: left center; animation: viajeProgressFill 2.15s linear forwards; }
.ips-entry-footer { margin-top: 16px; color: #344054; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
@keyframes ipsWriting { 0% { transform: scaleX(0); width: 160px; } 35% { transform: scaleX(0.55); width: 160px; } 70% { transform: scaleX(0.9); width: 160px; } 100% { transform: scaleX(1); width: 160px; } }
@keyframes ipsPencilMove { 0% { transform: translate(-70px, -10px) rotate(-22deg); opacity: 0; } 12% { opacity: 1; } 35% { transform: translate(-28px, 2px) rotate(-22deg); } 70% { transform: translate(34px, 16px) rotate(-22deg); } 100% { transform: translate(72px, 22px) rotate(-22deg); opacity: 0; } }
@keyframes ipsCheckIn { to { opacity: 1; transform: scale(1); } }
@media (max-width: 650px) {
  .ips-entry-card { min-height: 340px; padding: 22px 18px 20px; }
  .ips-entry-title { font-size: 24px; }
  .ips-entry-desk { height: 170px; }
  .ips-entry-notebook { width: 210px; height: 120px; }
  .ips-entry-check { right: 32px; top: 54px; width: 48px; height: 48px; font-size: 28px; }
}


/* CORRECCIÓN LOGIN: NO MOSTRAR MASCOTA EN ACCESO ADMINISTRATIVO */
.sun-modal-dialog.sun-modal-dialog-admin{width:min(640px,100%)!important;max-width:640px!important;min-height:auto!important;grid-template-columns:1fr!important}.sun-modal-dialog-admin .sun-modal-figure{display:none!important}.sun-modal-dialog-admin .sun-modal-content{min-height:auto!important;padding:46px 46px 36px!important;align-items:stretch!important;text-align:left!important}.sun-modal-dialog-admin #sunModalTitle,.sun-modal-dialog-admin #sunModalMessage{text-align:left!important;justify-content:flex-start!important}.sun-modal-dialog-admin .sun-modal-actions,.sun-modal-dialog-admin .sun-modal-divider{justify-content:flex-start!important}

/* CONTROL DE MOVIMIENTOS - AGENCIA DE VIAJE */
.viaje-auditoria-general{margin-top:18px}.viaje-auditoria-card{border:1px solid #E5EAF2;border-radius:18px;background:#fff;box-shadow:0 6px 18px rgba(13,44,108,.06);padding:14px;margin-top:16px}.viaje-auditoria-table th,.viaje-auditoria-table td{font-size:12px;vertical-align:top}.viaje-auditoria-table td:last-child{min-width:220px}@media(max-width:620px){.sun-modal-dialog-admin .sun-modal-content{padding:34px 22px 26px!important}.sun-modal-dialog-admin .sun-modal-actions{justify-content:stretch!important}}


/* AJUSTE FINAL: LOGIN ADMINISTRATIVO COMPACTO SIN IMAGEN */
.sun-modal-dialog.sun-modal-dialog-admin {
  width: min(430px, calc(100vw - 32px)) !important;
  max-width: 430px !important;
  min-height: auto !important;
  display: block !important;
  grid-template-columns: none !important;
  border-radius: 24px !important;
  overflow: visible !important;
}
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-figure { display: none !important; }
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-content {
  width: 100% !important;
  min-height: auto !important;
  padding: 34px 30px 28px !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  text-align: left !important;
}
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-icon {
  width: 58px !important;
  height: 58px !important;
  font-size: 34px !important;
  margin: 0 0 16px 0 !important;
}
.sun-modal-dialog.sun-modal-dialog-admin #sunModalTitle {
  min-height: auto !important;
  display: block !important;
  text-align: left !important;
  justify-content: flex-start !important;
  font-size: 1.75rem !important;
  line-height: 1.1 !important;
  margin: 0 0 10px !important;
}
.sun-modal-dialog.sun-modal-dialog-admin #sunModalMessage {
  min-height: auto !important;
  display: block !important;
  text-align: left !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: none !important;
  font-size: 0.96rem !important;
  line-height: 1.55 !important;
}
.sun-modal-dialog.sun-modal-dialog-admin .admin-login-modal {
  max-width: none !important;
  margin: 0 !important;
  width: 100% !important;
}
.sun-modal-dialog.sun-modal-dialog-admin .admin-login-intro { text-align: left !important; margin-bottom: 16px !important; }
.sun-modal-dialog.sun-modal-dialog-admin .admin-login-field input { height: 44px !important; }
.sun-modal-dialog.sun-modal-dialog-admin .admin-login-note { text-align: left !important; line-height: 1.45 !important; margin-top: 12px !important; }
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-divider { margin: 18px 0 22px !important; justify-content: flex-start !important; }
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-divider span { width: 72px !important; }
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  justify-content: stretch !important;
}
.sun-modal-dialog.sun-modal-dialog-admin .sun-modal-btn {
  min-width: 0 !important;
  width: 100% !important;
  border-radius: 16px !important;
  padding: 13px 16px !important;
  font-size: 1rem !important;
}
@media (max-width: 520px) {
  .sun-modal-dialog.sun-modal-dialog-admin .sun-modal-content { padding: 28px 20px 22px !important; }
  .sun-modal-dialog.sun-modal-dialog-admin .sun-modal-actions { grid-template-columns: 1fr !important; }
}

/* REFUERZO ANIMACIÓN AGENDA IPS PROFESIONAL */
.ips-entry-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}


/* LOGIN ADMINISTRATIVO NUEVO - COMPACTO Y SIN ESPACIO BLANCO */
body.admin-access-open { overflow: hidden; }

.admin-access-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 18, 48, 0.72);
  backdrop-filter: blur(5px);
}

.admin-access-card {
  position: relative;
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(4, 20, 56, 0.35);
  border: 1px solid rgba(13, 57, 128, 0.10);
  padding: 30px 28px 26px;
}

.admin-access-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f3f6fb;
  color: #61708a;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.admin-access-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #dce9ff;
  color: #0e3a8a;
  font-size: 34px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.admin-access-card h3 {
  color: #0d3b86;
  font-size: 1.72rem;
  line-height: 1.1;
  margin: 0 0 10px;
  font-weight: 900;
}

.admin-access-card p {
  color: #46546f;
  font-size: 0.96rem;
  line-height: 1.55;
  margin: 0 0 16px;
}

.admin-access-error {
  min-height: 18px;
  color: #b42318;
  font-size: 12.5px;
  font-weight: 800;
  margin-top: 8px;
}

.admin-access-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 20px;
  color: #f0bf2d;
}

.admin-access-divider span {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: #f0bf2d;
}

.admin-access-divider i {
  font-style: normal;
  font-size: 21px;
}

.admin-access-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-access-btn {
  min-width: 0;
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-access-btn:hover { transform: translateY(-1px); }

.admin-access-btn-primary {
  border: none;
  background: linear-gradient(135deg, #0f51bf 0%, #0b3f9d 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 81, 191, 0.25);
}

.admin-access-btn-secondary {
  border: 2px solid #1b4fa7;
  background: #ffffff;
  color: #1b4fa7;
}

@media (max-width: 520px) {
  .admin-access-card { padding: 26px 20px 22px; }
  .admin-access-actions { grid-template-columns: 1fr; }
}


/* CORRECCIÓN FINAL LOGIN ADMINISTRATIVO Y ANIMACIÓN IPS */
.admin-access-overlay{position:fixed!important;inset:0!important;z-index:1000000!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:18px!important;background:rgba(5,18,48,.72)!important;backdrop-filter:blur(5px)!important}
.admin-access-card{position:relative!important;width:min(430px,calc(100vw - 32px))!important;max-width:430px!important;background:#fff!important;border-radius:24px!important;box-shadow:0 28px 70px rgba(4,20,56,.35)!important;border:1px solid rgba(13,57,128,.10)!important;padding:30px 28px 26px!important;box-sizing:border-box!important;display:block!important}
.admin-access-card .admin-login-field input{width:100%!important;box-sizing:border-box!important}
.ips-entry-progress-bar{width:0%;transition:width 2.05s linear!important}

/* AGENDA IPS - ELIMINAR AGENDAMIENTO */
.agenda-actions-cita {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.agenda-cita-actions {
  margin-top: 14px;
  justify-content: center;
}

.agenda-cita-actions .btn-delete-viaje {
  min-width: 190px;
}


/* Inventario Tecnología */
.inventario-card {
  max-width: 1280px;
}

.inventario-resumen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}

.inventario-resumen-box {
  border-radius: 20px;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #dce8f7;
  padding: 16px;
  box-shadow: 0 10px 22px rgba(13, 44, 108, .08);
}

.inventario-resumen-box span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.inventario-resumen-box strong {
  display: block;
  color: #0d2c6c;
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
}

.inventario-filtros-card,
.inventario-table-card,
.inventario-auditoria-card {
  margin-top: 18px;
}

.inventario-filtros-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventario-actions-row {
  justify-content: flex-end;
}

.inventario-form-panel {
  margin-top: 18px;
  padding: 20px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dce8f7;
  box-shadow: 0 14px 34px rgba(13, 44, 108, .10);
}

.inventario-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.inventario-form-head h3 {
  color: #0d2c6c;
  font-size: 21px;
  margin: 0 0 5px;
  font-weight: 900;
}

.inventario-form-head p {
  color: #667085;
  font-size: 13px;
  margin: 0;
  font-weight: 700;
}

.inventario-form-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #eef3fb;
  color: #0d2c6c;
  font-size: 25px;
  font-weight: 900;
  cursor: pointer;
}

.inventario-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventario-observaciones-field {
  grid-column: span 2;
}

.inventario-observaciones-field textarea,
#inventarioObservaciones {
  min-height: 88px;
  resize: vertical;
}

.inventario-table {
  min-width: 1160px;
}

.inventario-table th,
.inventario-table td {
  font-size: 12.2px;
  padding: 9px 10px;
  vertical-align: middle;
}

.inventario-table th:nth-child(8),
.inventario-table td:nth-child(8) {
  min-width: 220px;
  max-width: 280px;
  white-space: normal;
}

.inventario-row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-inventario-edit,
.btn-inventario-delete {
  border: none;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.btn-inventario-edit {
  background: #eef5ff;
  color: #0d47a1;
  box-shadow: inset 0 0 0 1px #cfe0ff;
}

.btn-inventario-delete {
  background: #fff1f0;
  color: #b42318;
  box-shadow: inset 0 0 0 1px #ffd0cc;
}

.btn-inventario-edit:hover,
.btn-inventario-delete:hover {
  transform: translateY(-1px);
}

.estado-inventario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef3fb;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.estado-inventario-ok {
  background: #ecfdf3;
  color: #027a48;
}

.estado-inventario-alerta {
  background: #fffaeb;
  color: #b54708;
}

.estado-inventario-rojo {
  background: #fff1f0;
  color: #b42318;
}

.inventario-auditoria-lista {
  display: grid;
  gap: 10px;
}

.inventario-auditoria-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 16px;
  border: 1px solid #e4ebf5;
  background: #fff;
  padding: 12px 14px;
}

.inventario-auditoria-item strong {
  display: block;
  color: #0d2c6c;
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 3px;
}

.inventario-auditoria-item span {
  color: #475467;
  font-size: 12.5px;
  font-weight: 700;
}

.inventario-auditoria-item em {
  flex: 0 0 auto;
  color: #667085;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

body.inventario-entry-open {
  overflow: hidden !important;
}

.inventario-entry-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 22px !important;
  background: radial-gradient(circle at top, rgba(13,44,108,.96) 0%, rgba(5,18,48,.99) 72%) !important;
  backdrop-filter: blur(5px) !important;
  animation: inventarioFadeIn .22s ease-out forwards !important;
}

.inventario-entry-overlay.inventario-entry-out {
  animation: inventarioFadeOut .28s ease-in forwards !important;
}

.inventario-entry-card {
  width: min(640px, 94vw) !important;
  border-radius: 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  box-shadow: 0 26px 76px rgba(2,12,34,.45) !important;
  padding: 28px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.inventario-entry-head {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
}

.inventario-entry-icon {
  width: 58px !important;
  height: 58px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(13,44,108,.12), rgba(31,92,200,.22)) !important;
  color: #0d2c6c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 30px !important;
  font-weight: 900 !important;
}

.inventario-entry-title {
  color: #0d2c6c !important;
  font-size: 28px !important;
  font-weight: 900 !important;
  line-height: 1.08 !important;
}

.inventario-entry-subtitle {
  color: #667085 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  margin-top: 4px !important;
}

.inventario-entry-stage {
  position: relative !important;
  height: 218px !important;
  border-radius: 24px !important;
  border: 1px solid #d9e8ff !important;
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%) !important;
  overflow: hidden !important;
}

.inventario-entry-grid {
  position: absolute !important;
  inset: 0 !important;
  background-image: linear-gradient(rgba(13,44,108,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(13,44,108,.07) 1px, transparent 1px) !important;
  background-size: 26px 26px !important;
}

.inventario-entry-device {
  position: absolute !important;
  width: 132px !important;
  height: 82px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid #d9e2f1 !important;
  box-shadow: 0 16px 28px rgba(13,44,108,.16) !important;
  padding: 13px !important;
  box-sizing: border-box !important;
}

.inventario-entry-device b,
.inventario-entry-device span,
.inventario-entry-device i {
  display: block !important;
  border-radius: 999px !important;
  height: 8px !important;
  margin-bottom: 10px !important;
}

.inventario-entry-device b { width: 70px !important; background: #0d2c6c !important; }
.inventario-entry-device span { width: 96px !important; background: #e4eaf4 !important; }
.inventario-entry-device i { width: 52px !important; background: #f2c230 !important; }
.inventario-entry-device-1 { left: 42px !important; top: 34px !important; animation: inventarioDeviceIn .5s ease-out .15s both !important; }
.inventario-entry-device-2 { right: 58px !important; top: 54px !important; animation: inventarioDeviceIn .5s ease-out .42s both !important; }
.inventario-entry-device-3 { left: 214px !important; bottom: 28px !important; animation: inventarioDeviceIn .5s ease-out .7s both !important; }

.inventario-entry-scan {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 5px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(242,194,48,0), rgba(242,194,48,.96), rgba(242,194,48,0)) !important;
  box-shadow: 0 0 24px rgba(242,194,48,.75) !important;
  animation: inventarioScan 1.55s ease-in-out .35s forwards !important;
}

.inventario-entry-check {
  position: absolute !important;
  right: 20px !important;
  bottom: 20px !important;
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #ecfdf3 0%, #d1fadf 100%) !important;
  color: #039855 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  opacity: 0 !important;
  transform: scale(.65) !important;
  animation: inventarioCheck .42s ease-out 1.62s forwards !important;
}

.inventario-entry-progress {
  height: 10px !important;
  margin-top: 18px !important;
  border-radius: 999px !important;
  background: #e7eef8 !important;
  overflow: hidden !important;
}

.inventario-entry-progress-bar {
  height: 100% !important;
  width: 0;
  border-radius: inherit !important;
  background: linear-gradient(90deg, #0d2c6c 0%, #1f5cc8 55%, #f2c230 100%) !important;
  transition: width 2.05s linear !important;
}

.inventario-entry-footer {
  margin-top: 13px !important;
  color: #344054 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

@keyframes inventarioFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes inventarioFadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes inventarioDeviceIn { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes inventarioScan { 0% { left: 0%; opacity: 0; } 12% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes inventarioCheck { to { opacity: 1; transform: scale(1); } }

@media (max-width: 900px) {
  .inventario-resumen-grid,
  .inventario-filtros-grid,
  .inventario-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inventario-observaciones-field {
    grid-column: span 2;
  }
}

@media (max-width: 620px) {
  .inventario-resumen-grid,
  .inventario-filtros-grid,
  .inventario-form-grid {
    grid-template-columns: 1fr;
  }
  .inventario-observaciones-field {
    grid-column: span 1;
  }
  .inventario-auditoria-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .inventario-auditoria-item em {
    text-align: left;
  }
  .inventario-entry-card { padding: 22px !important; }
  .inventario-entry-title { font-size: 24px !important; }
  .inventario-entry-stage { height: 210px !important; }
  .inventario-entry-device { width: 116px !important; }
  .inventario-entry-device-1 { left: 16px !important; }
  .inventario-entry-device-2 { right: 18px !important; }
  .inventario-entry-device-3 { left: 96px !important; }
}



/* ACTUALIZACIÓN DE DATOS - MÓDULO PÚBLICO */
.actualizacion-public-screen {
  background:
    radial-gradient(circle at top left, rgba(19, 126, 255, 0.08), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 48%, #f1f6ff 100%);
  min-height: 100vh;
}

.actualizacion-public-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 74px;
}

.actualizacion-public-header {
  max-width: 980px;
  margin-bottom: 30px;
}

.actualizacion-public-logo-wrap {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 42px rgba(36, 59, 120, 0.14);
  margin-bottom: 22px;
}

.actualizacion-public-logo-wrap img {
  max-width: 76px;
  max-height: 76px;
  object-fit: contain;
}

.actualizacion-public-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1273ea;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 10px;
}

.actualizacion-public-header h1 {
  color: #243873;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.05;
  margin: 0 0 22px;
  letter-spacing: -0.04em;
}

.actualizacion-public-header p {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.62;
  color: #111827;
  margin: 0;
  max-width: 1040px;
}

.actualizacion-card,
.actualizacion-loader-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(31, 68, 142, 0.12);
  box-shadow: 0 22px 55px rgba(36, 56, 115, 0.13);
  border-radius: 30px;
  padding: 30px;
  margin-top: 24px;
}

.actualizacion-consulta-card {
  max-width: 680px;
}

.actualizacion-consulta-card label {
  display: block;
  color: #6b5f5a;
  font-size: 1.18rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.actualizacion-documento-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.actualizacion-documento-row input {
  flex: 1 1 320px;
  height: 62px;
  border-radius: 32px;
  border: 3px solid #243873;
  box-shadow: 0 0 0 7px rgba(18, 115, 234, 0.20);
  padding: 0 24px;
  font-size: 1.25rem;
  outline: none;
  background: #fff;
}

.actualizacion-documento-row input:focus {
  border-color: #1273ea;
  box-shadow: 0 0 0 8px rgba(18, 115, 234, 0.24);
}

.actualizacion-btn-consultar {
  min-height: 58px;
  padding-left: 28px;
  padding-right: 28px;
  letter-spacing: .08em;
}

.actualizacion-mensaje {
  margin-top: 16px;
  min-height: 20px;
  font-weight: 700;
}

.actualizacion-mensaje-error { color: #b91c1c; }
.actualizacion-mensaje-success { color: #047857; }
.actualizacion-mensaje-info { color: #1d4ed8; }

.actualizacion-loader-card {
  max-width: 520px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.actualizacion-loader-visual {
  height: 140px;
  width: 260px;
  margin: 0 auto 12px;
  position: relative;
}

.actualizacion-loader-lupa {
  width: 78px;
  height: 78px;
  border: 6px solid #1273ea;
  border-radius: 50%;
  color: #1273ea;
  font-size: 58px;
  line-height: 66px;
  position: absolute;
  left: 84px;
  top: 22px;
  animation: buscarAsociado 1.15s ease-in-out infinite;
  background: rgba(255,255,255,.85);
  z-index: 2;
}

.actualizacion-loader-lupa::after {
  content: '';
  position: absolute;
  width: 34px;
  height: 7px;
  border-radius: 999px;
  background: #1273ea;
  transform: rotate(45deg);
  right: -22px;
  bottom: 3px;
}

.actualizacion-loader-card-mini {
  position: absolute;
  width: 86px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eaf2ff, #ffffff);
  border: 1px solid rgba(18,115,234,.24);
  left: 28px;
  top: 54px;
  box-shadow: 0 10px 24px rgba(31,68,142,.14);
}

.actualizacion-loader-card-mini.two {
  left: 148px;
  top: 46px;
}

.actualizacion-loader-line {
  position: absolute;
  left: 46px;
  bottom: 12px;
  width: 168px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(18,115,234,.15), rgba(18,115,234,.75), rgba(18,115,234,.15));
  background-size: 200% 100%;
  animation: actualizacionBarra 1.1s linear infinite;
}

@keyframes buscarAsociado {
  0%, 100% { transform: translateX(-14px) rotate(-4deg); }
  50% { transform: translateX(16px) rotate(5deg); }
}

@keyframes actualizacionBarra {
  from { background-position: 0 0; }
  to { background-position: 200% 0; }
}

.actualizacion-loader-card h3 {
  color: #243873;
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.actualizacion-loader-card p {
  color: #4b5563;
  margin: 0;
}

.actualizacion-seguridad-card,
.actualizacion-formulario-card {
  max-width: 1080px;
}

.actualizacion-seguridad-card h2,
.actualizacion-form-head h2 {
  color: #243873;
  margin-top: 0;
}

.actualizacion-opciones-seguridad {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.actualizacion-opcion-btn {
  border: 1px solid rgba(18, 115, 234, .2);
  background: #f4f8ff;
  color: #243873;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.actualizacion-opcion-btn:hover {
  transform: translateY(-2px);
  background: #e8f1ff;
  box-shadow: 0 12px 26px rgba(18, 115, 234, .18);
}

.actualizacion-form-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(31, 68, 142, .12);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.actualizacion-form-head span {
  display: inline-flex;
  color: #1273ea;
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}

.actualizacion-form-head p {
  margin: 0;
  color: #667085;
}

.actualizacion-basicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.actualizacion-basicos-grid div {
  background: linear-gradient(135deg, #f6f9ff, #ffffff);
  border: 1px solid rgba(31, 68, 142, .12);
  border-radius: 18px;
  padding: 16px;
}

.actualizacion-basicos-grid span {
  display: block;
  color: #667085;
  font-size: .83rem;
  margin-bottom: 6px;
}

.actualizacion-basicos-grid strong {
  color: #243873;
  font-size: 1rem;
  word-break: break-word;
}

.actualizacion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.actualizacion-form-grid .field input,
.actualizacion-form-grid .field select {
  width: 100%;
}

.actualizacion-field-wide {
  grid-column: 1 / -1;
}

.actualizacion-autorizacion-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f8fbff;
  border: 1px solid rgba(31, 68, 142, .14);
  border-radius: 18px;
  padding: 18px;
  margin-top: 24px;
  color: #334155;
  line-height: 1.5;
}

.actualizacion-autorizacion-box input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.actualizacion-actions-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .actualizacion-public-shell { width: min(100% - 22px, 1180px); padding-top: 28px; }
  .actualizacion-documento-row { display: block; }
  .actualizacion-documento-row input { width: 100%; flex: none; }
  .actualizacion-btn-consultar { width: 100%; margin-top: 18px; }
  .actualizacion-card, .actualizacion-loader-card { padding: 22px; border-radius: 24px; }
  .actualizacion-form-grid { grid-template-columns: 1fr; }
}

/* AJUSTE VISUAL ACTUALIZACIÓN DE DATOS - DISEÑO COMPACTO Y PROFESIONAL */
.actualizacion-public-screen {
  border-radius: 22px;
  overflow: hidden;
}

.actualizacion-public-shell {
  width: min(940px, calc(100% - 34px));
  margin: 0 auto;
  padding: 38px 0 58px;
}

.actualizacion-public-header {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.actualizacion-public-logo-wrap {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 24px;
}

.actualizacion-public-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.actualizacion-public-header p {
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  max-width: 820px;
  margin: 0 auto;
}

.actualizacion-card,
.actualizacion-loader-card {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 24px;
  padding: 26px;
}

.actualizacion-consulta-card,
.actualizacion-loader-card {
  max-width: 720px;
}

.actualizacion-consulta-card label {
  font-size: 1rem;
  color: #344054;
  font-weight: 800;
}

.actualizacion-documento-row input {
  height: 54px;
  border-radius: 18px;
  border: 2px solid #243873;
  box-shadow: 0 0 0 5px rgba(18, 115, 234, 0.14);
  font-size: 1.05rem;
}

.actualizacion-btn-consultar {
  min-height: 52px;
  border-radius: 16px;
}

.actualizacion-seguridad-card {
  max-width: 780px;
}

.actualizacion-seguridad-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(31, 68, 142, .12);
}

.actualizacion-seguridad-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D2C6C, #1273ea);
  color: white;
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(18, 115, 234, .25);
  flex: 0 0 auto;
}

.actualizacion-seguridad-head h2 {
  margin: 0 0 4px;
}

.actualizacion-seguridad-head p {
  margin: 0;
  color: #667085;
  font-weight: 600;
}

.actualizacion-pregunta-box {
  background: #f8fbff;
  border: 1px solid rgba(31, 68, 142, .14);
  border-radius: 18px;
  padding: 16px 18px;
}

.actualizacion-pregunta-box span {
  display: block;
  color: #1273ea;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 900;
  margin-bottom: 6px;
}

.actualizacion-pregunta-box strong {
  display: block;
  color: #243873;
  font-size: 1.08rem;
}

.actualizacion-opciones-seguridad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.actualizacion-opcion-btn {
  min-height: 58px;
  border: 1.5px solid rgba(13, 44, 108, .18);
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  color: #243873;
  border-radius: 18px;
  padding: 14px 16px;
  font-size: .98rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(36, 56, 115, .08);
}

.actualizacion-opcion-btn span {
  width: 12px;
  height: 12px;
  border: 2px solid #1273ea;
  border-radius: 50%;
  background: white;
  flex: 0 0 auto;
}

.actualizacion-opcion-btn:hover {
  background: linear-gradient(135deg, #eef5ff, #ffffff);
  border-color: #1273ea;
  box-shadow: 0 16px 34px rgba(18, 115, 234, .18);
}

.actualizacion-formulario-card {
  max-width: 930px;
}

.actualizacion-form-head {
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  border: 1px solid rgba(31, 68, 142, .10);
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
}

.actualizacion-seccion-titulo {
  color: #0D2C6C;
  font-size: .9rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 18px 0 12px;
  padding-left: 10px;
  border-left: 5px solid var(--amarillo);
}

.actualizacion-basicos-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 22px;
}

.actualizacion-basicos-grid .actualizacion-basico-field {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}

.actualizacion-basico-field label {
  color: #475467;
  font-size: 12.5px;
  font-weight: 800;
}

.actualizacion-basico-field input[disabled] {
  height: 42px;
  border: 1.4px solid #d0d5dd;
  border-radius: 11px;
  padding: 0 12px;
  background: #edf0f5;
  color: #344054;
  font-weight: 800;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04);
}

.actualizacion-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.actualizacion-autorizacion-box {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: flex-start;
  gap: 12px;
  background: linear-gradient(135deg, #fffdf3, #ffffff);
  border: 1.5px solid rgba(242, 194, 48, .55);
  border-radius: 18px;
  padding: 18px 20px;
  margin-top: 24px;
  color: #344054;
  font-size: .94rem;
  line-height: 1.55;
  box-shadow: 0 12px 28px rgba(242, 194, 48, .12);
  cursor: pointer;
}

.actualizacion-autorizacion-box input {
  width: 21px;
  height: 21px;
  margin: 1px 0 0;
  accent-color: #0D2C6C;
  cursor: pointer;
}

.actualizacion-actions-row {
  justify-content: center;
  margin-top: 20px;
}

.actualizacion-actions-row .btn {
  max-width: 320px;
  border-radius: 16px;
  min-height: 48px;
}

@media (max-width: 760px) {
  .actualizacion-public-screen {
    border-radius: 0;
  }
  .actualizacion-public-shell {
    width: min(100% - 22px, 940px);
    padding-top: 26px;
  }
  .actualizacion-card,
  .actualizacion-loader-card {
    padding: 20px;
    border-radius: 22px;
  }
  .actualizacion-opciones-seguridad,
  .actualizacion-basicos-grid,
  .actualizacion-form-grid {
    grid-template-columns: 1fr;
  }
  .actualizacion-seguridad-head {
    align-items: flex-start;
  }
}

/* AJUSTE FINAL - ACTUALIZACIÓN DE DATOS CENTRADA Y COMPACTA */
#actualizacionDatos,
#actualizacionDatos * {
  box-sizing: border-box;
}

#actualizacionDatos.actualizacion-public-screen {
  width: 100% !important;
  min-height: calc(100vh - 56px) !important;
  padding: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(242, 194, 48, .18), transparent 34%),
    linear-gradient(135deg, #f4f6fa 0%, #ffffff 48%, #eef4ff 100%) !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

#actualizacionDatos .actualizacion-public-shell {
  width: min(100% - 36px, 980px) !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 28px 0 58px !important;
}

#actualizacionDatos .actualizacion-public-header {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 22px !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-public-logo-wrap {
  width: min(360px, 82%) !important;
  height: auto !important;
  max-width: 360px !important;
  margin: 0 auto 12px !important;
  padding: 0 !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#actualizacionDatos .actualizacion-public-logo-wrap img {
  display: block !important;
  width: 100% !important;
  max-width: 360px !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
}

#actualizacionDatos .actualizacion-public-kicker {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #1273ea !important;
  font-size: .78rem !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-weight: 900 !important;
  margin: 4px auto 8px !important;
}

#actualizacionDatos .actualizacion-public-header h1 {
  color: #0D2C6C !important;
  font-size: clamp(1.8rem, 3.2vw, 2.55rem) !important;
  line-height: 1.08 !important;
  margin: 0 0 12px !important;
  font-weight: 900 !important;
  letter-spacing: -.02em !important;
}

#actualizacionDatos .actualizacion-public-header p {
  max-width: 680px !important;
  margin: 0 auto !important;
  color: #344054 !important;
  font-size: 1rem !important;
  line-height: 1.55 !important;
  font-weight: 600 !important;
}

#actualizacionDatos .actualizacion-card,
#actualizacionDatos .actualizacion-loader-card {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 auto 18px !important;
  padding: 24px !important;
  background: #ffffff !important;
  border: 1px solid rgba(13, 44, 108, .10) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 34px rgba(13, 44, 108, .12) !important;
}

#actualizacionDatos .actualizacion-formulario-card {
  max-width: 980px !important;
}

#actualizacionDatos .actualizacion-consulta-card label,
#actualizacionDatos .field label,
#actualizacionDatos .actualizacion-basico-field label {
  display: block !important;
  margin-bottom: 8px !important;
  color: #344054 !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
}

#actualizacionDatos .actualizacion-documento-row {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  gap: 12px !important;
  align-items: end !important;
  margin-top: 8px !important;
}

#actualizacionDatos .actualizacion-documento-row input,
#actualizacionDatos .actualizacion-form-grid input,
#actualizacionDatos .actualizacion-form-grid select,
#actualizacionDatos .actualizacion-form-grid textarea,
#actualizacionDatos .actualizacion-basico-field input {
  width: 100% !important;
  min-height: 48px !important;
  border: 1.6px solid #d8dee8 !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #263238 !important;
  padding: 0 14px !important;
  font-size: .96rem !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: 0 3px 10px rgba(13, 44, 108, .04) !important;
}

#actualizacionDatos .actualizacion-documento-row input:focus,
#actualizacionDatos .actualizacion-form-grid input:focus,
#actualizacionDatos .actualizacion-form-grid select:focus,
#actualizacionDatos .actualizacion-form-grid textarea:focus {
  border-color: #0D2C6C !important;
  box-shadow: 0 0 0 4px rgba(13, 44, 108, .12) !important;
}

#actualizacionDatos .actualizacion-form-grid textarea {
  min-height: 92px !important;
  padding-top: 12px !important;
  resize: vertical !important;
}

#actualizacionDatos .actualizacion-btn-consultar,
#actualizacionDatos .actualizacion-actions-row .btn {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 0 28px !important;
  background: linear-gradient(135deg, #0D2C6C, #143e8f) !important;
  color: #ffffff !important;
  font-size: .96rem !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  box-shadow: 0 10px 22px rgba(13, 44, 108, .22) !important;
}

#actualizacionDatos .actualizacion-btn-consultar:hover,
#actualizacionDatos .actualizacion-actions-row .btn:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(13, 44, 108, .26) !important;
}

#actualizacionDatos .actualizacion-mensaje {
  min-height: 20px !important;
  margin-top: 10px !important;
  font-weight: 800 !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-mensaje-error { color: #b91c1c !important; }
#actualizacionDatos .actualizacion-mensaje-success { color: #047857 !important; }
#actualizacionDatos .actualizacion-mensaje-info { color: #1d4ed8 !important; }

#actualizacionDatos .actualizacion-loader-card {
  text-align: center !important;
}

#actualizacionDatos .actualizacion-loader-visual {
  width: 142px !important;
  height: 112px !important;
  margin: 0 auto 16px !important;
  position: relative !important;
}

#actualizacionDatos .actualizacion-loader-lupa {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  border: 6px solid #0D2C6C !important;
  color: transparent !important;
  position: absolute !important;
  left: 8px !important;
  top: 22px !important;
  animation: actualizacionLupaFinal 1.25s ease-in-out infinite alternate !important;
}

#actualizacionDatos .actualizacion-loader-lupa::after {
  content: '' !important;
  width: 28px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: #F2C230 !important;
  position: absolute !important;
  right: -22px !important;
  bottom: 0 !important;
  transform: rotate(42deg) !important;
}

#actualizacionDatos .actualizacion-loader-card-mini,
#actualizacionDatos .actualizacion-loader-card-mini.two {
  width: 70px !important;
  height: 44px !important;
  position: absolute !important;
  right: 10px !important;
  top: 20px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 2px solid rgba(13,44,108,.18) !important;
  box-shadow: 0 10px 20px rgba(13,44,108,.14) !important;
}

#actualizacionDatos .actualizacion-loader-card-mini.two {
  top: 62px !important;
  right: 28px !important;
}

#actualizacionDatos .actualizacion-loader-line {
  width: 112px !important;
  height: 7px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #0D2C6C 0%, #F2C230 50%, #0D2C6C 100%) !important;
  background-size: 220% 100% !important;
  position: absolute !important;
  left: 15px !important;
  bottom: 6px !important;
  animation: actualizacionBarraFinal 1s linear infinite !important;
}

@keyframes actualizacionLupaFinal {
  from { transform: translateX(0) scale(1); }
  to { transform: translateX(12px) scale(1.04); }
}

@keyframes actualizacionBarraFinal {
  to { background-position: 220% 0; }
}

#actualizacionDatos .actualizacion-seguridad-card {
  text-align: center !important;
}

#actualizacionDatos .actualizacion-seguridad-head {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  padding-bottom: 16px !important;
  border-bottom: 1px solid rgba(13, 44, 108, .10) !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-seguridad-icon {
  width: 54px !important;
  height: 54px !important;
  border-radius: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #0D2C6C, #1273ea) !important;
  color: #ffffff !important;
  font-size: 1.35rem !important;
  font-weight: 900 !important;
  box-shadow: 0 14px 28px rgba(18, 115, 234, .22) !important;
}

#actualizacionDatos .actualizacion-seguridad-head h2,
#actualizacionDatos .actualizacion-form-head h2 {
  color: #0D2C6C !important;
  margin: 0 0 5px !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
}

#actualizacionDatos .actualizacion-seguridad-head p,
#actualizacionDatos .actualizacion-form-head p {
  margin: 0 !important;
  color: #667085 !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

#actualizacionDatos .actualizacion-pregunta-box {
  background: linear-gradient(135deg, #f8fbff, #ffffff) !important;
  border: 1.5px solid rgba(13, 44, 108, .14) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-pregunta-box span {
  display: block !important;
  color: #1273ea !important;
  font-size: .78rem !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  font-weight: 900 !important;
  margin-bottom: 8px !important;
}

#actualizacionDatos .actualizacion-pregunta-box strong {
  display: block !important;
  color: #0D2C6C !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
}

#actualizacionDatos .actualizacion-opciones-seguridad {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-top: 18px !important;
}

#actualizacionDatos .actualizacion-opcion-btn {
  min-height: 62px !important;
  border: 1.6px solid rgba(13, 44, 108, .16) !important;
  background: linear-gradient(135deg, #ffffff, #f5f8ff) !important;
  color: #0D2C6C !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  font-size: .98rem !important;
  font-weight: 900 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 22px rgba(13, 44, 108, .08) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

#actualizacionDatos .actualizacion-opcion-btn span {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #1273ea !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  flex: 0 0 auto !important;
}

#actualizacionDatos .actualizacion-opcion-btn:hover {
  transform: translateY(-2px) !important;
  border-color: #1273ea !important;
  box-shadow: 0 16px 30px rgba(18, 115, 234, .18) !important;
}

#actualizacionDatos .actualizacion-form-head {
  background: linear-gradient(135deg, #f8fbff, #ffffff) !important;
  border: 1px solid rgba(13, 44, 108, .10) !important;
  border-radius: 18px !important;
  padding: 18px !important;
  margin-bottom: 20px !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-seccion-titulo {
  color: #0D2C6C !important;
  font-size: .9rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  margin: 20px 0 12px !important;
  padding-left: 10px !important;
  border-left: 5px solid #F2C230 !important;
  text-align: left !important;
}

#actualizacionDatos .actualizacion-basicos-grid,
#actualizacionDatos .actualizacion-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 18px !important;
}

#actualizacionDatos .actualizacion-basico-field {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

#actualizacionDatos .actualizacion-basico-field input[disabled],
#actualizacionDatos .actualizacion-basico-field input:disabled {
  background: #edf0f5 !important;
  border-color: #d0d5dd !important;
  color: #344054 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

#actualizacionDatos .actualizacion-field-wide {
  grid-column: 1 / -1 !important;
}

#actualizacionDatos .actualizacion-autorizacion-box {
  display: grid !important;
  grid-template-columns: 26px 1fr !important;
  align-items: flex-start !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 24px auto 0 !important;
  padding: 18px 20px !important;
  background: linear-gradient(135deg, #fffdf3, #ffffff) !important;
  border: 1.5px solid rgba(242, 194, 48, .60) !important;
  border-radius: 18px !important;
  color: #344054 !important;
  font-size: .94rem !important;
  line-height: 1.55 !important;
  font-weight: 650 !important;
  box-shadow: 0 12px 28px rgba(242, 194, 48, .13) !important;
  cursor: pointer !important;
  text-align: left !important;
}

#actualizacionDatos .actualizacion-autorizacion-box input {
  width: 21px !important;
  height: 21px !important;
  margin: 2px 0 0 !important;
  accent-color: #0D2C6C !important;
  cursor: pointer !important;
}

#actualizacionDatos .actualizacion-actions-row {
  display: flex !important;
  justify-content: center !important;
  margin-top: 20px !important;
}

#actualizacionDatos .actualizacion-actions-row .btn {
  width: min(100%, 320px) !important;
}

#actualizacionDatos .hidden {
  display: none !important;
}

@media (max-width: 760px) {
  #actualizacionDatos .actualizacion-public-shell {
    width: min(100% - 22px, 980px) !important;
    padding-top: 22px !important;
  }

  #actualizacionDatos .actualizacion-card,
  #actualizacionDatos .actualizacion-loader-card {
    padding: 20px !important;
    border-radius: 20px !important;
  }

  #actualizacionDatos .actualizacion-documento-row,
  #actualizacionDatos .actualizacion-opciones-seguridad,
  #actualizacionDatos .actualizacion-basicos-grid,
  #actualizacionDatos .actualizacion-form-grid {
    grid-template-columns: 1fr !important;
  }

  #actualizacionDatos .actualizacion-btn-consultar {
    width: 100% !important;
  }

  #actualizacionDatos .actualizacion-public-logo-wrap {
    width: min(300px, 86%) !important;
  }
}


/* Ajustes módulo Actualización datos - Información financiera y SARLAFT */
#actualizacionDatos .actualizacion-seccion-titulo {
  margin-top: 26px;
}
#actualizacionDatos .actualizacion-form-grid + .actualizacion-seccion-titulo {
  margin-top: 30px;
}
#actualizacionDatos select option {
  color: #172554;
}


/* Actualización datos - panel administrativo */

/* Panel administrativo actualización de datos */
#actualizacionDatos .actualizacion-admin-entry {
  margin-top: 18px;
  text-align: center;
}
#actualizacionDatos .actualizacion-admin-entry button {
  border: 0;
  background: transparent;
  color: #14357f;
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
}
#actualizacionDatos .actualizacion-admin-card {
  margin-top: 18px;
}
#actualizacionDatos .actualizacion-admin-login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
#actualizacionDatos .actualizacion-admin-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}
#actualizacionDatos .actualizacion-admin-toolbar input {
  min-width: min(100%, 320px);
  border: 2px solid #d7e5ff;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
}
#actualizacionDatos .actualizacion-admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
#actualizacionDatos .actualizacion-admin-stat {
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  border: 1px solid #d8e7ff;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
}
#actualizacionDatos .actualizacion-admin-stat span {
  display: block;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
}
#actualizacionDatos .actualizacion-admin-stat strong {
  display: block;
  color: #14357f;
  font-size: 1.45rem;
  margin-top: 4px;
}
#actualizacionDatos .actualizacion-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9e6ff;
  border-radius: 18px;
}
#actualizacionDatos .actualizacion-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
  background: #fff;
}
#actualizacionDatos .actualizacion-admin-table th {
  background: #14357f;
  color: #fff;
  text-align: left;
  padding: 12px 10px;
  font-size: 0.82rem;
}
#actualizacionDatos .actualizacion-admin-table td {
  border-bottom: 1px solid #e7eefc;
  padding: 10px;
  font-size: 0.86rem;
  color: #1f2937;
}
#actualizacionDatos .actualizacion-admin-table tr:hover td {
  background: #f8fbff;
}
#actualizacionDatos .actualizacion-admin-detail {
  margin-top: 16px;
  border: 1px solid #d9e6ff;
  border-radius: 18px;
  padding: 16px;
  background: #f8fbff;
}
#actualizacionDatos .actualizacion-admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}
#actualizacionDatos .actualizacion-admin-detail-grid div {
  background: #fff;
  border: 1px solid #e5eefc;
  border-radius: 12px;
  padding: 10px;
}
#actualizacionDatos .actualizacion-admin-detail-grid span {
  display:block;
  color:#64748b;
  font-size:0.78rem;
  font-weight:800;
}
#actualizacionDatos .actualizacion-admin-detail-grid strong {
  display:block;
  color:#0f265f;
  margin-top:4px;
  word-break: break-word;
}
@media (max-width: 720px) {
  #actualizacionDatos .actualizacion-admin-login-grid { grid-template-columns: 1fr; }
  #actualizacionDatos .actualizacion-admin-toolbar { align-items: stretch; }
  #actualizacionDatos .actualizacion-admin-toolbar input,
  #actualizacionDatos .actualizacion-admin-toolbar button { width: 100%; }
}


/* Mejoras visuales panel administrativo Actualización datos */
#actualizacionDatos .actualizacion-admin-entry {
  margin: 24px auto 4px !important;
  text-align: center !important;
}

#actualizacionDatos .actualizacion-admin-access-btn {
  width: min(100%, 560px);
  border: 1px solid rgba(20, 53, 127, 0.16) !important;
  border-radius: 22px !important;
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 48%, #eef5ff 100%) !important;
  color: #14357f !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  box-shadow: 0 14px 34px rgba(13, 44, 108, 0.13) !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

#actualizacionDatos .actualizacion-admin-access-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 194, 48, 0.8) !important;
  box-shadow: 0 18px 42px rgba(13, 44, 108, 0.18) !important;
}

#actualizacionDatos .actualizacion-admin-access-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #14357f, #1d4ba5);
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 22px rgba(20, 53, 127, 0.24);
  flex: 0 0 auto;
}

#actualizacionDatos .actualizacion-admin-access-text {
  text-align: left;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
}

#actualizacionDatos .actualizacion-admin-access-text strong {
  font-size: 1rem;
  font-weight: 1000;
  color: #102b68;
}

#actualizacionDatos .actualizacion-admin-access-text small {
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
}

#actualizacionDatos .actualizacion-admin-access-arrow {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f2c230;
  color: #102b68;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
  flex: 0 0 auto;
}

#actualizacionDatos .actualizacion-admin-toolbar {
  background: #f8fbff;
  border: 1px solid #d9e6ff;
  border-radius: 18px;
  padding: 14px;
}

#actualizacionDatos .actualizacion-admin-toolbar input {
  flex: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  background: #ffffff;
}

#actualizacionDatos .actualizacion-admin-list-card {
  margin-top: 16px;
  border: 1px solid #d9e6ff;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 42px rgba(13, 44, 108, 0.10);
  overflow: hidden;
}

#actualizacionDatos .actualizacion-admin-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid #dce8fb;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
}

#actualizacionDatos .actualizacion-admin-list-head span {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

#actualizacionDatos .actualizacion-admin-list-head strong {
  display: block;
  margin-top: 3px;
  color: #102b68;
  font-size: 1.05rem;
  font-weight: 1000;
}

#actualizacionDatos .actualizacion-admin-list-head small {
  color: #64748b;
  font-weight: 800;
  text-align: right;
}

#actualizacionDatos .actualizacion-admin-table-wrap {
  border: 0 !important;
  border-radius: 0 !important;
  overflow-x: auto;
}

#actualizacionDatos .actualizacion-admin-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#actualizacionDatos .actualizacion-admin-table th {
  background: #14357f !important;
  color: #fff !important;
  font-weight: 1000 !important;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

#actualizacionDatos .actualizacion-admin-table td {
  vertical-align: middle;
}

#actualizacionDatos .actualizacion-admin-table tbody tr:nth-child(even) td {
  background: #fbfdff;
}

#actualizacionDatos .actualizacion-admin-table tbody tr:hover td {
  background: #fff7d8 !important;
}

#actualizacionDatos .actualizacion-admin-table .btn-small {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 1000;
}

#actualizacionDatos .actualizacion-admin-detail {
  margin-top: 18px !important;
  border: 1px solid #d8e7ff !important;
  border-radius: 22px !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(13, 44, 108, 0.12);
}

#actualizacionDatos .actualizacion-admin-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #14357f, #1f4ea8);
  color: #fff;
}

#actualizacionDatos .actualizacion-admin-detail-head span {
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255,255,255,0.78);
}

#actualizacionDatos .actualizacion-admin-detail-head h3 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 1000;
}

#actualizacionDatos .actualizacion-admin-detail-close {
  border: 0;
  border-radius: 999px;
  background: #f2c230;
  color: #102b68;
  font-weight: 1000;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

#actualizacionDatos .actualizacion-admin-detail-close:hover {
  filter: brightness(0.97);
  transform: translateY(-1px);
}

#actualizacionDatos .actualizacion-admin-detail-grid {
  padding: 18px;
}

@media (max-width: 720px) {
  #actualizacionDatos .actualizacion-admin-access-btn {
    align-items: flex-start !important;
  }
  #actualizacionDatos .actualizacion-admin-list-head,
  #actualizacionDatos .actualizacion-admin-detail-head {
    flex-direction: column;
    align-items: stretch;
  }
  #actualizacionDatos .actualizacion-admin-list-head small {
    text-align: left;
  }
  #actualizacionDatos .actualizacion-admin-detail-close {
    width: 100%;
  }
}

/* Ajustes Actualización datos: campos tributarios condicionales y confirmación con sol */
#actualizacionDatos .actualizacion-tributario-extra.hidden {
  display: none !important;
}

.sun-modal-dialog.sun-modal-dialog-actualizacion-ok {
  width: min(540px, calc(100% - 28px)) !important;
  max-width: 540px !important;
  min-height: auto !important;
  grid-template-columns: 170px 1fr !important;
  border-radius: 30px !important;
  overflow: hidden !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-figure {
  min-height: 260px !important;
  padding: 24px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-figure img {
  width: 138px !important;
  max-width: 138px !important;
  height: auto !important;
  object-fit: contain !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-content {
  padding: 34px 34px 28px !important;
  min-height: auto !important;
  justify-content: center !important;
}

.sun-modal-dialog-actualizacion-ok #sunModalTitle {
  font-size: 24px !important;
  line-height: 1.15 !important;
}

.sun-modal-dialog-actualizacion-ok #sunModalMessage {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

@media (max-width: 620px) {
  .sun-modal-dialog.sun-modal-dialog-actualizacion-ok {
    grid-template-columns: 1fr !important;
    width: min(420px, calc(100% - 24px)) !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-figure {
    min-height: 140px !important;
    padding: 22px 16px 4px !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-figure img {
    width: 112px !important;
    max-width: 112px !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-content {
    padding: 20px 24px 28px !important;
    text-align: center !important;
  }
}

/* Ajuste final: muñequito de confirmación más grande y bien encajado */
.sun-modal-dialog.sun-modal-dialog-actualizacion-ok {
  width: min(560px, calc(100% - 28px)) !important;
  max-width: 560px !important;
  grid-template-columns: 190px 1fr !important;
  align-items: stretch !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-figure {
  min-height: 270px !important;
  padding: 10px 0 10px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: transparent !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-figure img {
  width: 188px !important;
  max-width: 188px !important;
  height: 230px !important;
  max-height: 230px !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

.sun-modal-dialog-actualizacion-ok .sun-modal-content {
  padding-left: 26px !important;
}

@media (max-width: 620px) {
  .sun-modal-dialog.sun-modal-dialog-actualizacion-ok {
    grid-template-columns: 1fr !important;
    width: min(420px, calc(100% - 24px)) !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-figure {
    min-height: 155px !important;
    padding: 20px 16px 0 !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-figure img {
    width: 160px !important;
    max-width: 160px !important;
    height: 150px !important;
    max-height: 150px !important;
  }
  .sun-modal-dialog-actualizacion-ok .sun-modal-content {
    padding-left: 24px !important;
  }
}

/* Ajuste financiero actualización de datos */
#actualizacionDatos .actualizacion-campo-no-aplica,
#actualizacionDatos input.actualizacion-campo-no-aplica[readonly],
#actualizacionDatos textarea.actualizacion-campo-no-aplica[readonly] {
  background: #eef2f7 !important;
  color: #667085 !important;
  border-color: #d0d5dd !important;
  cursor: not-allowed !important;
  font-weight: 700 !important;
}


/* Ajuste: campos financieros inhabilitados y NO APLICA */
#actualizacionDatos .actualizacion-campo-inhabilitado,
#actualizacionDatos input.actualizacion-campo-inhabilitado,
#actualizacionDatos select.actualizacion-campo-inhabilitado,
#actualizacionDatos textarea.actualizacion-campo-inhabilitado,
#actualizacionDatos input:disabled,
#actualizacionDatos select:disabled,
#actualizacionDatos textarea:disabled {
  background: #f1f4f8 !important;
  color: #98a2b3 !important;
  border-color: #d0d5dd !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#actualizacionDatos .actualizacion-campo-no-aplica,
#actualizacionDatos input.actualizacion-campo-no-aplica[readonly],
#actualizacionDatos textarea.actualizacion-campo-no-aplica[readonly] {
  background: #e9edf3 !important;
  color: #667085 !important;
  border-color: #c7ced8 !important;
  cursor: not-allowed !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}


/* Ajuste: Activos como texto amplio */
#actualizacionDatos textarea#actActivos {
  min-height: 110px !important;
  line-height: 1.35 !important;
  resize: vertical !important;
  white-space: pre-wrap !important;
}

#actualizacionDatos textarea.actualizacion-campo-inhabilitado,
#actualizacionDatos textarea:disabled {
  background: #f1f4f8 !important;
  color: #98a2b3 !important;
  border-color: #d0d5dd !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#actualizacionDatos textarea.actualizacion-campo-no-aplica[readonly] {
  background: #e9edf3 !important;
  color: #667085 !important;
  border-color: #c7ced8 !important;
  cursor: not-allowed !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6) !important;
}


/* Ajuste solicitado: ampliar solo el listado administrativo de Actualización datos en PC */
@media (min-width: 1024px) {
  #actualizacionDatos #actualizacionAdminPanel {
    width: min(1480px, calc(100vw - 80px)) !important;
    max-width: none !important;
    margin-left: 50% !important;
    transform: translateX(-50%) !important;
  }

  #actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-list-card {
    width: 100% !important;
  }

  #actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-table {
    min-width: 1280px !important;
  }

  #actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-toolbar input {
    min-width: 520px !important;
  }
}


/* Ajuste solicitado: estado manual de actualización y título centrado */
#actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-head-centered {
  text-align: center !important;
  justify-content: center !important;
}

#actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-head-centered > div {
  width: 100% !important;
}

#actualizacionDatos .actualizacion-admin-stat-pending {
  background: linear-gradient(135deg, #fffdf5, #fff4cc) !important;
  border-color: #fde68a !important;
}

#actualizacionDatos .actualizacion-admin-stat-pending strong {
  color: #a16207 !important;
}

#actualizacionDatos .actualizacion-admin-estado-select {
  width: 150px !important;
  max-width: 100% !important;
  border: 1px solid #d8e3f6 !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 900 !important;
  font-size: 0.86rem !important;
  color: #102b68 !important;
  background: #f8fbff !important;
  outline: none !important;
  cursor: pointer !important;
  box-shadow: 0 8px 20px rgba(13, 44, 108, 0.08) !important;
}

#actualizacionDatos .actualizacion-admin-estado-select.estado-si {
  background: #ecfdf3 !important;
  border-color: #86efac !important;
  color: #047857 !important;
}

#actualizacionDatos .actualizacion-admin-estado-select.estado-no {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}

@media (min-width: 1024px) {
  #actualizacionDatos #actualizacionAdminPanel .actualizacion-admin-table {
    min-width: 1400px !important;
  }
}


/* Ajuste solicitado: paginación de 10 registros en listado administrativo */
#actualizacionDatos .actualizacion-admin-pagination {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding: 16px 18px 18px !important;
  border-top: 1px solid #dce8fb !important;
  background: #f8fbff !important;
}

#actualizacionDatos .actualizacion-admin-pagination span {
  color: #102b68 !important;
  font-weight: 900 !important;
  font-size: 0.92rem !important;
}

#actualizacionDatos .actualizacion-admin-page-btn {
  border: 0 !important;
  border-radius: 999px !important;
  background: #14357f !important;
  color: #ffffff !important;
  font-weight: 1000 !important;
  padding: 10px 18px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 24px rgba(13, 44, 108, 0.14) !important;
}

#actualizacionDatos .actualizacion-admin-page-btn:hover:not(:disabled) {
  transform: translateY(-1px) !important;
  filter: brightness(1.04) !important;
}

#actualizacionDatos .actualizacion-admin-page-btn:disabled {
  background: #d0d5dd !important;
  color: #667085 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  #actualizacionDatos .actualizacion-admin-pagination {
    flex-direction: column !important;
    gap: 10px !important;
  }

  #actualizacionDatos .actualizacion-admin-page-btn {
    width: 100% !important;
  }
}


/* Ajustes puntuales Agencia de viaje: datos adicionales, cupos y paginación */
.viaje-cupo-modal-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 8px 0 14px;
  text-align: left;
}
.viaje-cupo-modal-info div {
  border: 1px solid rgba(22, 64, 139, 0.14);
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fbff;
}
.viaje-cupo-modal-info span {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #62708a;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.viaje-cupo-modal-info strong {
  display: block;
  color: #082b6f;
  font-size: 13px;
  word-break: break-word;
}
.viaje-cupo-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.viaje-modal-select {
  width: 100%;
  border: 2px solid #d5e4ff;
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 700;
  color: #082b6f;
  background: white;
}
.btn-danger {
  background: #b91c1c !important;
  color: #fff !important;
  border: none !important;
}
.btn-danger:hover {
  filter: brightness(.95);
}
.viaje-auditoria-pagination {
  margin-top: 12px;
}


/* Ajuste Agencia de viaje - agregar persona a titular */
.viaje-agregar-persona-row {
  justify-content: flex-start;
  margin: 10px 0 14px;
}
.viaje-agregar-persona-modal {
  text-align: left;
}
.viaje-agregar-persona-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.viaje-agregar-persona-grid .field label {
  display: block;
  font-weight: 800;
  color: #18346f;
  margin-bottom: 6px;
}
.viaje-agregar-persona-grid input,
.viaje-agregar-persona-grid select {
  width: 100%;
  border: 2px solid #dbe7ff;
  border-radius: 14px;
  padding: 11px 12px;
  font-weight: 750;
  outline: none;
  background: #fff;
}
.viaje-agregar-persona-grid input:focus,
.viaje-agregar-persona-grid select:focus {
  border-color: #0D2C6C;
  box-shadow: 0 0 0 3px rgba(13, 44, 108, .10);
}
.viaje-agregar-persona-wide {
  grid-column: 1 / -1;
}
@media (max-width: 720px) {
  .viaje-agregar-persona-grid {
    grid-template-columns: 1fr;
  }
}


/* Ajuste específico: edición de distribución de habitaciones en Agencia de viaje */
.viaje-habitaciones-editar-card {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(20, 57, 122, 0.18);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 8px 20px rgba(20, 57, 122, 0.08);
}

.viaje-habitaciones-editar-card h3 {
  margin: 0 0 6px;
  color: #14397a;
  font-size: 1.05rem;
}

.viaje-habitaciones-editar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.viaje-habitacion-edit-item {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(20, 57, 122, 0.16);
}

.viaje-habitacion-edit-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.viaje-habitacion-edit-title strong {
  color: #0d3478;
}

.viaje-habitacion-edit-title span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: #14397a;
  font-size: 0.78rem;
  font-weight: 800;
}



/* ==========================
   FOLIOS
   ========================== */
.folios-shell {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 36px;
}
.folios-hero,
.folios-public-card,
.folios-admin-login,
.folios-admin-panel {
  border: 1px solid #d7e4fb;
  box-shadow: 0 18px 45px rgba(18, 47, 105, .08);
}
.folios-hero {
  text-align: center;
  padding: 28px 24px;
}
.folios-kicker,
.folios-admin-head span,
.folios-list-head span {
  display: block;
  color: #0069ff;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  margin-bottom: 6px;
}
.folios-hero h1,
.folios-admin-head h2 {
  color: #12337a;
  margin: 0 0 8px;
}
.folios-hero p,
.folios-admin-head p,
.folios-admin-login p {
  color: #5f6d84;
  margin: 0;
  font-weight: 700;
}
.folios-public-card,
.folios-admin-login,
.folios-admin-panel {
  margin-top: 18px;
  padding: 24px;
}
.folios-public-card label,
.folios-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 900;
  color: #12337a;
}
.folios-public-card input,
.folios-admin-login input,
.folios-form-grid input,
.folios-list-toolbar input,
.folios-search-row input {
  width: 100%;
  border: 2px solid #cfe0ff;
  border-radius: 16px;
  padding: 13px 15px;
  font-weight: 800;
  outline: none;
  background: #fff;
}
.folios-public-card input:focus,
.folios-admin-login input:focus,
.folios-form-grid input:focus,
.folios-list-toolbar input:focus,
.folios-search-row input:focus {
  border-color: #123b8c;
  box-shadow: 0 0 0 4px rgba(18, 59, 140, .12);
}
.folios-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}
.folios-message {
  margin-top: 14px;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
  text-align: center;
}
.folios-message-info { background: #edf4ff; color: #12337a; border: 1px solid #cfe0ff; }
.folios-message-success { background: #eaf8f0; color: #0b7a3a; border: 1px solid #bde8cf; }
.folios-message-error { background: #fff1f1; color: #b71919; border: 1px solid #ffcaca; }
.folios-result { margin-top: 16px; display: grid; gap: 14px; }
.folios-result-card {
  border: 1px solid #d7e4fb;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff, #f5f9ff);
  padding: 18px;
}
.folios-result-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #dce8ff;
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.folios-result-title span { color: #0069ff; font-weight: 900; text-transform: uppercase; font-size: .78rem; }
.folios-result-title strong { color: #12337a; font-size: 1.15rem; }
.folios-result-grid,
.folios-form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.folios-result-grid div {
  background: #fff;
  border: 1px solid #e1eaff;
  border-radius: 16px;
  padding: 12px;
}
.folios-result-grid span {
  display:block;
  color:#63708a;
  font-weight:900;
  font-size:.78rem;
  margin-bottom:4px;
}
.folios-result-grid strong { color:#102d70; word-break:break-word; }

.folios-result-selection { padding: 16px; }
.folios-result-list { display: grid; gap: 10px; }
.folios-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dfe9ff;
  border-radius: 16px;
  background: #fff;
}
.folios-result-row-main { display: grid; gap: 4px; min-width: 0; }
.folios-result-row-main strong { color: #12337a; font-weight: 900; line-height: 1.2; }
.folios-result-row-main small { color: #66738f; font-weight: 800; }
.folios-result-row-compact {
  padding: 10px 12px;
}
.folios-result-row-compact .folios-result-row-main strong {
  font-size: 1rem;
  color: #092e78;
}
.folios-detail-link {
  border: 1px solid #c9d9f6;
  background: #eef4ff;
  color: #12337a;
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 900;
  cursor: pointer;
  min-width: 108px;
  box-shadow: none;
}
.folios-detail-link:hover {
  background: #dfeaff;
}
.folios-result-detail { margin-top: 14px; }
.folios-result-detail-card { border-color: #bcd3ff; box-shadow: 0 14px 30px rgba(16, 45, 112, .08); }
.folios-result-detail-name {
  color: #0d2f75;
  font-weight: 950;
  font-size: 1.18rem;
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .folios-result-row { flex-direction: column; align-items: stretch; }
  .folios-result-row .btn { width: 100%; }
  .folios-result-row .folios-detail-link { width: 100%; }
}

.folios-admin-access {
  width: min(760px, 100%);
  margin: 20px auto 0;
  border: 1px solid #cfe0ff;
  background: linear-gradient(135deg, #f9fbff, #eaf2ff);
  border-radius: 26px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(18,47,105,.08);
}
.folios-admin-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #123b8c;
  color: #fff;
  font-size: 1.4rem;
}
.folios-admin-access strong { display:block; color:#12337a; font-size:1.1rem; }
.folios-admin-access small { display:block; color:#5f6d84; font-weight:800; margin-top:2px; }
.folios-admin-access em {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f7c52b;
  color: #0e347e;
  font-style: normal;
  font-weight: 900;
}
.folios-admin-head {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  border:1px solid #d7e4fb;
  border-radius:22px;
  padding:18px;
  background:#fbfdff;
  margin-bottom:18px;
}
.folios-admin-main-actions,
.folios-actions,
.folios-list-toolbar {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
}
.folios-admin-main-actions { margin-bottom:16px; }
.folios-form-card,
.folios-list-card,
.folios-history-card {
  border:1px solid #d7e4fb;
  border-radius:22px;
  background:#f8fbff;
  padding:18px;
  margin-top:16px;
}
.folios-form-head,
.folios-history-head,
.folios-list-head {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  margin-bottom:14px;
}
.folios-form-head h3,
.folios-history-head h3 { margin:0; color:#12337a; }
.folios-close-mini {
  border:0;
  border-radius:999px;
  padding:8px 12px;
  background:#dfe5ef;
  color:#12337a;
  font-weight:900;
  cursor:pointer;
}
.folios-list-toolbar input { flex:1; min-width:260px; }
.folios-table-wrap {
  width:100%;
  overflow:auto;
  border-radius:16px;
  border:1px solid #dce8ff;
  background:#fff;
}
.folios-table {
  width:100%;
  border-collapse:collapse;
  min-width:980px;
}
.folios-table th {
  background:#143985;
  color:#fff;
  text-align:left;
  padding:12px;
  font-size:.86rem;
}
.folios-table td {
  padding:12px;
  border-bottom:1px solid #e7eefc;
  color:#0d214f;
  font-weight:700;
  vertical-align:middle;
}
.folios-badge {
  display:inline-block;
  border-radius:999px;
  background:#e8eef8;
  color:#12337a;
  padding:8px 10px;
  font-weight:900;
  font-size:.82rem;
}
.folios-pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin-top:14px;
  font-weight:900;
  color:#12337a;
}
.folios-pagination button {
  border:0;
  border-radius:999px;
  background:#143985;
  color:#fff;
  padding:9px 14px;
  font-weight:900;
  cursor:pointer;
}
.folios-pagination button:disabled {
  background:#cfd6e2;
  cursor:not-allowed;
}
@media (max-width: 760px) {
  .folios-search-row,
  .folios-result-grid,
  .folios-form-grid.two {
    grid-template-columns: 1fr;
  }
  .folios-admin-head,
  .folios-form-head,
  .folios-history-head,
  .folios-list-head {
    flex-direction: column;
  }
}


/* Ajuste Folios - panel administrativo más limpio y opción eliminar */
#folios.folios-admin-mode .folios-public-only {
  display: none !important;
}
#folios.folios-admin-mode .folios-shell {
  width: min(1280px, calc(100vw - 40px));
  margin-top: 18px;
}
#folios.folios-admin-mode .folios-admin-panel {
  display: block;
  max-width: 1280px;
  margin: 0 auto 36px;
  padding: 28px;
}
.folios-admin-main-actions {
  justify-content: center;
  gap: 14px;
}
.folios-admin-main-actions .btn,
.folios-actions .btn,
.folios-list-toolbar .btn,
.folios-search-row .btn {
  width: auto !important;
  min-width: 150px;
  margin-top: 0 !important;
  padding: 11px 18px;
  border-radius: 14px;
}
.folios-admin-main-actions .btn {
  min-width: 190px;
}
.folios-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.folios-row-actions .btn {
  width: auto !important;
  margin-top: 0 !important;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
}
.folios-admin-panel .folios-list-card,
.folios-admin-panel .folios-history-card,
.folios-admin-panel .folios-form-card {
  background: #fbfdff;
}
.folios-admin-head {
  align-items: center;
}
@media (max-width: 760px) {
  #folios.folios-admin-mode .folios-shell {
    width: min(100%, calc(100vw - 20px));
  }
  #folios.folios-admin-mode .folios-admin-panel {
    padding: 18px;
  }
  .folios-admin-main-actions .btn,
  .folios-actions .btn,
  .folios-list-toolbar .btn,
  .folios-search-row .btn {
    width: 100% !important;
  }
}


/* Ajuste Folios: historial oculto y botones administrativos organizados */
.folios-history-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.folios-admin-main-actions {
  justify-content: center;
  flex-wrap: wrap;
}

.folios-admin-main-actions .btn {
  min-width: 170px;
  max-width: 220px;
}


/* Ajuste puntual Folios: acceso administrativo profesional y sin botón nativo */
#foliosAdminAccessBtn.folios-admin-access {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  border: 1px solid #cfe0ff !important;
  background: linear-gradient(135deg, #f9fbff, #eaf2ff) !important;
  color: inherit;
  width: min(760px, 100%) !important;
  margin: 22px auto 0 !important;
  border-radius: 26px !important;
  padding: 16px 18px !important;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 35px rgba(18,47,105,.08);
}

#foliosAdminAccessBtn.folios-admin-access:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(18,47,105,.12);
}

#foliosAdminLogin.folios-admin-login {
  width: min(760px, 100%);
  margin: 22px auto 0;
}

@media (max-width: 760px) {
  #foliosAdminAccessBtn.folios-admin-access {
    grid-template-columns: auto 1fr;
  }
  #foliosAdminAccessBtn.folios-admin-access em {
    grid-column: 1 / -1;
    justify-self: end;
  }
}


/* Ajustes Folios base completa */
.folios-public-name-grid { margin-bottom: 14px; }
.folios-public-search-btn { width: 100%; margin-top: 4px; }
.folios-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 160px 170px auto;
  gap: 12px;
  align-items: center;
}
.folios-filter-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfe0ff;
  border-radius: 14px;
  padding: 0 12px;
  color: #12337a;
  font-weight: 800;
  background: #fff;
}
.folios-filter-toolbar select:focus {
  outline: none;
  border-color: #12337a;
  box-shadow: 0 0 0 3px rgba(18, 51, 122, .12);
}
@media (max-width: 900px) {
  .folios-filter-toolbar { grid-template-columns: 1fr; }
}


/* Ajuste visual consulta pública Folios - resultados compactos */
.folios-result-selection {
  padding: 16px 18px;
}
.folios-result-selection .folios-result-title {
  margin-bottom: 12px;
}
.folios-result-list {
  display: grid;
  gap: 8px;
}
.folios-public-person-row,
.folios-result-card .folios-public-person-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 9px 12px !important;
  border: 1px solid #dce8ff !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ffffff, #f8fbff) !important;
  box-shadow: 0 6px 14px rgba(16, 45, 112, .045) !important;
}
.folios-public-person-row:hover,
.folios-result-card .folios-public-person-row:hover {
  border-color: #bcd3ff !important;
  box-shadow: 0 10px 20px rgba(16, 45, 112, .075) !important;
  transform: translateY(-1px);
}
.folios-public-person-name,
.folios-public-person-row .folios-result-row-main {
  min-width: 0 !important;
}
.folios-public-person-name strong,
.folios-public-person-row .folios-result-row-main strong {
  display: block !important;
  color: #082e76 !important;
  font-size: .98rem !important;
  font-weight: 900 !important;
  letter-spacing: .01em !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.folios-detail-link-mini,
.folios-public-person-row .folios-detail-link {
  width: auto !important;
  min-width: 0 !important;
  max-width: 120px !important;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 1px solid #c6d6f2 !important;
  background: #eef4ff !important;
  color: #12337a !important;
  font-size: .78rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  cursor: pointer !important;
}
.folios-detail-link-mini:hover,
.folios-public-person-row .folios-detail-link:hover {
  background: #12337a !important;
  border-color: #12337a !important;
  color: #ffffff !important;
}
@media (max-width: 760px) {
  .folios-public-person-row,
  .folios-result-card .folios-public-person-row {
    grid-template-columns: 1fr auto !important;
    gap: 8px !important;
    padding: 9px 10px !important;
  }
  .folios-public-person-name strong,
  .folios-public-person-row .folios-result-row-main strong {
    white-space: normal !important;
  }
  .folios-detail-link-mini,
  .folios-public-person-row .folios-detail-link {
    width: auto !important;
    padding: 6px 10px !important;
  }
}
