/* Base Styles (formerly assets/styles.css) */
.card:hover {
  box-shadow: 0px 0px 8px 5px #bbb;
  cursor: pointer;
}

thead th {
  background: #0080eb;
  color: white;
  border-top: 0px !important;
}

thead th:first-of-type {
  border-top-left-radius: 10px;
}

thead th:last-of-type {
  border-top-right-radius: 10px;
}

.cell-number {
  text-align: right;
}

.form-group.required .control-label:after {
  content: " *";
  color: red;
}

.logo {
  padding: 2rem;
  max-height: 140px;
}

.jumbotron {
  background-color: #0080eb !important;
  color: white;
  padding: 2rem 1rem;
  border-radius: 0px !important;
}

legend {
  font-weight: bold;
  color: #0080eb !important;
}

h2 {
  font-weight: bold !important;
  color: #0080eb !important;
}

.second-header {
  max-width: 700px;
  color: #6c757d;
}

footer {
  background: #0080eb;
  margin-top: 30px;
  flex-shrink: 0;
}

.footer-copyright {
  background: #0027ff;
  color: white;
  font-size: smaller;
}

.social-media-icon {
  color: white;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1 0 auto;
}

.btn {
  color: white !important;
}

.smaller {
  font-size: 60% !important;
}

.tab-content {
  margin-top: 15px;
}

.datos-afiliado {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Inline Styles extracted from index.html */
fieldset,
legend {
  all: unset;
  display: block;
}

.wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  position: relative;
}

.wizard-progress::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e0e0e0;
  z-index: 1;
}

.step-indicator {
  background-color: #e0e0e0;
  color: #666;
  border-radius: 20px;
  padding: 8px 15px;
  font-weight: 500;
  z-index: 2;
  position: relative;
  transition: all 0.3s;
}

.step-indicator.active {
  background-color: #0069d9;
  color: white;
}

.step-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.step-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input.form-control,
select.custom-select {
  border-radius: 6px;
  padding: 10px 15px;
  height: auto;
}

.custom-floating-label {
  position: relative;
}

.custom-floating-label input.form-control,
.custom-floating-label select.custom-select {
  height: 3.5rem;
  padding: 1.25rem 1rem 0.25rem;
  border-radius: 0.5rem;
}

.custom-floating-label textarea.form-control {
  height: auto;
  min-height: 4rem;
  padding: 1.25rem 1rem 0.25rem;
  border-radius: 0.5rem;
}

.custom-floating-label label {
  position: absolute;
  top: 0;
  left: 1rem;
  height: 100%;
  padding: 1rem 1.25rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity .1s ease-in-out, transform .1s ease-in-out;
  color: #6c757d;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .custom-floating-label.label-sm label {
    font-size: 0.8rem;
    padding: 1.1rem 1.25rem;
  }
}

.custom-floating-label input::-webkit-input-placeholder {
  color: transparent;
}

.custom-floating-label input::-moz-placeholder {
  color: transparent;
}

.custom-floating-label input::placeholder {
  color: transparent;
}

.custom-floating-label input:not(:placeholder-shown)~label,
.custom-floating-label input[value]:not([value=""])~label,
.custom-floating-label input:focus~label,
.custom-floating-label select~label,
.custom-floating-label textarea:not(:placeholder-shown)~label,
.custom-floating-label textarea:focus~label {
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #6c757d;
}

.custom-floating-label input:focus~label,
.custom-floating-label select:focus~label,
.custom-floating-label textarea:focus~label {
  color: #0069d9;
}

.required .control-label::after {
  content: " *";
  color: #dc3545;
}

.cuota-slider-container input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  outline: none;
  padding: 0;
  margin: 15px 0;
  cursor: pointer;
  --slider-fill: 0%;
  background: linear-gradient(to right, #0069d9 var(--slider-fill), #e9ecef var(--slider-fill));
}

.cuota-slider-container input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0069d9;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 105, 217, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
  border: 2px solid #fff;
}

.cuota-slider-container input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgba(0, 105, 217, 0.5);
}

.cuota-slider-container input[type=range]::-moz-range-track {
  height: 8px;
  border-radius: 5px;
  background: #e9ecef;
}

