/* ═══════════════════════════════════════════════════════
   COASMEDAS Simulador de Crédito — Estilos
   Prefijo: .coasmedas-
   ═══════════════════════════════════════════════════════ */

:root {
  --coas-primary:        #005066;
  --coas-primary-dark:   #002c38;
  --coas-primary-light:  #ECF8FC;
  --coas-accent:         #3CB4E5;
  --coas-accent-dark:    #2C93C0;
  --coas-text:           #272727;
  --coas-text-muted:     #555555;
  --coas-border:         #EAEAEA;
  --coas-input-border:   rgba(0, 0, 0, .13);
  --coas-error-bg:       #FEE2E2;
  --coas-error-border:   #e53e3e;
  --coas-error-text:     #B91C1C;
  --coas-warn-bg:        #fff8e1;
  --coas-warn-border:    #f59e0b;
  --coas-warn-text:      #92400e;
  --coas-row-even:       #ffffff;
  --coas-row-odd:        #F5F6F7;
  --coas-radius:         10px;
  --coas-radius-lg:      20px;
  --coas-shadow:         0 16px 24px rgba(24, 24, 27, .10), 0 0 1px rgba(24, 24, 27, .30);
  --coas-serif:          'Elizeth Trial', Georgia, 'Times New Roman', serif;
  --coas-sans:           'Cabin', system-ui, -apple-system, sans-serif;
}

/* ── No-scroll when modal open ── */
body.coasmedas-no-scroll {
  overflow: hidden;
}

/* ── Trigger button ── */
.coasmedas-trigger-btn {
  display: inline-block;
  background-color: var(--coas-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--coas-radius);
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.coasmedas-trigger-btn:hover,
.coasmedas-trigger-btn:focus {
  background-color: var(--coas-primary-dark);
  outline: 3px solid var(--coas-accent);
  outline-offset: 2px;
}

/* ── Modal overlay ── */
.coasmedas-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
  box-sizing: border-box;
}

/* ── Modal box ── */
.coasmedas-modal-box {
  position: relative;
  background: #ffffff;
  border-radius: var(--coas-radius-lg);
  box-shadow: var(--coas-shadow);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 28px 28px;
  box-sizing: border-box;
  font-family: var(--coas-sans);
  color: var(--coas-text);
}

/* ── Close button (vive sobre la barra de título) ── */
.coasmedas-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, .15);
  border: none;
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}
.coasmedas-close:hover,
.coasmedas-close:focus {
  background: rgba(255, 255, 255, .3);
  outline: none;
}

/* ── Title: barra a todo lo ancho, mismo look que el header de "Plan de Pagos" de vivienda ── */
.coasmedas-title {
  font-family: var(--coas-sans) !important;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff !important;
  background: var(--coas-primary);
  margin: 0 0 24px;
  padding: 22px 68px 22px 28px;
  margin-left: -28px;
  margin-right: -28px;
  border-top-left-radius: var(--coas-radius-lg);
  border-top-right-radius: var(--coas-radius-lg);
}

/* ── Error box ── */
.coasmedas-error-box {
  background: var(--coas-error-bg);
  border: 1px solid var(--coas-error-border);
  color: var(--coas-error-text);
  border-radius: var(--coas-radius);
  padding: 10px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* ── Warning ── */
.coasmedas-warn {
  background: var(--coas-warn-bg);
  border: 1px solid var(--coas-warn-border);
  color: var(--coas-warn-text);
  border-radius: var(--coas-radius);
  padding: 10px 16px;
  font-size: 0.875rem;
  margin: 12px 0;
}

/* ── Form grid ── */
.coasmedas-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 20px;
}

/* ── Field ── */
.coasmedas-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.coasmedas-field label {
  font-family: var(--coas-serif);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--coas-primary);
}
.coasmedas-field input,
.coasmedas-field select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--coas-input-border);
  border-radius: 8px;
  font-family: var(--coas-sans);
  font-size: 0.95rem;
  color: var(--coas-text);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  width: 100%;
}
.coasmedas-field input:focus,
.coasmedas-field select:focus {
  outline: none;
  border-color: var(--coas-accent);
  box-shadow: 0 0 0 3px rgba(60, 180, 229, .18);
}
.coasmedas-hint {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--coas-text-muted);
  margin-left: 4px;
}

