body {
background-color: #F6F6F6;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='25' height='25' viewBox='0 0 200 200'%3E%3Cdefs%3E%3ClinearGradient id='a' gradientUnits='userSpaceOnUse' x1='100' y1='33' x2='100' y2='-3'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='1'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' gradientUnits='userSpaceOnUse' x1='100' y1='135' x2='100' y2='97'%3E%3Cstop offset='0' stop-color='%23000' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%23000' stop-opacity='1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg fill='%23cdcdcd' fill-opacity='0.05'%3E%3Crect x='100' width='100' height='100'/%3E%3Crect y='100' width='100' height='100'/%3E%3C/g%3E%3Cg fill-opacity='0.05'%3E%3Cpolygon fill='url(%23a)' points='100 30 0 0 200 0'/%3E%3Cpolygon fill='url(%23b)' points='100 100 0 130 0 100 200 100 200 130'/%3E%3C/g%3E%3C/svg%3E");
}
h2 {
  text-align: center;
  font-weight: 700 !important;
  font-size: 36px !important;

}
.firma-container {
  width: 100%;
  height: 200px;
  border: 1px solid #ccc;
  position: relative;
}

#firma {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.step-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 1rem;
  z-index: 100;
  border-top: 1px solid #ddd;
}

.step-footer .btn {
  min-width: 120px;
}

.card-body {
  position: relative;
}
.fixed-bottom-right {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: #fff;
  padding: 1rem 0;
  text-align: end;
  border-top: 1px solid #ddd;
}

.card {
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 16px;
  border: none;
  background-color: #ffffff;
  padding: 1rem;
}

.nav-pills {
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.nav-pills .nav-link {
  border-radius: 20px;
  padding: 0.5rem 1.25rem;
  background-color: #e9ecef;
  color: #0d6efd;
  transition: background 0.3s, color 0.3s;
  font-weight: 500;
}

.nav-pills .nav-link.active {
  background-color: #0d6efd;
  color: #fff;
  font-weight: bold;
}

.tab-pane {
  animation: fadeIn 0.3s ease-in-out;
}

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

@media (max-width: 768px) {
  .nav-pills .nav-link {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }

  .card {
    padding: 1rem 0.75rem;
  }
}
#stepTabs {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  max-width: 100%;
  background: #fff;
  border-radius: 50px;
  scroll-snap-type: x mandatory;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#stepTabs::-webkit-scrollbar {
  display: none;
}

#stepTabs .nav-item {
  flex: 0 0 auto !important;
  scroll-snap-align: start;
}

#stepTabs .nav-link {
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background-color: transparent;
  color: #6c757d;
  transition: all 0.3s ease;
  font-weight: 500;
}

#stepTabs .nav-link.active {
  background-color: #e0f0ff;
  color: #0d6efd;
  box-shadow: 0 0 0 4px #cce4ff;
  position: relative;
}
.in-flex {
  @apply card shadow-sm border-0 bg-light p-3 mb-3;
}

.in-flex2 {
  @apply alert alert-warning border-start border-4 border-warning-subtle mb-0;
}

.in-flex2 p:last-child {
  margin-bottom: 0;
}
.in-flex {
  background-color: #cde8ff; 
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #000;
}

.in-flex p {
  margin-bottom: 1rem;
  text-align: justify;
}

.in-flex2 {
  background-color: #fff5d3; 
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #000;
  margin-bottom: 1.5rem;
}

.in-flex2 p {
  margin-bottom: 1rem;
  text-align: justify;
}

#step1 .form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.4rem;
}

#step1 .form-control,
#step1 .form-select {
  border-radius: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #ced4da;
  box-shadow: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#step1 .form-control:focus,
#step1 .form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2);
}

@media (max-width: 576px) {
  #step1 .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
#step1 .col-md-6 {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #dee2e6;
}


#poseeLicencia {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

