/**** custom properties ********/
@font-face {
  font-family: "Canela Light";
  src: url("../fonts/canela/Canela-Light.woff2");
  font-weight: 1 300;
  font-style: normal;
  font-stretch: normal;
}
@font-face {
  font-family: "Canela";
  src: url("../fonts/canela/Canela-BoldItalic.woff2");
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-family: "Canela";
  src: url("../fonts/canela/Canela-Bold.woff2");
  font-weight: 700;
}
@font-face {
  font-family: "Graphik";
  src: url("../fonts/canela/Graphik-Regular.woff2");
  font-weight: 1 999;
}

:root {
  --validated-color: #6cad52;
  --error-color: #d81f32;

  --main-font: "Canela", sans-serif;
  --secondary-font: "Graphik", sans-serif;
  --light-font: "Canela Light", sans-serif;
}

/* Parte de código totalmente editable dependiendo del estilo principal utilizado en la web. Es un codigo plantilla para poder trabajar y crear la calculadora*/
*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  box-sizing: inherit;
  height: auto;
}
body {
  font-family: "Canela", sans-serif;
  color: #ffffff;
  background: #000;

  height: 100%;
  min-height: 100vh;
  word-spacing: 0.1rem;
  line-height: 1.5;
}
header {
  background-color: #000;
  top: 0;
  position: fixed;
  margin: 0 auto;
  width: 100%;
  height: 75px;
  padding-right: 30px;
  padding-left: 30px;
}
a {
  text-decoration: none;
}
p {
  margin: 0;
  padding: 0;
  font-family: var(--secondary-font);
}
@media (min-width: 768px) {
  p {
    font-size: 16px;
  }
}
label {
  font-size: 1.6em;
  text-align: left;
  justify-content: center;
}
@media (min-width: 768px) {
  label {
    text-align: center;
    margin: auto 0;
  }
}

.d-flex {
  display: flex;
}
.flex-column {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.bg-dark {
  background: #000;
}

.mt-5 {
  margin-top: 3rem;
}
.offset-1 {
  margin-left: 8.333333%;
}
.col-10 {
  -ms-flex: 0 0 83.333333%;
  flex: 0 0 83.333333%;
  max-width: 83.333333%;
}
/* fin código plantilla */

.calculadora {
  padding: 50px 30px;
  max-width: 1440px;
  margin: 0 auto;
}

.logo {
  height: 57px;
  width: auto;
  margin-top: 12px;
  margin-bottom: 8px;
  transition: opacity 0.5s ease-in;
}
.logo-printable {
  height: 57px;
  width: auto;
  margin: 0 auto 20px 0;
}

/*** Js  events***/

.opacity-50 {
  opacity: 0.5;
}
.opacity-50:hover {
  cursor: not-allowed;
}
.text-center {
  text-align: center;
}
.p-3 {
  padding: 1rem;
}

/**** Header ****/

.header {
  display: flex;
  justify-content: space-between;
}
#side-panel-trigger {
  margin: 11px;
}
.closebtn {
  margin-top: 11px;
  text-align: right;
  padding-right: 30px;
  cursor: pointer;
}
#open-menu {
  cursor: pointer;
}


/*** Menu navegacion header ***/
.sidenav {
  position: fixed;
  height: 100%;
  z-index: 9999;
  top: 0;
  right: 0;
  bottom: 0;
  overflow-x: hidden;
  transition: 0.8s;
  width: 0%;
  background-color: #000;
  border-left: 0.1rem solid #e2e2e2;
}
.sidenav.active {
  width: 100%;
}
@media (min-width: 768px) {
  .sidenav.active {
    width: 33.33%;
  }
}

.item-menu {
  color: #fff;
  text-align: left;
  font-size: 32px;
  line-height: initial;
  font-weight: 500;
  margin-top: 8px;
  margin-bottom: 8px;
  font-family: var(--secondary-font);
}
.item-menu:hover {
  text-decoration: underline;
}

/**** Calculadora  *******/

.calculadora-title {
  font-size: 1em;
  margin-top: 2em;
  color: #fff;
}
.calculadora-title h2 {
  display: flex;
  border-bottom: 1px solid #fff;
  padding: 0.2em 0;
  margin: 0;
  font-size: 22px;
  text-align: center;
  font-family: var(--light-font);
  font-weight: 300;
  letter-spacing: 0.5px;
  line-height: 49px;
}
.calculadora-title h2::after {
  content: "";
  flex-grow: 1;
  border-bottom: 1px solid #fff;
  margin: auto 0 auto 25px;
}
.form-container {
  margin: 2em calc(100%-10%);
}
@media (min-width: 768px) {
  .calculadora-title {
    margin-top: 5em;
  }
  .calculadora-title h2 {
    border-bottom: none;
    font-size: 32px;
    text-align: left;
  }
  .form-container {
    margin: 5em 8em;
  }
}