/* ── Actions ── */
.coasmedas-form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Primary button ── */
.coasmedas-btn-primary {
  background-color: var(--coas-accent);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  height: 48px;
  padding: 0 28px;
  font-family: var(--coas-sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
}
.coasmedas-btn-primary:hover,
.coasmedas-btn-primary:focus {
  filter: brightness(.95);
  outline: none;
}

/* ── Secondary button ── */
.coasmedas-btn-secondary {
  background-color: transparent;
  color: var(--coas-primary);
  border: 1px solid var(--coas-input-border);
  border-radius: 16px;
  height: 48px;
  padding: 0 24px;
  font-family: var(--coas-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.coasmedas-btn-secondary:hover,
.coasmedas-btn-secondary:focus {
  background-color: var(--coas-primary-light);
  border-color: var(--coas-accent);
  outline: none;
}

/* ── Summary cards ── */
.coasmedas-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.coasmedas-card {
  background: var(--coas-primary-light);
  border: 1px solid var(--coas-border);
  border-radius: var(--coas-radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coasmedas-card--highlight {
  background: var(--coas-primary);
  border-color: var(--coas-primary-dark);
}
.coasmedas-card--highlight .coasmedas-card-label,
.coasmedas-card--highlight .coasmedas-card-value {
  color: #ffffff;
}
.coasmedas-card-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--coas-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.coasmedas-card-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--coas-primary);
}

/* ── Amortization table wrapper (scroll) ── */
.coasmedas-table-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
}

/* ── Table ── */
.coasmedas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.845rem;
  min-width: 680px;
}
.coasmedas-table thead tr {
  background: var(--coas-primary);
  color: #ffffff;
}
.coasmedas-table th {
  padding: 10px 12px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.coasmedas-table th:first-child,
.coasmedas-table td:first-child {
  text-align: center;
}
.coasmedas-table th:nth-child(2),
.coasmedas-table td:nth-child(2) {
  text-align: center;
}
.coasmedas-table td {
  padding: 8px 12px;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--coas-border);
}
.coasmedas-row-even { background: var(--coas-row-even); }
.coasmedas-row-odd  { background: var(--coas-row-odd); }
.coasmedas-col-total {
  font-weight: 700;
  color: var(--coas-primary);
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .coasmedas-modal-box {
    padding: 20px 14px 20px;
  }
  .coasmedas-title {
    font-size: 1.15rem;
  }
  .coasmedas-cards {
    grid-template-columns: 1fr 1fr;
  }
  .coasmedas-btn-primary,
  .coasmedas-btn-secondary {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 380px) {
  .coasmedas-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   COASMEDAS Simulador de Auxilios Solidarios
   Prefijo: .coasmedas-aux-
   ═══════════════════════════════════════════════════════ */

/* ── Grupos / secciones colapsables ── */
.coasmedas-aux-group {
  border: 1px solid var(--coas-border);
  border-radius: var(--coas-radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}
.coasmedas-aux-group-header {
  background: var(--coas-primary-light);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coas-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.coasmedas-aux-group-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ── Fila de beneficio ── */
.coasmedas-aux-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.coasmedas-aux-row-label {
  flex: 1 1 200px;
  font-size: 0.9rem;
  color: var(--coas-text);
  padding-top: 6px;
}
.coasmedas-aux-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Toggle SI/NO (switch: track azul, opción seleccionada en BLANCO) ── */
.coasmedas-toggle {
  display: inline-flex;
  border-radius: 12px;
  border: none !important;
  background: #5AA0C4 !important;
  padding: 4px;
  gap: 0;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}
.coasmedas-toggle span {
  padding: 6px 20px;
  border-radius: 9px;
  background: transparent;
  color: #eaf6fb;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.coasmedas-toggle[data-val="si"] span:first-child {
  background: #fff;
  color: #0a5a72;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.coasmedas-toggle[data-val="no"] span:last-child {
  background: #fff;
  color: #0a5a72;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}

/* ── Extra input after toggle ── */
.coasmedas-aux-extra {
  display: none;
  align-items: center;
  gap: 6px;
  animation: coasFadeIn 0.15s ease;
}
.coasmedas-aux-extra.visible {
  display: flex;
}
.coasmedas-aux-extra input[type="number"],
.coasmedas-aux-extra select {
  width: 90px;
  padding: 5px 8px;
  border: 1px solid var(--coas-border);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--coas-text);
}
.coasmedas-aux-extra select {
  width: auto;
  min-width: 160px;
}
.coasmedas-aux-extra label {
  font-size: 0.8rem;
  color: var(--coas-text-muted);
  white-space: nowrap;
}

/* ── Invalidez radio-cards ── */
.coasmedas-aux-radio-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.coasmedas-aux-radio-card {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 2px solid var(--coas-border);
  border-radius: var(--coas-radius);
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s;
}
.coasmedas-aux-radio-card input[type="radio"] {
  accent-color: var(--coas-primary);
}
.coasmedas-aux-radio-card:has(input:checked) {
  border-color: var(--coas-primary);
  background: var(--coas-primary-light);
}
.coasmedas-aux-radio-card .coasmedas-aux-radio-monto {
  font-weight: 700;
  color: var(--coas-primary);
  font-size: 0.8rem;
  display: block;
}

/* ── Hijos dinámicos ── */
.coasmedas-aux-hijos {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.coasmedas-aux-hijo-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.coasmedas-aux-hijo-row input[type="number"] {
  width: 80px;
  padding: 5px 8px;
  border: 1px solid var(--coas-border);
  border-radius: 6px;
  font-size: 0.875rem;
}
.coasmedas-aux-hijo-row label {
  font-size: 0.85rem;
  color: var(--coas-text-muted);
}
.coasmedas-aux-hijo-remove {
  background: none;
  border: none;
  color: var(--coas-error-text);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
.coasmedas-aux-add-hijo {
  background: none;
  border: 1px dashed var(--coas-primary);
  color: var(--coas-primary);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  width: fit-content;
  transition: background 0.15s;
}
.coasmedas-aux-add-hijo:hover {
  background: var(--coas-primary-light);
}

/* ── Subtotal en tiempo real ── */
.coasmedas-aux-subtotal-bar {
  background: var(--coas-primary-light);
  border: 1px solid var(--coas-border);
  border-radius: var(--coas-radius);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 0.9rem;
}
.coasmedas-aux-subtotal-bar strong {
  font-size: 1rem;
  color: var(--coas-primary);
}

/* ── Card total destacado ── */
.coasmedas-aux-total-card {
  background: var(--coas-primary-dark);
  color: #ffffff;
  border-radius: var(--coas-radius-lg);
  padding: 24px;
  text-align: center;
  margin: 20px 0 16px;
}
.coasmedas-aux-total-card .coasmedas-aux-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}
.coasmedas-aux-total-card .coasmedas-aux-total-valor {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ── Resultado: cards de beneficios activos ── */
.coasmedas-aux-result-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.coasmedas-aux-result-card {
  background: var(--coas-primary-light);
  border: 1px solid var(--coas-border);
  border-radius: var(--coas-radius);
  padding: 12px 14px;
}
.coasmedas-aux-result-card .nombre {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--coas-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.coasmedas-aux-result-card .condicion {
  font-size: 0.78rem;
  color: var(--coas-text-muted);
  margin-bottom: 6px;
}
.coasmedas-aux-result-card .monto {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--coas-primary);
}

/* ── Tabla educativo ── */
.coasmedas-aux-edu-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
  margin-bottom: 16px;
}
.coasmedas-aux-edu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.845rem;
  min-width: 520px;
}
.coasmedas-aux-edu-table thead tr {
  background: var(--coas-primary);
  color: #fff;
}
.coasmedas-aux-edu-table th {
  padding: 9px 12px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.coasmedas-aux-edu-table th:first-child,
.coasmedas-aux-edu-table td:first-child {
  text-align: center;
}
.coasmedas-aux-edu-table td {
  padding: 7px 12px;
  text-align: right;
  border-bottom: 1px solid var(--coas-border);
}
.coasmedas-aux-edu-table tr:nth-child(even) td { background: var(--coas-row-odd); }
.coasmedas-aux-edu-table tr:nth-child(odd)  td { background: var(--coas-row-even); }
.coasmedas-aux-edu-table tfoot td {
  font-weight: 700;
  background: var(--coas-primary-light);
  padding: 8px 12px;
  text-align: right;
}

/* ── Tabla desglose total ── */
.coasmedas-aux-desglose-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
  margin-bottom: 16px;
}
.coasmedas-aux-desglose-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.coasmedas-aux-desglose-table th {
  background: var(--coas-primary);
  color: #fff;
  padding: 9px 16px;
  text-align: left;
}
.coasmedas-aux-desglose-table th:last-child,
.coasmedas-aux-desglose-table td:last-child {
  text-align: right;
}
.coasmedas-aux-desglose-table td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--coas-border);
}
.coasmedas-aux-desglose-table tr:nth-child(even) td { background: var(--coas-row-odd); }
.coasmedas-aux-desglose-table tr:nth-child(odd)  td { background: var(--coas-row-even); }
.coasmedas-aux-desglose-table tfoot td {
  font-weight: 700;
  background: var(--coas-primary-light);
  padding: 9px 16px;
}

/* ── Nota legal ── */
.coasmedas-aux-nota-legal {
  font-size: 0.78rem;
  color: var(--coas-text-muted);
  line-height: 1.5;
  border-top: 1px solid var(--coas-border);
  margin-top: 16px;
  padding-top: 12px;
}

/* ── Calamidad monto preview ── */
.coasmedas-aux-calamidad-preview {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--coas-primary);
  white-space: nowrap;
}

/* ── Animación ── */
@keyframes coasFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive auxilios ── */
@media (max-width: 600px) {
  .coasmedas-aux-row {
    flex-direction: column;
    gap: 6px;
  }
  /* En el wizard las filas se quedan como fila (label izq / toggle der);
     si van en columna, el space-between deja un hueco enorme. */
  .csa-rows .coasmedas-aux-row {
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 4px;
  }
  .csa-rows .coasmedas-aux-row-label { flex: 1 1 55%; padding-top: 0; }
  .coasmedas-aux-radio-group {
    flex-direction: column;
  }
  .coasmedas-aux-total-card .coasmedas-aux-total-valor {
    font-size: 1.5rem;
  }
  .coasmedas-aux-result-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  .coasmedas-aux-result-cards {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════
   COASMEDAS Simulador de Medicinas Prepagadas
   Prefijo: .coasmedas-mp-
   ═══════════════════════════════════════════════════════ */

/* ── Config row (paso 1) ── */
.coasmedas-mp-config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 16px;
  margin-bottom: 20px;
}

/* ── Alerta suave Colmedica ── */
.coasmedas-mp-info-alert {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
  border-radius: var(--coas-radius);
  padding: 10px 14px;
  font-size: 0.875rem;
  margin-bottom: 14px;
  display: none;
}
.coasmedas-mp-info-alert.visible { display: block; }

/* ── Nota de plan especial ── */
.coasmedas-mp-plan-nota {
  font-size: 0.78rem;
  color: #7c3aed;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}
.coasmedas-mp-plan-nota.visible { display: block; }

/* ── Tabla beneficiarios (paso 2) ── */
.coasmedas-mp-bene-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
  margin-bottom: 12px;
}
.coasmedas-mp-bene-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 420px;
}
.coasmedas-mp-bene-table thead tr {
  background: var(--coas-primary);
  color: #fff;
}
.coasmedas-mp-bene-table th {
  padding: 9px 10px;
  text-align: center;
  font-weight: 600;
  white-space: nowrap;
}
.coasmedas-mp-bene-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--coas-border);
  text-align: center;
  vertical-align: middle;
}
.coasmedas-mp-bene-table input[type="number"],
.coasmedas-mp-bene-table select {
  padding: 5px 7px;
  border: 1px solid var(--coas-border);
  border-radius: 5px;
  font-size: 0.85rem;
  width: 100%;
  box-sizing: border-box;
}
.coasmedas-mp-bene-table input[type="number"] { width: 70px; }
.coasmedas-mp-bene-table select { min-width: 130px; }
.coasmedas-mp-bene-remove {
  background: none;
  border: none;
  color: var(--coas-error-text);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 5px;
  line-height: 1;
}
.coasmedas-mp-tarifa-preview {
  font-size: 0.75rem;
  color: var(--coas-primary);
  font-weight: 600;
  white-space: nowrap;
}
.coasmedas-mp-add-bene {
  background: none;
  border: 1px dashed var(--coas-primary);
  color: var(--coas-primary);
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.15s;
}
.coasmedas-mp-add-bene:hover { background: var(--coas-primary-light); }

