@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@400;700;900&display=swap");

:root {
  --kc-primary: #266598;
  --kc-secondary: #ff4346;
  --kc-terciary: #0fffa3;
  --kc-blue: #0085fa;
  --kc-text: #364d63;
  --kc-cyan: #17dcff;
  --kc-primary-rgb: 38, 101, 152;
  --kc-secondary-rgb: 255, 67, 70;
  --kc-terciary-rgb: 15, 255, 163;
  --kc-blue-rgb: 23, 220, 255;
  --kc-text-rgb: 54, 77, 99;
  --kc-cyan-rgb: 0, 133, 250;
}

/* ESTILOS GENERALES DE LA APP */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 18px;
  font-family: "Prompt", sans-serif !important;
  color: var(--kc-text);
  overflow-x: hidden;
}

a {
  color: var(--kc-blue);
}

nav div {
  cursor: pointer;
  transition: 0.3s ease all;
}

nav div:hover {
  border-bottom: 3px solid var(--kc-primary);
}

nav div.active {
  border-bottom: 3px solid var(--kc-terciary);
}

h1.heroHead {
  font-weight: 900;
  font-size: clamp(25px, 6vw, 60px);
  margin-bottom: 30px;
  line-height: 1;
}

h2 {
  font-size: clamp(20px, 3vw, 25px) !important;
}

h3 {
  font-size: 20px !important;
}

span.helloUser {
  display: block;
  font-size: clamp(20px, 4vw, 30px);
  margin-bottom: 20px;
}

.bg-pendiente,
.bg-confirmacion {
  background-color: rgba(var(--kc-text-rgb), 0.2);
}

.bg-error,
.bg-rechazado {
  background-color: var(--kc-secondary);
  color: white;
  text-transform: uppercase;
}

.bg-valido {
  background-color: var(--kc-terciary);
  text-transform: uppercase;
}

.bg-recibido {
  background-color: var(--kc-cyan);
  color: white;
  text-transform: uppercase;
}

.bg-agotadas {
  background-color: #bf7878;
  color: white;
  text-transform: uppercase;
}

.bg-confirmado {
  background-color: #0fffa3;
  color: black;
  text-transform: uppercase;
}

.btn-confirmar {
  background-color: var(--bs-primary);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 60px;
  border: none;
}

.btn-confirmar:hover {
  opacity: 0.7;
}

.confirm-textarea {
  width: 100%;
  height: 100px;
  border: 2px solid var(--kc-blue) !important;
}

.btn-animation {
  animation: blink 1s infinite;
}

@keyframes blink {
  50% {
    box-shadow: 0 0 10px 5px #221452;
  }
}

.btn-kc {
  background: var(--kc-blue) !important;
  font-weight: bold;
  border-color: var(--kc-blue) !important;
  color: white !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  cursor: pointer !important;
  border-radius: 60px !important;
}

.btn-kc-cancel {
  background: var(--kc-secondary) !important;
  font-weight: bold;
  border-color: var(--kc-secondary) !important;
  color: white !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  cursor: pointer !important;
  border-radius: 60px !important;
}

.btn-kc:hover {
  opacity: 0.8;
}

.kcAlert {
  padding: 30px;
  border-radius: 10px;
}

.kcAlertError {
  background-color: rgba(var(--kc-secondary-rgb), 0.2);
}

.kcAlertInfo {
  background: rgba(var(--kc-blue-rgb), 0.2);
}

.kcAlertSuccess {
  background: rgba(var(--kc-terciary-rgb), 0.2);
}

.ulGuion {
  list-style: none;
}

.ulGuion li::before {
  content: "-";
  vertical-align: top;
}

/* Estilos del componente */
.fileValido {
  background: rgba(var(--kc-terciary-rgb), 0.1);
}

.fileNoValido {
  background: rgba(var(--kc-secondary-rgb), 0.1);
}

.file-upload .file-upload__area {
  width: 100%;
  max-width: 600px;
  border: 2px dashed #ccc;
  padding: 30px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.file-upload .file-upload__area label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  background-color: var(--bs-primary);
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 60px;
}

.file-upload .file-upload__area label:hover {
  opacity: 0.7;
}

.file-upload .file-upload__area .progress {
  width: 100%;
}

.procesoSubida {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
}

.resultadoSubida>div {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.resultadoSubida>div span {
  display: block;
  width: calc(100% - 80px);
}

.resultadoSubida>div svg {
  width: 40px;
  height: 40px;
}

.resOk {
  color: var(--kc-terciary);
}

.resError {
  color: var(--kc-secondary);
}

.disabled {
  filter: grayscale() !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
}

.msg_input {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
}

button .spinner-grow.spinner-grow-sm {
  display: none;
}

button[disabled] .spinner-grow.spinner-grow-sm {
  display: inline;
}

button[disabled] svg {
  display: none;
}

.kcToast {
  position: fixed;
  width: 90%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: auto;
  max-width: 1100px;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.2);
  text-align: center;
  background: white;
  z-index: 99999999;
  transition: 0.4s ease all;
}