.form-inputs {
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1em;

  font-size: 1em;
}
@media (min-width: 768px) {
  .form-inputs {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-inputs_item {
  display: block;
}
.form-description {
  font-size: 16px;
}
.form-description a {
  color: #fff;
  text-decoration: underline;
}
.form-description a:hover {
  opacity: 0.8;
}

.calculadora p {
  margin: 1rem 0;
}
.calculadora__form {
  padding: 2rem 3rem;
}

input {
  display: block;
  min-height: 50px;
  width: 100%;
  font-size: 16px;
  line-height: 18px;
  padding: 10px 16px;
  border: 1px solid #fff;
  background-color: #000;
  color: #fff;
}
input[type="submit"] {
  background-color: #e2e2e2;
  margin: 1rem 0;
}
.result-overlay,
#spinnerBox {
  background-color: #fff;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (min-width: 768px) {
  .result-overlay,
  #spinnerBox {
    height: 100%;
  }
}
.result-overlay-spinner {
  background-color: #fff;
  z-index: 10;
}
@media (min-width: 768px) {
  .result-overlay-spinner {
    height: 100%;
  }
}

.result-overlay_close,
.result-overlay_pdf {
  width: 30px;
  height: 30px;
  margin: 0 0.5em;
}
.result-overlay_close:hover,
.result-overlay_pdf:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

.calculadora__results {
  display: none;
  padding: 1rem 0;
  text-align: left;
  color: #000;
}
.calculadora__results--icons {
  display: flex;
  justify-content: end;
}
.calculadora__results p {
  margin: auto 0;
}
.calculadora__results h4 {
  font-size: 0.9em;
  margin: auto 0;
  font-weight: 400;
  font-family: var(--secondary-font);
}
.calculadora__results__container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1em 0;
  width: 90%;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .calculadora__results__container {
    width: 75%;
  }
  .calculadora__results p {
    letter-spacing: 1.2px;
  }
  .calculadora__results h4 {
    font-size: 1em;
  }
}

.calculadora__neto--container,
.calculadora__coste--container {
  text-align: center;
  color: #000;
  font-size: 16px;
  box-shadow: 2px 2px 3px 2px rgba(0, 0, 0, 0.3);
}
.calculadora__inputs--description {
  padding: 1em 0;
  font-size: 12px;
}
@media (min-width: 768px) {
  .calculadora__inputs--description {
    padding: 2em 0;
    font-size: 14px;
  }
}

input[type="number"]::placeholder {
  color: rgba(255, 255, 255, 0.555);
  font-size: 1.1em;
}
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;
}
.calculadora__inputs {
  display: flex;
  justify-content: space-between;
  padding: 0.4em 0.6em;
}

/**** Instrucciones Calculadora ******/
.instructions-title {
  margin-top: 18px;
}
.instructions li {
  font-family: var(--secondary-font);
  font-size: 16px;
}
.instructions li a {
  color: #e2e2e2;
  text-decoration: underline;
}
.instructions li a:hover {
  opacity: 0.8;
}

/* Button Start */

input:focus {
  background-color: #000;
  color: #fff;
  outline: 0;
}
input:invalid {
  background-color: #000;
  border-color: var(--error-color);
}
input.btn {
  display: block;
  background-color: #eee;
  color: #000;
  border-style: solid;
  border: 0.1rem outset #eee;
  letter-spacing: 0.5px;
  margin: 2em auto;
  font-size: 1em;
  width: 10em;
  outline: none;
  line-height: 14px;
  transition: all 0.3s;
}
input.btn:hover {
  background: rgba(0, 0, 0, 0.85);
  border: 0.1rem outset #eee;
  color: #eee;
  cursor: pointer;
}
input[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/*   FOOTER   */
.footer {
  padding: 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer p {
  display: inline;
  color: #000;
  font-weight: bold;
  font-size: 1.6em;
}
.footer img {
  width: 12rem;
}

.copy-fd {
  font-size: 12px;
}
.copy-fd a {
  color: #e2e2e2;
  text-decoration: none;
}
.copy-fd a:hover {
  color: #eeb1b1;
  text-decoration: none;
  transition: all 0.2s ease-in;
}

/* MENSAJES DE ERROR */

.error {
  color: var(--error-color);
  display: block;
  font-size: 14px;
  font-weight: 700;
  padding: 0.4em;
  opacity: 0.9;

  margin: auto 0;
}
.error-text {
  font-family: var(--secondary-font);
  display: block;
  font-size: 14px;
  color: var(--error-color);
  margin: 0.4em 0;
}
.hide {
  display: none;
}

/* SPINNER */

.sk-circle {
  margin: 100px auto;
  width: 40px;
  height: 40px;
  position: relative;
}
.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.sk-circle .sk-child:before {
  content: "";
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: #333;
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}
.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}
.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}
.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}
.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}
.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}
.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}
.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}
.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}
.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}
.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}
.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}
.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}
.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}
.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}
.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}
.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleBounceDelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}

@keyframes sk-circleBounceDelay {
  0%,
  80%,
  100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}


/* PARTE IMPRIMIBLE */

@media print {
  body * {
    visibility: hidden;
  }
  .printable, .printable * {
    visibility: visible;
  }
  .printable {
    position: absolute;
    left: 0;
    top: 0;
  }
}