@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  margin: 0;
  padding: 0;
  background-color: #e3e3e3;
  color: white;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  padding: 0 3rem;
}

.btn {
  background-color: #B20E32;
  color: white;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  line-height: 0;
  /* max-width: 30rem; */
  height: 5rem;
  border: none;
  outline: none;
  padding: 1rem 2rem;
  cursor: pointer;
  &.success {
    background-color: #08A048;
  }
}

.btn-return{
  background:none;
  color: white;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  line-height: 0;
  /* max-width: 30rem; */
  height: 5rem;
  border: none;
  outline: none;
  padding: 1rem 2rem;
  cursor: pointer;
  border: 3px solid #B20E32;
}

.btn_icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  line-height: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: 300ms;
  &:hover {
    filter: brightness(1.5);
  }
}

.text-center {
  text-align: center;
}

#mainContent {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 100dvh;
  max-width: 45rem;
  margin: 0 auto;
  background-image: url('../img/background.png');
  background-size: cover;
  background-position: center;
}

#header {
  width: 100%;
  padding: 0 1rem;
  margin: 4rem 0;
  text-align: center;
}

.dashboard #header {
  margin-bottom: 0;
}

#header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  font-weight: 500;
  margin: 3rem auto 0;
  .btn_icon {
    margin-left: 2rem;
  }
}
#header h2 {
  font-size: 2rem;
  font-weight: 500;
}

#login {
  flex: 1;
  .info-label {
    display: block;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    margin-bottom: 2rem;
  }
  .campo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
    width: 100%;
    border: .2rem solid white;
    padding: 1rem;
    .before-element {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      padding: 0 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #FAF3F3;
      font-style: italic;
    }
    input {
      background-color: transparent;
      border: none;
      outline: none;
      width: 100%;
      text-align: center;
      font-weight: bold;
      color: white;
      &::placeholder {
        color: #e3e3e3;
      }
    }
  }
}
#dynamicContent {
  flex: 1;
}
#content  {
  flex: 1;
  flex-shrink: 0;
  .list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 1rem;
    .item {
      width: 100%;
      padding: 3px;
      .item-header {
        background-color: #E2DADA;
        color: #413F41;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .5rem 1rem;
        border-radius: 1.5rem;
        .nombre {
          font-size: 1.5rem;
          font-weight: 500;
          margin: 0;
        }
        .actions {
          height: 100%;
          display: flex;
          align-items: center;
          gap: 1rem;
        }
      }
      .item-body {
       
        transition: 500ms;
        &.closed {
          display: none;
          opacity: 0;
        }
        &.oppened {
          display: block;
          opacity: 1;
        }
        &.oppenedCard {
          display: block;
          opacity: 1;
        }
        .item-text {
          display: flex;
          justify-content: space-between;
          font-size: 1.3rem;
        }
      }
    }
  }
  .alert {
    display: none;
    text-align: center;
    border-radius: 1rem;
    &.success {
      display: block;
      padding: 1rem;
      background-color: #08A048;
    }
    &.error {
      display: block;
      padding: 1rem;
      background-color: #B20E32;
    }
  }
}
body.error {
  .alert {
    margin-bottom: 8rem;
  }
  .btn.success {
    max-width: max-content;
    margin: 0 auto;
  }
  #secondaryContent {display: flex;}
}
body.dashboard #secondaryContent {
  display: flex;
}
#secondaryContent {
  flex: 1;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: space-around;
  .message {
    margin: 0 auto;
    text-align: center;
  }
  .contact-info {
    font-size: 1.3rem;
    font-weight: lighter;
    text-align: center;
    margin-bottom: 4rem;
  }
}

#popupConfirm {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 100dvh;
  display: none;
  opacity: 0;
  transition: 300ms;
  justify-content: center;
  align-items: center;
  &.oppened {
    display: flex;
    opacity: 1;
  }
  .card {
    background-color: #E2DADA;
    border-radius: 1.5rem;
    margin-bottom: 80px;
    color: #413F41;
    padding: 4rem 2rem;
    box-shadow: 0 0 1rem rgb(0 0 0 / .35);
    .actions {
      display: flex;
      justify-content: center;
      gap: 3rem;
      margin-top: 4rem;
      .btn {
        max-width: 8rem;
        height: 3.5rem;
      }
    }
  }
}

#footer {
  background-color: #000;
  width: 100%;
  padding: 1rem;
  margin-top: auto;
  font-weight: lighter;
}


.message-error {
  transition: opacity 1s ease-out;
  animation: fadeInDown 0.5s ease-out forwards;
  text-align: center;
  border-radius: 1rem;
  display: none;
  padding: 1rem;
  margin: 0.5rem;
  background-color: #B20E32;
}

*[data-vista] {display: none;}
body.signup *[data-vista~="signup"] {display: block;}
body.request-pin *[data-vista~="request-pin"] {display: block;}
body.dashboard *[data-vista~="dashboard"] {display: block;}
body.error *[data-vista~="error"] {display: block;}
body.he *[data-vista~="he"] {display: block;}

.spinner-red {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 0, 0, 0.3); /* Borde semitransparente */
  border-top: 5px solid #ff0000; /* Borde superior rojo */
  border-radius: 50%;
  animation: girar 1s linear infinite;
  margin: 20px auto;
}

@keyframes girar {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


input[type="number"] {
    -moz-appearance: textfield;
}