/* ── Tabla de resultados por beneficiario ── */
.coasmedas-mp-result-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
  margin-bottom: 20px;
}
.coasmedas-mp-result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.835rem;
  min-width: 680px;
}
.coasmedas-mp-result-table thead tr {
  background: var(--coas-primary);
  color: #fff;
}
.coasmedas-mp-result-table th {
  padding: 9px 10px;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.coasmedas-mp-result-table th:first-child,
.coasmedas-mp-result-table td:first-child,
.coasmedas-mp-result-table th:nth-child(2),
.coasmedas-mp-result-table td:nth-child(2) {
  text-align: center;
}
.coasmedas-mp-result-table td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--coas-border);
  white-space: nowrap;
}
.coasmedas-mp-result-table tr:nth-child(even) td { background: var(--coas-row-odd); }
.coasmedas-mp-result-table tr:nth-child(odd)  td { background: var(--coas-row-even); }
.coasmedas-mp-row-warn td { background: #fff3cd !important; }
.coasmedas-mp-col-ahorro { font-weight: 700; color: #16a34a; }
.coasmedas-mp-col-pct { font-size: 0.78rem; color: var(--coas-text-muted); }

/* ── Cards de ahorro ── */
.coasmedas-mp-saving-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.coasmedas-mp-saving-card {
  background: var(--coas-primary-dark);
  color: #fff;
  border-radius: var(--coas-radius-lg);
  padding: 18px 14px;
  text-align: center;
}
.coasmedas-mp-saving-card .mp-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  margin-bottom: 6px;
}
.coasmedas-mp-saving-card .mp-card-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.coasmedas-mp-saving-card .mp-card-note {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 4px;
  line-height: 1.3;
}

/* ── Cuadro de totales ── */
.coasmedas-mp-totales-wrap {
  overflow-x: auto;
  border-radius: var(--coas-radius);
  border: 1px solid var(--coas-border);
  margin-bottom: 20px;
}
.coasmedas-mp-totales-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.coasmedas-mp-totales-table th {
  background: var(--coas-primary);
  color: #fff;
  padding: 9px 16px;
  text-align: left;
}
.coasmedas-mp-totales-table th:last-child,
.coasmedas-mp-totales-table td:last-child { text-align: right; }
.coasmedas-mp-totales-table td {
  padding: 8px 16px;
  border-bottom: 1px solid var(--coas-border);
}
.coasmedas-mp-totales-table tr:nth-child(even) td { background: var(--coas-row-odd); }
.coasmedas-mp-totales-table tr:nth-child(odd)  td { background: var(--coas-row-even); }
.coasmedas-mp-totales-table tfoot td {
  font-weight: 700;
  background: var(--coas-primary-light);
  padding: 9px 16px;
}

/* ── Sección clínicas ── */
.coasmedas-mp-clinicas {
  background: var(--coas-primary-light);
  border: 1px solid var(--coas-border);
  border-radius: var(--coas-radius);
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 0.875rem;
}
.coasmedas-mp-clinicas-title {
  font-weight: 700;
  color: var(--coas-primary);
  margin-bottom: 8px;
  font-size: 0.9rem;
}
.coasmedas-mp-clinicas ul {
  margin: 0;
  padding-left: 18px;
  color: var(--coas-text);
  line-height: 1.7;
}

/* ── Responsive ── */
@media (max-width: 680px) {
  .coasmedas-mp-saving-cards {
    grid-template-columns: 1fr;
  }
  .coasmedas-mp-config-grid {
    grid-template-columns: 1fr;
  }
  .coasmedas-mp-saving-card .mp-card-value {
    font-size: 1.15rem;
  }
}

/* ═══════════════════════════════════════════════════════
   COASMEDAS Menú Flotante Radial
   Prefijo: .coas-fab-
   ═══════════════════════════════════════════════════════ */

/* ── Contenedor fijo ── */
.coas-fab-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99998;
  /* Mismo ancho/alto que el botón central; satélites se posicionan en absolute */
  width: 60px;
  height: 60px;
}