.closeToast {
  position: absolute;
  top: 20px;
  right: 20px;
}

.border-toast {
  border-bottom: 4px solid #0085fa !important;
}

.border-error {
  border-bottom: 4px solid #ff4346 !important;
}

/* Animaciones */
.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  top: 45%;
  opacity: 0;
}

.dobleVerificationSection {
  min-height: calc(100vh - 294px);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.gridCode input[type="number"] {
  text-align: center;
  font-size: clamp(18px, 2vw, 23px);
  aspect-ratio: 3/4;
  border: 1px solid #9b9b9b;
  border-radius: 5px;
  font-weight: bold;
}

/* Wiki */
div#wikiContent {
  display: flex;
  gap: 30px;
}

div#wikiContent aside {
  border-right: 1px solid #ddd;
  min-width: 250px;
  max-width: 300px;
  position: sticky;
  top: 70px;
}

div#wikiContent aside .btn-close {
  display: none
}

div#wikiContent aside nav ul {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

div#wikiContent aside nav ul li {
  padding: 5px 20px;
  display: block;
  color: var(--kc-text-rgb);
  text-decoration: none;
  cursor: pointer;
}

div#wikiContent aside nav ul li:hover {
  background: #ddd;
}

div#wikiContent main {
  flex: auto;
  padding: 20px;
}

div#wikiContent main .burger {
  display: none
}

@media screen and (max-width:768px) {
  div#wikiContent {
    display: block;
    gap: 30px;
  }

  div#wikiContent aside.open {
    left: 0;
  }

  div#wikiContent aside {
    border: none;
    min-width: auto;
    max-width: 100%;
    width: 100%;
    position: fixed;
    z-index: 9999;
    background: white;
    top: 0;
    left: -1000px;
    padding: 20px;
    height: 100vh;
    transition: .4s ease all;
  }

  div#wikiContent aside .btn-close {
    display: block
  }

  div#wikiContent aside nav ul li {
    padding: 20px;
    border-bottom: 1px solid #ddd;
  }

  div#wikiContent main .burger {
    display: block
  }
}

div#wikiHTML h1 {
  margin-bottom: 40px;
  font-weight: bold;
}

div#wikiHTML h2,
div#wikiHTML h3 {
  margin-top: 60px;
  margin-bottom: 30px;
  font-weight: bold;
}

div#wikiHTML p {
  margin-bottom: 30px;
}

div#wikiHTML p img {
  width: 90%;
  margin: auto;
  border: 1px solid #ddd;
  display: block;
  margin-top: 50px;
  margin-bottom: 50px;
}

@media screen and (max-width:768px) {
  #menuApp {
    position: fixed;
    top: 0;
    left: -1000px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    transition: .4s ease all;
    background-color: white;
    text-align: center;
    padding: 20px;
  }

  #menuApp div {
    padding: 30px !important;
  }

  #menuApp nav div.active {
    border-color: var(--kc-blue) !important;
    background-color: var(--kc-blue);
    color: white;
  }

  #menuApp.open {
    left: 0;
  }
}

.lds-ellipsis {
  margin: auto;
  position: relative;
  width: 80px;
  height: 80px;
}

.lds-ellipsis div {
  position: absolute;
  top: 33px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--kc-primary);
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(24px, 0);
  }
}

.circleIcon {
  padding: 30px;
  border: 4px solid #E34B4E !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #000033 !important;
  border-radius: 50%;
  aspect-ratio: 1/1;
  width: 120px;
  margin: auto;
}

.descIcon {
  margin-top: 10px;
  font-size: .9em;
}

.iconContainer {
  width: 30%;
  min-width: 200px;
  text-align: center;
  margin-bottom: 20px;
}

.grGrid {
  display: grid;
  gap: 1rem;
  grid-auto-rows: 15rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  grid-auto-flow: dense;
}

.accordion-flush .accordion-item .accordion-button,
.accordion-flush .accordion-item .accordion-button.collapsed {
  border: 2px solid var(--kc-blue) !important
}

.pulse {
  animation: pulse 1.5s infinite 5s cubic-bezier(0.25, 0, 0, 0);
  box-shadow: 0 0 0 0 #fff;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 6px 6px #3ba4ff;
  }
}

.pulse-error {
  animation: pulse-error 1.5s infinite 5s cubic-bezier(0.25, 0, 0, 0);
  box-shadow: 0 0 0 0 #fff;
}

@keyframes pulse-error {
  50% {
    box-shadow: 0 0 6px 6px var(--kc-secondary);
  }
}


@media (max-width: 450px) {
  .accordion-button {
    padding: 0.8rem !important;
    padding-right: 0.8rem !important;
    font-size: 0.9rem !important;
  }

  .ms-3 {
    margin-left: 0.4rem !important;
  }

  .btn-responsive {
    font-size: 0.8rem !important;
    padding: 0.4rem 0.5rem !important;
    margin: 0 !important;
  }

  .btn-align {
    display: block !important;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  
  .mr-responsive {
    margin-right: 20px !important;
  }
}