:root {
  --primary-color: #007bff;
  --text-color: #212529;
  --navbar-background: #f8f9fa;
  --navbar-color: #1f2d3d;
  --border-color: #dee2e6;
  --link-color: var(--primary-color);
  --link-hover-color: #0056b3;
  --font-family-sans-serif: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
::after,
::before {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-sans-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  text-align: left;
  min-height: 100%;
  background-color: #f5f5f5;
}

.wizard-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.container-inner {
  max-width: 100%;
  width: 90%;
  padding: 20px;
}

.wizard-header,
.wizard {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.wizard-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fixed-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 218px;
  height: 104px;
  background-color: #fff;
  z-index: 1000;
}

.fixed-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.wizard {
  margin-top: -10px;
  /* Ajuste del margen superior para compensar la sombra superior */
}

.step {
  display: none;
}

.step.active {
  display: block;
}

h2 {
  color: #333;
}

p {
  color: #555;
}

button {
  background-color: #888;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
}

button:hover {
  background-color: #555;
  color: #fff;
}

.next-button {
  background-color: #337ab7;
  color: #fff;
}

label {
  display: block;
  margin: 0;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#photoCanvas {
  display: block;
  width: 100%;
  height: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

table,
th,
td {
  border: 1px solid #ddd;
}

th,
td {
  padding: 4px;
  text-align: center;
}

th {
  background-color: #f2f2f2;
}

td:last-child,
th:last-child {
  white-space: nowrap;
}

.agregar-btn {
  display: block;
  margin: 10px 0;
  padding: 8px;
  background-color: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
}

.agregar-icon {
  margin-right: 5px;
}

.select-especie {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

select {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f2f2f2;
}

.input-cantidad {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100px;
  text-align: right;
}

.btn-eliminar {
  color: #fff;
  background-color: #e74c3c;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-eliminar:hover {
  background-color: #c0392b;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  max-width: 400px;
  width: 90%;
}

.modal-header {
  background-color: #337ab7;
  color: #fff;
  padding: 15px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
}

.close {
  cursor: pointer;
  color: #fff;
  border: none;
  background: none;
}

.modal-content {
  padding: 20px;
}

.modal-footer {
  background-color: #f5f5f5;
  padding: 15px;
  text-align: right;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.modal-btn-close {
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background-color: #337ab7;
  color: #fff;
}

.nav-item {
  right: 20px;
  top: 0;
  margin: 0;
  display: block;
  position: absolute;
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: 10px;
  display: flex;
  flex-direction: column;
}

.dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1000;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin-top: 0.125rem;
  font-size: 1rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  padding: 0 0 10px 0;
  width: 280px;
}

.dropdown-header p {
  z-index: 5;
  font-size: 17px;
  margin-top: 10px;
  text-align: center;
  color: white;
  padding: 0;
  margin: 0px;
}

.dropdown-header > p > .user-image {
  height: 7rem;
}

.nav-link.dropdown-toggle {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.user-image {
  border-radius: 50%;
  margin-right: 10px;
  height: 2.1rem;
  z-index: 5;
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  background-color: var(--primary-color);
  color: #fff;
}

.dropdown-body {
  padding: 10px;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1rem;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #f8f9fa;
  text-decoration: none;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

.dropdown-footer {
  padding: 5px;
  margin: 5px;
}

.dropdown-footer .btn-default {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #444;
}

.btn:not(:disabled):not(.disabled) {
  cursor: pointer;
}

.btn.btn-flat {
  border-radius: 0;
  border-width: 1px;
  box-shadow: none;
}

.btn-default {
  background-color: #f8f9fa;
  border-color: #ddd;
  color: #444;
}

.btn-default:hover {
  background-color: #337ab7;
  color: #fff;
}

.float-right {
  float: right !important;
}

.btn {
  display: inline-block;
  font-weight: 400;
  color: #212529;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

a {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}

.tabla-resumen {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.tabla-resumen th,
.tabla-resumen td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

.tabla-resumen th {
  background-color: #f2f2f2;
  color: black;
}

/* Responsividad para celulares */
@media screen and (max-width: 599px) {
  .wizard-container {
    padding: 10px;
  }

  .fixed-image {
    width: 100%;
    height: auto;
  }

  #photoCanvas {
    width: 100%;
    height: auto;
  }

  .container-inner {
    padding: 10px;
  }

  table,
  th,
  td {
    font-size: 0.875rem;
  }

  .btn,
  .modal-btn-close,
  .dropdown-item {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
}

/* Responsividad para tablet */
@media screen and (min-width: 600px) and (max-width: 899px) {
  .container-inner {
    max-width: 80%;
  }

  .fixed-image {
    width: 200px;
    height: auto;
  }

  #photoCanvas {
    width: 100%;
    height: auto;
  }

  table,
  th,
  td {
    font-size: 1rem;
  }

  .btn,
  .modal-btn-close,
  .dropdown-item {
    padding: 0.75rem;
    font-size: 1rem;
  }
}

/* Responsividad para dispositivos más grandes como PC */
@media screen and (min-width: 900px) {
  .container-inner {
    max-width: 60%;
  }

  .fixed-image {
    width: 218px;
    height: 104px;
  }

  #photoCanvas {
    width: 640px;
    height: 480px;
  }

  table,
  th,
  td {
    font-size: 1rem;
  }

  .btn,
  .modal-btn-close,
  .dropdown-item {
    padding: 0.75rem;
    font-size: 1rem;
  }

  #userPhoto {
    width: 40px;
    height: 40px;
    max-width: none;
  }
}