/* ── Botón central ── */
.coas-fab-central {
  position: relative;
  z-index: 2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coas-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 91, 170, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.2s;
}
.coas-fab-central:hover,
.coas-fab-central:focus-visible {
  background: var(--coas-primary-dark);
  transform: scale(1.06);
  outline: none;
}

/* ── Iconos + / × ── */
.coas-fab-icon-open,
.coas-fab-icon-close {
  position: absolute;
  font-size: 1.85rem;
  font-weight: 300;
  line-height: 1;
  user-select: none;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.coas-fab-icon-open  { opacity: 1; transform: rotate(0deg); }
.coas-fab-icon-close { opacity: 0; transform: rotate(-45deg); }

.coas-fab-container.coas-fab-abierto .coas-fab-icon-open  { opacity: 0; transform: rotate(45deg); }
.coas-fab-container.coas-fab-abierto .coas-fab-icon-close { opacity: 1; transform: rotate(0deg); }

/* ── Satélites (estado colapsado) ── */
.coas-fab-sat {
  position: absolute;
  z-index: 1;
  /* Anclados al borde inferior-izquierdo del contenedor (sobre el central) */
  bottom: 10px;
  left: 0;
  height: 40px;
  padding: 0 18px;
  border-radius: 24px;
  white-space: nowrap;
  background: var(--fab-color, var(--coas-primary));
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Colapsados: invisible y apilados sobre el central */
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition:
    transform  0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity    0.2s  ease;
  transition-delay: 0ms;
}
.coas-fab-sat:hover        { filter: brightness(1.12); }
.coas-fab-sat:focus-visible { outline: 3px solid var(--coas-accent); outline-offset: 2px; }

/* ── Satélites (estado abierto): translate via CSS custom props ── */
.coas-fab-container.coas-fab-abierto .coas-fab-sat {
  opacity: 1;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1);
  pointer-events: auto;
  transition-delay: var(--delay, 0ms);
}