.cuota-slider-container input[type=range]::-moz-range-progress {
  height: 8px;
  border-radius: 5px;
  background: #0069d9;
}

.cuota-slider-container input[type=range]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0069d9;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 105, 217, 0.4);
  transition: transform 0.15s;
}

.cuota-slider-container input[type=range]::-moz-range-thumb:hover {
  transform: scale(1.15);
}

.upload-zone {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed #0069d9;
  border-radius: 8px;
  background: #f5f9ff;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  min-height: 0;
}

.upload-zone:hover,
.upload-zone.dragover {
  background: #e4efff;
  border-color: #0040a0;
}

.upload-zone.has-file {
  border-color: #198754;
  background: #f0fdf4;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-zone .upload-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.upload-zone .upload-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.upload-zone .upload-label {
  font-weight: 600;
  color: #0069d9;
  font-size: 0.85rem;
  line-height: 1.2;
}

.upload-zone .upload-hint {
  color: #6c757d;
  font-size: 0.75rem;
}

.upload-zone .upload-filename {
  color: #198754;
  font-size: 0.82rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.textarea-expectations {
  border-radius: 0.5rem;
  resize: vertical;
  min-height: 90px;
  font-size: 0.95rem;
}

.btn-next:disabled,
.btn-next[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.field-help {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 3px;
}

body {
  font-family: 'Inter', sans-serif !important;
}

/* ── Auto-suggest dropdown ──────────────────────────────────────── */

.autosuggest-wrapper {
  position: relative;
}

.autosuggest-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  max-height: 220px;
  overflow-y: auto;
  margin: 2px 0 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.autosuggest-list li {
  padding: 8px 14px;
  font-size: 0.92rem;
  color: #212529;
  cursor: pointer;
  transition: background 0.12s;
}

.autosuggest-list li:hover,
.autosuggest-list li.active {
  background: #e8f0fe;
  color: #0069d9;
}

.autosuggest-list li mark {
  background: none;
  font-weight: 700;
  color: inherit;
  padding: 0;
}

/* Float label when input inside autosuggest-wrapper has content or focus */
.custom-floating-label .autosuggest-wrapper.has-value+label,
.custom-floating-label .autosuggest-wrapper:focus-within+label {
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #6c757d;
}

.custom-floating-label .autosuggest-wrapper:focus-within+label {
  color: #0069d9;
}

/* Ensure the wrapper input inherits floating-label sizing */
.custom-floating-label .autosuggest-wrapper input.form-control {
  height: 3.5rem;
  padding: 1.25rem 1rem 0.25rem;
  border-radius: 0.5rem;
}

/* ── confirmacion.html ──────────────────────────────────────────── */

/* Disable hover effect on the steps card */
.confirmacion .card:hover {
  box-shadow: none !important;
  cursor: default;
}

.check-circle {
  width: 64px;
  height: 64px;
  background-color: #198754;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.check-circle i {
  color: white;
  font-size: 1.75rem;
}

@keyframes popIn {
  from {
    transform: scale(0);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pasos-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pasos-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e9ecef;
}

.pasos-list li:last-child {
  border-bottom: none;
}

.paso-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e9ecef;
  color: #6c757d;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.paso-num.done {
  background-color: #d1e7dd;
  color: #198754;
}

.paso-titulo {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.paso-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin: 0;
}

/* Inline-style replacements */
.jumbotron-title {
  font-size: 2rem;
}

.jumbotron-desc {
  font-size: 1.05rem;
  opacity: 0.9;
}

.pasos-heading {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.paso-check-icon {
  font-size: 11px;
}

.confirmacion-site-link {
  font-size: 0.9rem;
}

/* ── Bloque contexto pagos (from app-cc.css) ── */
.pago-contexto {
  background: #f0f6ff;
  border-left: 4px solid #0069d9;
  border-radius: 0 6px 6px 0;
  padding: 14px 16px;
  cursor: pointer;
}

.pago-contexto-titulo {
  font-weight: 600;
  font-size: 0.88rem;
  color: #0069d9;
}

.pago-contexto p,
.pago-contexto ul {
  font-size: 0.85rem;
  color: #495057;
  line-height: 1.6;
  margin-bottom: 6px;
}