#bloqueLicencia {
  background: #f6fbff;
  border-left: 5px solid #0d6efd;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
#bloqueLicencia .md-3{
  border-bottom: 1px dashed #dee2e6;
}
#bloqueLicencia .col-form-label {
  font-weight: 600;
  color: #000000;
}
#bloqueLicencia .form-check-label {
  margin-right: 1rem;
}

#bloqueLicencia .form-check-input {
  margin-right: 0.35rem;
}
#bloqueLicencia .col-sm-2 {
  flex: 0 0 auto;
  width: 180px;
  max-width: 100%;
  text-align: left;
  white-space: normal;
  color: #000000;
  font-weight: 600;
}

#step2 .row.mb-3 > .col-sm-4.col-form-label {
  color: #000000;
  text-align: left;
  padding-top: 0.5rem;
}

#step2 .row.mb-3 > .col-sm-8 {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#step2 .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
#step3 .row.mb-3 {
  flex-direction: column;
  margin-bottom: 2rem;
  border-bottom: 1px dashed #dee2e6;
  padding-bottom: 1rem;
}

#step3 .col-form-label {
  font-weight: 600;
  font-size: 1rem;
  color: #000000;
  margin-bottom: 0.75rem;
  text-align: left !important;
  width: 100%;
}

#step3 .col-sm-9,
#step3 .col-sm-3 {
  width: 100%;
}

#step3 .form-check {
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

#step3 .row.mb-3:last-of-type {
  border-bottom: none;
}
#saludCol1 .mb-3,
#saludCol2 .mb-3 {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px dashed #dee2e6;
}

#saludCol1 .form-label,
#saludCol2 .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000;
  display: block;
  margin-bottom: 0.5rem;
}

#saludCol1 .form-check,
#saludCol2 .form-check {
  margin-right: 1.5rem;
  margin-bottom: 0.3rem;
}

#saludCol1 .form-check-input:checked,
#saludCol2 .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}
#tablaMedicamentosContainer .table-responsive {
  overflow-x: auto;
}

#tablaMedicamentos input[type="text"] {
  min-width: 150px;
}

#tablaMedicamentos input.form-control {
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 0.4rem;
}

#tablaMedicamentos button.btn {
  padding: 0.3rem 0.6rem;
  font-size: 0.85rem;
}

@media (max-width: 576px) {
  #tablaMedicamentos th,
  #tablaMedicamentos td {
    white-space: nowrap;
  }
}
#opcionesCataratas,
#opcionesGlaucoma,
#opcionesRetina,
#inputTipoCancer,
#inputOperado,
#inputOtraEnfermedad,
#inputLicenciaMas {
  background-color: #f1f8ff;
  border-left: 6px solid #0d6efd;
  border-radius: 1rem 0.5rem 0.5rem 1rem;
  padding: 1rem 1.25rem;
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

#opcionesCataratas,
#opcionesGlaucoma,
#opcionesRetina{
  flex-wrap: nowrap;
  align-content: stretch;
  flex-direction: column;
}

#opcionesCataratas > label,
#opcionesGlaucoma > label,
#opcionesRetina > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000;
}

#step5 .form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}
#step5 .col-form-label{
  color: #000000;
  font-size: 1rem;
  font-weight: 600;
}

#step5 .form-select,
#step5 .form-control {
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #ced4da;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.95rem;
}

#step5 .form-select:focus,
#step5 .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#step5 .form-check-label {
  margin-right: 1rem;
  white-space: nowrap;
}

#step5 .form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

#step5 .row.mb-3 {
  margin-bottom: 1.75rem !important;
  border-bottom: 1px dashed #dee2e6;
  padding-bottom: 1rem;
}

#detalleAccidente {
  background-color: #f8f9fa;
  border-left: 5px solid #0d6efd;
  padding: 1rem;
  border-radius: 0.5rem;
  margin-top: -0.5rem;
}