/* ── Pulso inicial: 3 ciclos de 1 s ── */
@keyframes coas-fab-pulso {
  0%   { box-shadow: 0 4px 14px rgba(0, 91, 170, 0.45), 0 0 0 0    rgba(0, 91, 170, 0.35); }
  70%  { box-shadow: 0 4px 14px rgba(0, 91, 170, 0.45), 0 0 0 16px rgba(0, 91, 170, 0);    }
  100% { box-shadow: 0 4px 14px rgba(0, 91, 170, 0.45), 0 0 0 0    rgba(0, 91, 170, 0);    }
}
.coas-fab-central.coas-fab-pulsando {
  animation: coas-fab-pulso 1s ease-out 3;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .coas-fab-container { bottom: 16px; left: 16px; }
}

/* ═══════════════════════════════════════════════════════
   Páginas dedicadas de simulador (sin modal) — [simulador_credito_pagina]/
   [simulador_auxilios_pagina]/[simulador_medicina_pagina]. Reusa el MISMO
   HTML/JS del modal (buildModal), solo cambia overlay->inline y siempre visible.
   ═══════════════════════════════════════════════════════ */
.cs-inline-host { max-width: 1400px; margin: 0 auto; padding: 32px 20px 72px; }
.coasmedas-modal-overlay.coasmedas-inline {
  position: static;
  inset: auto;
  background: none;
  padding: 0;
  display: block !important;
  z-index: auto;
}
.coasmedas-modal-overlay.coasmedas-inline .coasmedas-modal-box {
  max-width: none;
  max-height: none;
  overflow: visible;
  margin: 0 auto;
}
.coasmedas-modal-overlay.coasmedas-inline .coasmedas-close { display: none; }

