/* Imports */
/*@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");*/
@import url("montserrat-local.css");

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  line-height: 1.5;
  font-family: "Montserrat", sans-serif;
  background: url("../images/background.jpg") no-repeat center center fixed;
  background-size: cover;
  font-size: 24px;
  line-height: 28px;
  color: #000000;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h2 {
  font-size: 30px;
  text-transform: uppercase;
  line-height: 35px;
  color: #000000;
}

/* Utilidades */
.bold {
  font-weight: 800;
}

.mt-1 {
  margin-top: 12px;
}

.mt-2 {
  margin-top: 25px;
}

.mb-1 {
  margin-bottom: 12px;
}

.mb-2 {
  margin-bottom: 25px;
}

.uppercase {
  text-transform: uppercase;
}

.text-center {
  text-align: center;
}

.w-full {
  width: 100%;
}

.btn {
  padding: 15px 30px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
  min-height: 0px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  margin: 0 auto;
}

.btn-column {
  width: 50%;
  padding: 15px 30px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
  min-height: 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
}

.btn img {
  margin-left: 10px;
}

.btn-white {
  background: #ffffff;
}

.btn-red {
  background: #f90103;
  border: 3px solid #000000;
  color: #ffffff;
}

.btn-dark {
  background: #313131;
  border: 2px solid #000000;
  color: #ffffff;
}

.btn-orange {
  background: #eca91d;
  border: 2px solid #000000;
  color: #000000;
}

/* Layout */
.wrapper {
  width: 100vw;
  height: 100vh;
  padding: 25px 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 15px 0;
}

.header img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.header p {
  font-size: 16px;
}

.content {
  /* flex: 1; */
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.card {
  width: 100%;
  height: 100%;
  background: #ffffff;
  padding: 25px 30px;
  display: flex;
  border-radius: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.card-alert {
  min-height: 600px;
}

.footer {
  display: flex;
  flex-direction: row;
  gap: 25px;
  width: 100%;
}

.wrapper-tipo-tarifa {
  width: 100%;
  display: flex;
  border-radius: 18px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wrapper-totem {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Form elements */
.form-group {
  width: 100%;
  margin-bottom: 15px;
}

.form-input {
  width: 100%;
  padding: 15px;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  border-radius: 10px;
  background: #ddf4ff;
  box-shadow: inset 6px 6px 12px rgba(163, 177, 198, 0.45),
    inset -6px -6px 12px rgba(255, 255, 255, 0.8);
  border: 3px solid #000000;
  color: #000000;
  outline: none;
}

/* Keyboard */
.keyboard {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.keyboard-row {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.key {
  min-width: 50px;
  min-height: 50px;
  padding: 5px;
  font-size: 40px;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  border: 2px solid rgba(0, 0, 0, 1);
  border-radius: 18px;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.5),
    -9px -9px 16px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key:hover {
  box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.45),
    -6px -6px 12px rgba(255, 255, 255, 0.85);
}

.key:active {
  box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.4),
    inset -5px -5px 10px rgba(255, 255, 255, 0.7);
  transform: scale(0.98);
}

.key-delete {
  background: #f90103;
  color: #ffffff;
  font-weight: 600;
}

.key-delete:hover {
  background: #dd0102;
}

.key-delete:active {
  box-shadow: inset 5px 5px 10px rgba(200, 0, 0, 0.5),
    inset -5px -5px 10px rgba(255, 100, 100, 0.3);
}

.key-number {
  min-width: 70px;
  min-height: 70px;
  padding: 10px;
  font-size: 40px;
  font-weight: 700;
  background: #ffffff;
  color: #000000;
  border: 2px solid rgba(0, 0, 0, 1);
  border-radius: 18px;
  box-shadow: 9px 9px 16px rgba(163, 177, 198, 0.5),
    -9px -9px 16px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-number:hover {
  box-shadow: 6px 6px 12px rgba(163, 177, 198, 0.45),
    -6px -6px 12px rgba(255, 255, 255, 0.85);
}

.key-number:active {
  box-shadow: inset 5px 5px 10px rgba(163, 177, 198, 0.4),
    inset -5px -5px 10px rgba(255, 255, 255, 0.7);
  transform: scale(0.98);
}

.datos-persona {
  width: 100%;
  margin: 25px 0;
  background: rgba(255, 255, 255, 0.75);
  padding: 0 25px;
}

.datos-persona input[type="checkbox"] {
  width: 30px;
  height: 30px;
  cursor: pointer;
  accent-color: #000000;
  border: 3px solid #000000;
  border-radius: 6px;
  appearance: none;
  background: #fff;
  position: relative;
}

.datos-persona input[type="checkbox"]:checked {
  background: #000000;
}

.datos-persona input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 10px;
  height: 18px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  position: absolute;
  top: 1px;
  left: 8px;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.dato-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

#rut-list {
  width: 100%;
}

.wrapper-rut-principal {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.wrapper-rut-agregado {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  gap: 15px;
}

.wrapper-rut-agregado .rut-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}

.wrapper-rut-agregado .dato-value,
.wrapper-rut-agregado .dato-label {
  font-size: 18px;
  font-weight: 500;
  color: #666666;
}

.dato-item-rut {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.dato-item:last-child {
  border-bottom: none;
}

.dato-label {
  text-align: left;
  font-weight: 700;
}

.dato-value {
  text-align: right;
  font-weight: 700;
}

.comprobante {
  width: 100%;
  padding: 25px 30px;
}

.comprobante-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
}

.comprobante-item:last-child {
  border-bottom: none;
}

.comprobante-label {
  text-align: left;
  font-weight: 700;
}

.comprobante-value {
  text-align: right;
  font-weight: 700;
}

.cliente {
  width: 100%;
  background: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.5);
  border: 3px solid #000000;
  padding: 15px 50px;
  border-radius: 10px;
  margin: 0 0 0.5rem 0;
}

.cliente-name {
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
}

.cliente-category {
  text-align: right;
  font-weight: 700;
  text-transform: uppercase;
}

/* Popup Styles */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.popup-content {
  background: #ffffff;
  border-radius: 18px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  border: 3px solid #000000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: popupSlideIn 0.3s ease-out;
}

.popup-confirm {
  max-width: 500px;
}

@keyframes popupSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.popup-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.popup-buttons .btn {
  flex: 1;
  margin: 0;
}

.rut-to-delete {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  padding: 20px;
  background: rgba(249, 1, 3, 0.1);
  border-radius: 10px;
  margin: 20px 0;
}

.btn-delete {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f90103;
}

.btn-delete svg {
  width: 24px;
  height: 24px;
}

.form-group {
  margin-bottom: 15px;
}

.form-input {
  width: 100%;
  padding: 15px 20px;
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  border: 3px solid #000000;
  border-radius: 10px;
  background: #ffffff;
  color: #000000;
  outline: none;
  letter-spacing: 2px;
}

.aviso-legal {
  width: 100%;
  margin-top: 20px;
}

.aviso-fieldset {
  border: 3px solid #000000;
  border-radius: 15px;
  padding: 10px;
  margin: 0;
}

.aviso-title {
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 15px;
  background: transparent;
  letter-spacing: 1px;
  text-align: center;
}

.aviso-fieldset p {
  color: #000000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  text-align: center;
}

.wrapper-btn-inicio {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  align-items: center;
}

.wrapper-btn-inicio a {
  height: 100px;
}