#detalleAccidente textarea {
  font-size: 0.95rem;
  border-radius: 0.5rem;
  border: 1px solid #b6d4fe;
}

@media (max-width: 576px) {
  #step5 .col-sm-4,
  #step5 .col-sm-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #step5 .form-check-inline {
    display: block;
    margin-bottom: 0.5rem;
  }
}

#step6 p {
    font-family: 'Open Sans', Arial, sans-serif; 
    font-size: 1.1rem;       
    line-height: 1.8;        
    color: #000000;          
    text-align: justify;      
    background-color: #ffe8cc;
    padding: 1.2rem 1.5rem;   
    border-radius: 0.5rem;
    margin-bottom: 1.75rem;
}


#step6 .form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

#step6 .form-control {
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#step6 .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#step6 .row.g-3 > .col-md-6 {
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  #step6 .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


#step7 p {
  font-family: 'Open Sans', Arial, sans-serif; 
  font-size: 1.1rem;       
  line-height: 1.8;  
  color: #000000;
  text-align: justify;  
  background-color: #d4edda;
}
#step7 .form-label {
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

.declaracion-lista {
  padding-left: 1.5rem;        
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #000000;
}

.declaracion-lista li {
  margin-bottom: 0.75rem;      
  text-align: justify;
}
.declaracion-verde {
  background-color: #d4edda;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.75rem;
  font-family: 'Open Sans', Arial, sans-serif; 
  font-size: 1.1rem;       
  line-height: 1.8;  
  color: #000000;
  text-align: justify;
}


#step7 .form-control {
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid #ced4da;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#step7 .form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

#step7 .row.g-3 > .col-md-6 {
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  #step7 .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

#step9 .form-label {
  font-weight: 600;
  font-size: 1.2rem;
  color: #000;
  margin-bottom: 0.5rem;
}

#step9 .firma-container {
  width: 100%;
  height: 200px;
  border: 2px dashed #0d6efd;
  border-radius: 8px;
  background-color: #f8f9fa;
  position: relative;
  overflow: hidden;
}

#step9 #firma {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

#step9 .btn-danger {
  font-weight: 500;
  padding: 0.45rem 1.1rem;
  font-size: 0.95rem;
  border-radius: 0.45rem;
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  transition: background 0.3s ease;
}

#step9 .btn-danger:hover {
  background-color: #c82333;
  color: #fff;
}
footer {
  background-color: #f8f9fa;
  border-top: 2px solid #dee2e6;
  font-size: 0.95rem;
  color: #000000;
}

footer h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-decoration: underline;
}

footer p {
  margin: 0.25rem 0;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  footer .row > div {
    text-align: center !important;
  }
}
.nav-buttons {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.nav-buttons .btn {
  flex: 1 1 auto;
  min-width: 120px;
  max-width: 48%;
  white-space: nowrap;
}
.card {
  min-height: 60vh;
  padding: 1rem;
}

@media (max-width: 576px) {
  .card {
    padding: 0.5rem;
  }

  .nav-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-buttons .btn {
    max-width: 100%;
  }
}

.d-flex.justify-content-between {
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.d-flex.justify-content-between > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch;
  }

  .d-flex.justify-content-between > .btn {
    width: 100%;
  }

  .text-end.mt-4 {
    text-align: center !important;
  }

  .text-end.mt-4 .btn {
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
  }
}

.in-flex3 {
  background-color: #fff8e1; 
  border-left: 5px solid #ffc107;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.in-flex3 p {
  font-size: 1rem;
  line-height: 1.6;
  color: #000000;
  background-color: #f8f9fa;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.75rem;
}

.in-flex3 .form-check-label {
  color: #856404;
  font-weight: 500;
}

.in-flex4 {
  background-color: #e6f7f9;           
  border-left: 5px solid #00bcd4;     
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.75;
  color: #004c5b;
  text-align: justify;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.in-flex4 p {
  margin-bottom: 0;
}