/* Breadcrumb + título reusan el mismo lenguaje visual de csh-wrap */
.cs-inline-bread { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #272727; margin-bottom: 16px; font-family: var(--coas-sans); }
.cs-inline-bread a { color: #272727 !important; text-decoration: none; }
.cs-inline-bread a:hover { color: var(--coas-accent) !important; }
.cs-inline-bread__sep { color: #6B7280; }
.cs-inline-bread__actual { color: #002c38; font-weight: 600; }

/* El tema aplica `button,[type=button]{border:1px solid #CC3366}` (misma
   especificidad que nuestras clases, gana por orden). Anular dentro del shell
   del simulador para quitar los bordes rosados de los botones. */
.cs-inline-host button { border: none !important; }
.cs-inline-host .coasmedas-btn-secondary { border: 1px solid var(--coas-input-border) !important; }
/* Espacio entre simuladores apilados (crédito + auxilios/medicina) */
/* El banner ocupa todo el ancho (.cs-inline-host = 1400), pero el simulador
   queda al mismo ancho que el de Crédito (csv-wrap = 1240), centrado. */
#coasmedas-inline-host { max-width: 1240px; margin: 0 auto; }
#coasmedas-inline-host > * + * { margin-top: 32px; }

/* Select de simulador (para cambiar de uno a otro sin volver al hub) */
.cs-inline-switch { max-width: 900px; margin: 0 auto 24px; }
.cs-inline-switch select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--coas-input-border);
  border-radius: 12px;
  font-family: var(--coas-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--coas-primary);
  background: #fff;
}
.cs-inline-switch select:focus {
  outline: none;
  border-color: var(--coas-accent);
  box-shadow: 0 0 0 3px rgba(60, 180, 229, .18);
}

/* ══════════════════════════════════════════════════════════════════════
   REDISEÑO "DIVERTIDO" — simuladores inline de Crédito/Auxilios/Medicina
   (páginas /simulador-de-auxilios/ y /simulador-de-medicina/). Capa visual
   sobre la estructura existente: headers con degradado + ícono, cards
   redondeadas, labels Cabin, inputs suaves, botones con lift, tablas y
   grupos con personalidad. No afecta el wizard csv-* de /simulador-de-credito/.
   ══════════════════════════════════════════════════════════════════════ */
.cs-inline-host { max-width: 1400px; }

/* ── Card ── */
.coasmedas-inline .coasmedas-modal-box {
  border-radius: 26px !important;
  box-shadow: 0 24px 60px -24px rgba(0,80,102,.40), 0 4px 14px rgba(0,80,102,.07) !important;
  border: 1px solid #E8F1F4 !important;
  padding-top: 0 !important;
}

/* ── Header: degradado + burbuja de brillo + ícono ── */
.coasmedas-inline .coasmedas-title {
  position: relative; overflow: hidden;
  background: linear-gradient(115deg, #003a4d 0%, #005066 40%, #0a86ad 100%) !important;
  padding: 34px 32px 34px 96px !important;
  font-size: 1.7rem !important; font-weight: 700 !important; letter-spacing: -.01em;
  border-top-left-radius: 26px !important; border-top-right-radius: 26px !important;
}
.coasmedas-inline .coasmedas-title::after {
  content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(60,180,229,.55), rgba(60,180,229,0) 70%);
  pointer-events: none;
}
.coasmedas-inline .coasmedas-title::before {
  content: ""; position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
  background-repeat: no-repeat; background-position: center; background-size: 28px;
}
#coasmedas-modal-title.coasmedas-title::before { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E"); }
#coasmedas-aux-title.coasmedas-title::before { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.84 4.61a5.5 5.5 0 0 0-7.78 0L12 5.67l-1.06-1.06a5.5 5.5 0 1 0-7.78 7.78L12 21.23l8.84-8.84a5.5 5.5 0 0 0 0-7.78z'/%3E%3C/svg%3E"); }
#coasmedas-mp-title.coasmedas-title::before { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E"); }

/* ── Labels a Cabin ── */
.coasmedas-inline label { font-family: 'Cabin', sans-serif !important; color: #14566a !important; font-weight: 600 !important; }

/* ── Inputs/selects redondeados ── */
.coasmedas-inline input, .coasmedas-inline select {
  border-radius: 12px !important; border: 1.5px solid #E1E7EA !important;
  font-family: 'Cabin', sans-serif !important; transition: border-color .15s, box-shadow .15s !important;
}
.coasmedas-inline input:focus, .coasmedas-inline select:focus {
  border-color: #3CB4E5 !important; box-shadow: 0 0 0 4px rgba(60,180,229,.15) !important; outline: none !important;
}

/* ── Botones con lift ── */
.coasmedas-inline .coasmedas-btn-primary,
.coasmedas-inline .coasmedas-mp-add-bene,
.coasmedas-inline #coasmedas-aux-calc-btn {
  background: linear-gradient(120deg, #3CB4E5, #0a86ad) !important; color: #fff !important;
  border-radius: 14px !important; padding: 0 30px !important; height: 52px !important;
  font-weight: 700 !important; box-shadow: 0 8px 18px -6px rgba(10,134,173,.55) !important;
  transition: transform .12s, box-shadow .12s !important;
}
.coasmedas-inline .coasmedas-btn-primary:hover,
.coasmedas-inline .coasmedas-mp-add-bene:hover {
  transform: translateY(-3px) !important; box-shadow: 0 14px 26px -8px rgba(10,134,173,.6) !important;
}
.coasmedas-inline .coasmedas-mp-add-bene { background: linear-gradient(120deg, #005066, #0a7fa3) !important; }

/* ── Auxilios: grupos con acento + hover ── */
.coasmedas-aux-group {
  border-radius: 18px !important; border: 1.5px solid #EBF1F3 !important; overflow: hidden !important;
  box-shadow: 0 4px 14px -8px rgba(0,80,102,.18) !important;
  transition: box-shadow .15s, transform .15s !important; margin-bottom: 16px !important;
}
.coasmedas-aux-group:hover { box-shadow: 0 10px 24px -10px rgba(0,80,102,.28) !important; }
.coasmedas-aux-group-header { background: #F3FAFC !important; border-left: 5px solid #3CB4E5 !important; }
.coasmedas-aux-subtotal-bar { border-radius: 14px !important; background: linear-gradient(120deg, #ECF8FC, #f6fdff) !important; }
.coasmedas-aux-total-card { border-radius: 20px !important; background: linear-gradient(120deg, #003a4d, #0a86ad) !important; box-shadow: 0 16px 34px -14px rgba(0,80,102,.55) !important; }

/* ── Medicina: tabla de beneficiarios ── */
.coasmedas-inline table {
  border-radius: 16px !important; overflow: hidden !important;
  box-shadow: 0 6px 18px -10px rgba(0,80,102,.25) !important;
  border-collapse: separate !important; border-spacing: 0 !important;
}
.coasmedas-inline thead tr { background: linear-gradient(120deg, #003a4d, #0a7fa3) !important; }
.coasmedas-inline thead th { color: #fff !important; font-family: 'Cabin', sans-serif !important; }
.coasmedas-inline .coasmedas-mp-bene-remove { background: #fff0f3 !important; color: #e05a7a !important; border-radius: 10px !important; font-weight: 700 !important; }

/* ══════════════════════════════════════════════════════════════════════
   WIZARD DE AUXILIOS — 3 pasos (Salud / Vida y familia / Educativo+Calamidad)
   con pill "Estimado actual", switches y modal de resultados. (auxilios.js)
   ══════════════════════════════════════════════════════════════════════ */
.csa-step[hidden] { display: none; }
.csa-step-top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 20px;
}
.csa-section-pill {
  display: inline-flex; align-items: center; gap: 12px; box-sizing: border-box;
  background: #FBFAEA; border-radius: 14px; padding: 14px 22px;
  font-family: 'Cabin', sans-serif; flex: 1 1 auto; min-width: 260px; max-width: 100%;
}
.csa-section-pill--block { display: flex; margin: 26px 0 18px; }
.csa-section-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: #3CB4E5; flex: 0 0 auto;
}
.csa-section-ico svg { width: 24px; height: 24px; }
.csa-section-txt { font-size: 1.25rem; font-weight: 700; color: #14566a; line-height: 1.2; }
.csa-section-txt small { font-size: .82rem; font-weight: 500; color: #6a7b82; }
.csa-estimado {
  display: inline-flex; align-items: center; gap: 10px; box-sizing: border-box;
  background: linear-gradient(120deg, #3CB4E5, #0a86ad); color: #fff;
  border-radius: 14px; padding: 14px 24px; font-family: 'Cabin', sans-serif;
  box-shadow: 0 10px 22px -10px rgba(10,134,173,.6); flex: 0 0 auto; max-width: 100%;
}
.csa-estimado-ico { display: inline-flex; }
.csa-estimado-ico svg { width: 22px; height: 22px; }
.csa-estimado-lbl { font-size: .95rem; font-weight: 600; opacity: .95; }
.csa-estimado .coasmedas-aux-live-total { font-size: 1.35rem; font-weight: 800; }

/* Filas dentro del paso: divisor sutil */
.csa-rows .coasmedas-aux-row {
  padding: 16px 4px; border-bottom: 1px solid #EEF2F4;
  align-items: center; justify-content: space-between;
}
.csa-rows .coasmedas-aux-row:last-child { border-bottom: none; }

/* Navegación de pasos */
.csa-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.csa-nav--end { justify-content: flex-end; }
/* Botones (Atrás y Simular comparten el mismo diseño). inline-flex forzado
   para que la flecha quede en línea con el texto (el tema fuerza display). */
.csa-btn, .csa-btn-ghost {
  display: inline-flex !important; align-items: center !important; gap: 10px !important;
  flex-wrap: nowrap !important; white-space: nowrap !important; line-height: 1 !important;
  cursor: pointer; border: none !important; border-radius: 14px; height: 52px; padding: 0 30px;
  font-family: 'Cabin', sans-serif; font-size: 1rem; font-weight: 700;
  background: linear-gradient(120deg, #3CB4E5, #0a86ad); color: #fff;
  box-shadow: 0 8px 18px -6px rgba(10,134,173,.55);
  transition: transform .12s, box-shadow .12s;
}
.csa-btn:hover, .csa-btn-ghost:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -8px rgba(10,134,173,.6); }
.csa-btn svg, .csa-btn-ghost svg {
  display: inline-block !important; flex: 0 0 auto !important; vertical-align: middle !important;
  width: 20px !important; height: 20px !important;
}

/* Modal de resultados (overlay fijo) */
.csa-resmodal {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,44,56,.55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding: 40px 24px;
  overflow-y: auto;
}
.csa-resmodal[hidden] { display: none; }
.csa-resmodal-box {
  background: #fff; border-radius: 22px; width: 100%; max-width: 640px;
  margin: auto; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,44,56,.6); font-family: 'Cabin', sans-serif;
}
.csa-resmodal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  background: linear-gradient(115deg, #003a4d, #0a86ad); color: #fff; padding: 22px 26px;
}
/* El tema pinta h3 en serif oscuro y pone borde rosado a los <button>:
   forzar título blanco/Cabin y anular bordes dentro del modal. */
.csa-resmodal-head h3 { margin: 0 !important; font-size: 1.25rem !important; font-weight: 700 !important; line-height: 1.25 !important; color: #fff !important; font-family: 'Cabin', sans-serif !important; }
.csa-resmodal-head p { margin: 4px 0 0; font-size: .85rem; opacity: .9; color: #fff !important; font-family: 'Cabin', sans-serif !important; }
.csa-resmodal button { border: none !important; }
.csa-resmodal-close {
  background-color: transparent !important;
  background-image: url('../img/modal-close.png') !important;
  background-repeat: no-repeat !important; background-position: center !important; background-size: 20px !important;
  color: transparent !important; font-size: 0 !important; cursor: pointer;
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto;
}
.csa-resmodal-close:hover { background-color: rgba(255,255,255,.18) !important; }
.csa-resmodal-body { padding: 24px 26px; }
.csa-resmodal-foot { padding: 16px 26px; border-top: 1px solid #EEF2F4; display: flex; justify-content: flex-end; }
/* Botón "Cerrar" (Figma: #0AAFF0, radio 8px, alto 40px) */
.csa-resmodal-foot .coasmedas-btn-secondary {
  background: #0AAFF0 !important; color: #fff !important; border: none !important;
  border-radius: 8px !important; height: 40px !important; padding: 0 22px !important; font-weight: 700 !important;
}

@media (max-width: 640px) {
  .csa-estimado { width: 100%; justify-content: center; }
  .csa-section-pill { min-width: 0; }
  .csa-nav { flex-direction: column-reverse; }
  .csa-btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════════════
   BANNER de simuladores (hero teal con "Simulador" + franjas diagonales).
   Reusable en las páginas dedicadas y en el hub /simuladores/.
   ══════════════════════════════════════════════════════════════════════ */
.csb-banner {
  position: relative; overflow: hidden; box-sizing: border-box;
  background: #005066;
  border-radius: 22px; padding: 44px 52px 56px; margin-bottom: 28px;
  min-height: 227px; display: flex; flex-direction: column; justify-content: center;
}
.csb-bread {
  position: absolute; top: 26px; left: 34px; z-index: 3;
  font-size: 13px; color: rgba(255,255,255,.6); font-family: var(--coas-sans);
}
.csb-bread a { color: rgba(255,255,255,.6) !important; text-decoration: none; }
.csb-bread a:hover { color: #fff !important; }
.csb-bread__sep { margin: 0 7px; color: rgba(255,255,255,.4); }
.csb-bread__actual { color: #fff; font-weight: 600; }
.csb-banner-center { text-align: center; position: relative; z-index: 2; }
.csb-title { font-family: var(--coas-serif); font-size: 40px; font-weight: 400; color: #fff; margin: 0; line-height: 1.05; }
.csb-sub { font-family: var(--coas-sans); font-size: 18px; font-weight: 400; color: rgba(255,255,255,.85); margin: 8px 0 0; }
.csb-stripes {
  position: absolute; top: 0; right: 0; bottom: 0; width: 55%; z-index: 1; pointer-events: none;
  background: url('../img/banner-stripes.png') no-repeat top right;
  background-size: auto 100%;
}
@media (max-width: 640px) {
  .csb-banner { padding: 52px 22px 24px; min-height: 0; }
  .csb-bread { left: 22px; top: 20px; font-size: 12px; }
  .csb-title { font-size: 1.9rem; }
  .csb-stripes { opacity: .55; }
}

/* ── Concordancia sección Hijos + select Calamidad (wizard auxilios) ──
   El tema pisa estos controles (× y botón salían azul plano). Forzar. */
.coasmedas-inline .coasmedas-aux-hijo-row { gap: 12px; align-items: center; }
.coasmedas-inline .coasmedas-aux-hijo-row label {
  font-family: 'Cabin', sans-serif !important; color: #14566a !important;
  font-weight: 600 !important; font-size: .9rem !important;
}
.coasmedas-inline .coasmedas-aux-hijo-edad,
.coasmedas-inline #coasmedas-aux-calamidad-mult {
  height: 44px !important; padding: 0 14px !important;
  border: 1.5px solid #E1E7EA !important; border-radius: 12px !important;
  font-family: 'Cabin', sans-serif !important; font-size: 15px !important; color: #272727 !important;
  background: #fff !important;
}
.coasmedas-inline .coasmedas-aux-hijo-edad { width: 120px !important; }
.coasmedas-inline .coasmedas-aux-hijo-edad:focus,
.coasmedas-inline #coasmedas-aux-calamidad-mult:focus {
  border-color: #3CB4E5 !important; box-shadow: 0 0 0 4px rgba(60,180,229,.15) !important; outline: none !important;
}
.coasmedas-inline .coasmedas-aux-hijo-remove {
  background: #fff0f3 !important; color: #e05a7a !important; border: none !important; border-radius: 10px !important;
  width: 36px !important; height: 36px !important; font-size: 1.15rem !important; font-weight: 700 !important;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0 !important;
}
.coasmedas-inline .coasmedas-aux-add-hijo {
  background: linear-gradient(120deg, #3CB4E5, #0a86ad) !important; color: #fff !important; border: none !important;
  border-radius: 12px !important; height: 44px !important; padding: 0 22px !important; margin-top: 8px !important;
  font-family: 'Cabin', sans-serif !important; font-size: .95rem !important; font-weight: 700 !important; cursor: pointer;
  box-shadow: 0 8px 18px -6px rgba(10,134,173,.5) !important; transition: transform .12s, box-shadow .12s;
}
.coasmedas-inline .coasmedas-aux-add-hijo:hover { transform: translateY(-2px) !important; box-shadow: 0 12px 22px -8px rgba(10,134,173,.6) !important; }

/* ══════════════════════════════════════════════════════════════════════
   MEDICINA — layout 2 columnas (Figma): titulo+config izq / beneficiarios der.
   Sin barra teal; titulo como texto. Tablas de resultado en teal de marca.
   ══════════════════════════════════════════════════════════════════════ */
.coasmedas-inline .mp-box { padding-top: 32px !important; }
.coasmedas-mp-cols { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.coasmedas-mp-col-left { flex: 1 1 320px; min-width: 280px; }
.coasmedas-mp-col-right { flex: 1 1 400px; min-width: 300px; }
.mp-title { font-family: var(--coas-serif); font-size: 26px; font-weight: 400; color: #14566a; margin: 0 0 24px; line-height: 1.25; }
.mp-field { margin-bottom: 22px; }
.coasmedas-inline .mp-field label {
  font-family: var(--coas-sans) !important; color: #14566a !important; font-weight: 600 !important;
  font-size: .95rem !important; display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.coasmedas-inline .mp-field label::before {
  content: ""; width: 20px; height: 20px; flex: 0 0 auto;
  background: no-repeat center / contain url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233CB4E5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cline x1='2' y1='10' x2='22' y2='10'/%3E%3C/svg%3E");
}
.coasmedas-inline .mp-field select {
  width: 100% !important; height: 46px !important; border: none !important; border-bottom: 2px solid #E1E7EA !important;
  border-radius: 0 !important; background: transparent !important; padding: 0 6px !important;
  font-family: var(--coas-sans) !important; font-size: 15px !important; color: #272727 !important;
}
.coasmedas-inline .mp-field select:focus { outline: none !important; border-bottom-color: #3CB4E5 !important; box-shadow: none !important; }
.mp-actions { justify-content: flex-end; margin-top: 20px; }
/* Tablas de resultado en teal de marca (no morado) */
.csa-resmodal .coasmedas-mp-result-table thead th,
.csa-resmodal .coasmedas-mp-totales-table thead th {
  background: linear-gradient(120deg, #003a4d, #0a7fa3) !important; color: #fff !important;
}
.csa-resmodal .coasmedas-mp-result-table, .csa-resmodal .coasmedas-mp-totales-table { border-radius: 12px; overflow: hidden; }
@media (max-width: 720px) {
  .coasmedas-mp-cols { flex-direction: column; gap: 24px; }
  .mp-actions { justify-content: stretch; }
}

/* Medicina: cards que dividen los componentes (Figma img 47) */
.coasmedas-inline .mp-box { background: #F7F9FA !important; }
.mp-card {
  background: #fff; border: 1px solid #E6ECEF; border-radius: 16px;
  padding: 26px 28px; box-shadow: 0 2px 10px rgba(16,43,50,.04);
}
.coasmedas-mp-col-left.mp-card { align-self: flex-start; }
.mp-card--bene { padding: 20px 22px; }
.mp-actions { margin-top: 18px; justify-content: flex-end; }
