html {
  box-sizing: border-box;
  font-size: 62.5%;
  overflow-x: hidden;
}

@font-face {
  font-family: "Blacker-lighter";
  src: url("./src/fonts/Blacker-Display-Light-trial.ttf") format("truetype");
}
@font-face {
  font-family: "Blacker-bold";
  src: url("./src/fonts/Blacker-Display-Bold-trial.ttf") format("truetype");
}

*,
*:before,
*:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  list-style: none;
}
body {
  overflow-x: hidden;
  background-color: #f4f4f4;
}
.header {
  width: 100%;
  font-family: "Blacker-lighter", sans-serif;
  padding: 2.2rem 6rem 0 6.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-menu {
  display: none;
}
.header_logo {
  width: 19.8rem;
  height: 3.454rem;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 6.9rem;
}
.header-nav_item {
  color: #2d2d2d;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 100;
}
.header_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 16.5rem;
  margin-left: 1.3rem;
  height: 5.3rem;
  font-size: 2rem;
  font-family: "Blacker-bold", sans-serif;
  border-radius: 3px;
  color: #f4f4f4;
  text-decoration: none;
  background-color: #a32a39;
}

.main {
  padding: 6.2rem 6rem 21.4rem 6.2rem;
  position: relative;
}
.container {
  display: flex;
  gap: 2.6rem;
  margin-top: 6.1rem;
  justify-content: center;
}

.title {
  font-family: "Blacker-bold", sans-serif;
  font-size: 3.6rem;
  color: #231f20;
}
.subtitle {
  margin: 1rem 0 7rem;
  font-family: "Inter", sans-serif;
  font-size: 1.5rem;
  color: #2e263d;
}

.section_title {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.section_title img {
  width: 4.8rem;
  height: 4.8rem;
}
.section_title h3 {
  font-family: "Inter", sans-serif;
  margin: 0 0 2rem 2.45rem;
  font-size: 1.6rem;
  font-weight: normal;
  color: #000;
  opacity: 0.6;
}

.section_contain {
  width: 37.8rem;
  height: 47.8rem;
  padding: 3.5rem 3rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #2c2c2c;
  background: #fff;
}

.ami-input {
  position: relative;
  width: 100%;
  margin-top: -1.2rem;
  font-family: "Inter", sans-serif;
}
.ami-input-ic {
  width: inherit;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 2.4rem;
}
#decrease,
#increase {
  cursor: pointer;
}
.pjudy {
  margin-top: 6rem;
  font-size: 1.2rem;
}
.ami-input input {
  width: 100%;
  cursor: pointer;
}
.ami-bottom {
  width: 100%;
  display: flex;
  margin-top: 4rem;
  justify-content: space-between;
  font-size: 2rem;
  font-family: "Rubik", sans-serif;
  color: #8a8d97;
  font-weight: normal;
  align-items: center;
}
.current-percentage {
  font-size: 3.6rem;
  color: #2c2c2c;
}
.current-percentage span {
  font-size: 2rem;
}

.ami-input {
  position: relative;
  width: 318px;
}

.input-ami {
  width: 100%;
}

.ticks-container {
  display: flex;
  justify-content: space-between;
  position: absolute;
  bottom: -1.6rem;
  left: 15px;
  right: 0;
  width: 91%;
}
.tick:nth-child(1),
.tick:last-child {
  height: 1rem;
}
.tick {
  width: 1px;
  height: 0.6rem;
  background-color: #000;
}

[type="range"] {
  --range: calc(var(--max) - var(--min));
  --ratio: calc((var(--val) - var(--min)) / var(--range));
  --sx: calc(0.5 * 3em + var(--ratio) * (100% - 3em));
  margin: 0;
  padding: 0;
  width: 100%;
  background: transparent;
  font: 1em/1 arial, sans-serif;
}

[type="range"],
[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
}

[type="range"]::-webkit-slider-runnable-track {
  box-sizing: border-box;
  border: none;
  width: 100%;
  height: 1.2rem;
  background: #fff;
}

.js [type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(to right, #fff 0%, #7d2c36 100%) 0 / var(--sx)
    100% no-repeat #e6eaf4;
}

[type="range"]::-moz-range-track {
  box-sizing: border-box;
  border: none;
  width: 12.5em;
  height: 1.5rem;
  background: #fff;
}

[type="range"]::-ms-track {
  box-sizing: border-box;
  border: none;
  width: 12.5em;
  height: 1.5rem;
  background: #fff;
}

[type="range"]::-moz-range-progress {
  height: 1.5rem; /* Aumenta la altura del progreso */
  background: #95a;
}

[type="range"]::-ms-fill-lower {
  height: 1.5rem; /* Aumenta la altura del progreso */
  background: #95a;
}

[type="range"]::-webkit-slider-thumb {
  margin-top: -1rem;
  width: 3rem;
  height: 3rem;
  background-color: #a32a39;
  border: 1rem solid #f4f4f4;
  box-shadow: 0 0 1rem #aaa;
  border-radius: 50%;
}

[type="range"]::-moz-range-thumb {
  margin-top: -1rem;
  width: 3rem;
  height: 3rem;
  background-color: #a32a39;
  border: 1rem solid #f4f4f4;
  box-shadow: 0 0 1rem #aaa;
  border-radius: 50%;
}

[type="range"]::-ms-thumb {
  margin-top: -1rem;
  width: 3rem;
  height: 3rem;
  background-color: #a32a39;
  border: 1rem solid #f4f4f4;
  box-shadow: 0 0 1rem #aaa;
  border-radius: 50%;
}

[type="range"]::-ms-tooltip {
  display: none;
}

.utilities {
  width: 63.4rem;
  height: 47.8rem;
  padding: 3.3rem 3rem 5.1rem;
  background: #fff;
  font-family: "Rubik", sans-serif;
  border-radius: 8px;
  background-image: url("./src/Rectangle\ 9.svg");
}
.utilities-first {
  display: flex;
  padding-bottom: 3.5rem;
  justify-content: space-between;
  border-bottom: 2px dashed rgba(0, 0, 0, 0.23);
}
.utilities-first h4 {
  font-size: 1.6rem;
  font-family: "Inter", sans-serif;
}
.utilities-radio-container {
  display: flex;
  gap: 7rem;
}
.label {
  width: 6.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 100;
  gap: 1rem;
}
.label input {
  width: 2.8rem;
  height: 2.8rem;
}

.label input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  width: 2.7rem;
  height: 2.7rem;
  background-clip: content-box;
  background-color: #fff;
  border-radius: 50%;
}
.label input:checked {
  border: 6px solid #fff;
  background-color: #8c57ff;
}

.utilities-second {
  display: flex;
  justify-content: space-between;
}
.utilities-title {
  display: flex;
  justify-content: space-between;
  padding-right: 10.7rem;
}

.left {
  padding-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  font-family: "Inter", serif;
}
.left-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.6rem;
  color: #000;
}
.item-stove {
  width: 192%;
  border-top: 2px dashed rgba(0, 0, 0, 0.23);
  border-bottom: 2px dashed rgba(0, 0, 0, 0.23);
  padding: 15px 0;
}
.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 2rem;
  font-weight: 100;
}
.icon-container img {
  width: 3.3rem;
}

.slider-container {
  width: 300px;
}

.slider {
  width: 100%;
  height: 8px;
  background-color: #e6eaf4;
  cursor: pointer;
  background: linear-gradient(to right, #fff -10%, #000 50%, #fff 100%);
}
#hotWaterSlider,
#heatSlider {
  background: linear-gradient(
    to right,
    #fff 0,
    #000 30%,
    #fff 50%,
    #000 70%,
    #fff 100%
  );
}

.slider-labels {
  margin-top: 1.6rem;
  display: flex;
  font-family: "Rubik", serif;
  justify-content: space-between;
  cursor: pointer;
  font-size: 12px;
  color: #8a8d97;
  font-weight: normal;
}
.heat-pump-label,
.electric-label {
  position: relative;
}
.heat-pump-label::after,
.electric-label::after {
  content: "NEEP Approved Cold Climate Air Source Heat Pump Split Units";
  position: absolute;
  left: -15px;
  top: -525%;
  font-family: "Inter", sans-serif;
  width: 157px;
  height: 47px;
  background-color: #f3f3f3;
  border-radius: 10px;
  padding: 4px 16px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  font-size: 11px;
  text-align: center;
  color: #222;
  display: none;
  z-index: 100;
}
.electric-label::after {
  content: "I.E. PTAC non-NEEP Split Units";
  padding: 10px 16px;
  left: -35px;
}
.heat-pump-label::before,
.electric-label::before {
  content: "";
  position: absolute;
  top: -278%;
  left: 55%;
  transform: rotate(180deg);
  display: none;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 10px 10px 10px;
  border-color: transparent transparent #f3f3f3 transparent;
  z-index: 101;
}

.heat-pump-label:hover::after,
.heat-pump-label:hover::before,
.electric-label:hover::after,
.electric-label:hover::before {
  display: block;
}
.bg {
  background-image: url("./src/main-bg.svg");
  height: 17rem;
  position: absolute;
  bottom: -45px;
  left: 0;
  right: 0;
  z-index: -10;
}

.right {
  width: 16.6rem;
}
.right h4 {
  width: max-content;
  padding: 0 0 7px 7px;
  font-size: 1.6rem;
  border-bottom: 1px dashed #fff;
}
.right-contain {
  width: 17rem;
  height: 100%;
  display: flex;
  margin-top: 4.2rem;
  gap: 9rem;
  flex-direction: column;
}
.utilities-first .toggle-container {
  margin-top: 1rem;
}
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Arial, sans-serif;
}

.toggle-label {
  font-size: 16px;
  font-family: Helvetica, sans-serif;
  cursor: pointer;
}

.switch {
  position: relative;
  display: inline-block;
  width: 39.18px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-right {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000000;
  transition: 0.4s;
  border-radius: 34px;
}

.slider-right:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2.5px;
  background-color: #fff;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider-right:before {
  transform: translateX(15px);
}

.section-results {
  display: flex;
  flex-direction: column;
}
.table-container {
  width: 50.9rem;
  height: 47.8rem;
  background: #fff;
  padding: 20px 20px 62px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.rent-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  color: #000;
  background-color: transparent; /* Fondo transparente */
}

.rent-table thead th {
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  padding-bottom: 10px;
}

.rent-table tbody td {
  padding: 10px;
  font-size: 16px;
  text-align: left;
}

.rent-table tbody tr td:nth-child(2), /* Segunda columna */
.rent-table tbody tr td:nth-child(3), /* Tercera columna */
.rent-table tbody tr td:nth-child(4) {
  /* Cuarta columna */
  text-align: center; /* Centrar texto */
}
tr td:nth-child(1) {
  padding: 0;
  padding-left: 5px;
  font-weight: bold;
}

.download-btn {
  width: 30rem;
  height: 6.5rem;
  border: none;
  border-radius: 8px;
  font-size: 24px;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  background-color: #a32a39;
  color: #fff;
}

.footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 57.5rem;
  font-family: "Open Sans", sans-serif;
  padding: 9.81rem 5.7rem 5.913rem 6.2rem;
  margin-top: -1px;
  background-image: url("./src/footer-bg.svg");
  color: white;
}

.footer-content {
  display: flex;
  justify-content: space-between;
}

.footer-section {
  flex: 1;
}
.footer-section h4 {
  font-size: 2rem;
  font-weight: 600;
  font-family: "Blacker-bold", serif;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}
.company-logo {
  max-width: 37.9rem;
  height: 6.5rem;
}
.footer-section ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 100;
}

.footer-section ul li a {
  text-decoration: none;
  color: white;
}
.subscribe {
  max-width: 37.5rem;
  margin-top: 1rem;
}
.footer-section.subscribe form {
  display: flex;
  flex-direction: column;
  gap: 3.267rem;
}

.footer-section.subscribe input[type="email"] {
  width: 100%;
  height: 5.633rem;
  margin-top: 1.8rem;
  padding: 10px;
  border: 1px solid #ccc;
  background-color: rgba(255, 255, 255, 0.28);
  font-family: "Merriweather", serif;
  color: #fff;
  outline: none;
}
.footer-section.subscribe input[type="email"]::placeholder {
  color: #aaa;
}

.footer-section.subscribe button {
  width: 16.5rem;
  height: 5.3rem;
  border-radius: 3px;
  background-color: #a32a39;
  color: #f4f4f4;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  font-family: "Blacker-bold", serif;
}
.company-info {
  max-width: max-content;
  font-family: "Merriweather", serif;
  font-weight: 300;
  font-style: normal;
  margin-top: 1rem;
  font-size: 1.8rem;
}
.company-info ul {
  display: flex;
  flex-direction: column;
  margin-top: 2.332rem;
  gap: 1rem;
}
.get-in-touch {
  max-width: 19.5rem;
  margin-top: 1rem;
  font-family: "Merriweather", serif;
  font-weight: normal;
  font-size: 1.6rem;
}
.get-in-touch ul {
  margin-top: 3.434rem;
  display: flex;
  flex-direction: column;
  gap: 2.435rem;
}
.email {
  font-family: "Open Sans", sans-serif;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  height: 4.4rem;
}
.social-net img {
  height: 100%;
}
.social-net a:nth-child(2) {
  margin: 0 1.8rem;
}

.line img {
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
}

.copy {
  font-family: "Lato", sans-serif;
  font-size: 17px;
  color: #fff;
}

/* Estilo del contenedor del spinner */
.hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.18);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Por encima de todos los elementos */
}

.spinner-active {
  display: flex;
}
.spinner img {
  width: 30rem;
}

@media (max-width: 1400px) {
  body {
    overflow-x: hidden;
  }

  .container {
    flex-direction: column;
    gap: 5rem;
  }
  .main {
    padding: 6.2rem 1rem 21.4rem 1rem;
    position: relative;
  }
  .title,
  .subtitle {
    padding: 0 1rem;
  }
  .section_title img {
    margin-left: 1rem;
  }
  .section_contain {
    width: 100%;
    /* height: 20rem; */
    height: 100%;
  }
  .utilities {
    width: 100%;
    padding: 3.3rem 1.5rem 5.1rem;
  }
  .utilities-title {
    padding-right: 7rem;
  }
  .left {
    width: 50%;
    flex-direction: column;
  }
  .toggle-container {
    margin-top: 0 !important;
    margin-bottom: -1rem;
  }
  .toggle-label {
    font-size: 14px;
  }
  .slider-container {
    width: 32rem;
    z-index: 100;
  }
  .slider {
    margin-left: 2rem;
    width: calc(100% - 3rem);
  }
  .slider-labels {
    gap: 2.65rem;
    font-size: 15px;
  }
  .item-stove {
    width: 200%;
  }
  .right-contain,
  .right {
    margin-top: 0.5rem;
    width: max-content;
    gap: 10rem;
  }
  .table-container {
    width: 100%;
  }
  .footer-content {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
  }
  .company-logo a img {
    width: max-content;
  }
  .footer {
    height: 100%;
    padding: 2rem 0;
  }
  .footer-bottom {
    padding: 1rem 2.5rem;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
  }
  .social-net {
    display: flex;
    height: 4rem;
  }
  .get-in-touch {
    margin-top: 3rem;
  }
  .get-in-touch ul {
    margin-top: 1rem;
    gap: 1rem;
  }
  .company-info {
    margin-top: 1rem;
    font-size: 1.6rem;
  }
  .company-info ul {
    margin-top: 1rem;
  }
  .subscribe {
    margin: 2rem 0;
  }
  .footer-section.subscribe form {
    gap: 1.267rem;
  }
  .copy {
    font-size: 15px;
  }
}
@media (max-width: 1000px) {
  .header {
    position: relative;
    padding: 2.2rem 3rem 0 3rem;
  }
  .mobile-menu {
    display: block;
    background: transparent;
    border: none;
    outline: none;
    width: 4rem;
    height: 4rem;
  }
  .mobile-menu img {
    width: 100%;
    height: 100%;
  }
  .header-nav {
    display: flex;
    box-shadow: 0 0 15px #555;
    position: absolute;
    top: 6.5rem;
    right: -20rem;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
    background: #fff;
    z-index: 100;
    border-radius: 8px;
    transition: right ease-in 0.6s;
  }

  .header-nav--active {
    right: 3rem;
  }
  .header_btn {
    width: 10rem;
    margin-left: 0;
    height: 4rem;
    font-size: 1.8rem;
  }
}
@media (min-width: 555px) and (max-width: 720px) {
  .right-contain,
  .right {
    margin-top: 2.5rem;
  }
}
@media (min-width: 805px) and (max-width: 1400px) {
  .right-contain,
  .right {
    margin-top: 2.5rem;
  }
}
@media (min-width: 720px) and (max-width: 1600px) {
  .ami-input {
    position: relative;
    width: 100%;
    max-width: 700px;
  }
  .ticks-container {
    width: 93%;
  }
  .main {
    padding: 6.2rem 15rem 21.4rem 15rem;
  }
  .ami-bottom {
    max-width: 700px;
  }
  .footer-section {
    flex: none;
  }
}
@media (min-width: 805px) and (max-width: 900px) {
  .ticks-container {
    width: 94%;
  }
}
@media (min-width: 900px) and (max-width: 1000px) {
  .ticks-container {
    width: 95%;
  }
}
@media (min-width: 1000px) and (max-width: 1600px) {
  .main {
    padding: 6.2rem 20rem 21.4rem 20rem;
  }
  .ticks-container {
    width: 95.5%;
  }
  .utilities {
    width: 100%;
    padding: 3.3rem 2.5rem 5.1rem;
  }
  .slider-container {
    width: max-content;
  }
  .slider,
  .slider-labels {
    width: 20rem;
  }
  .right {
    margin-left: 2rem;
  }
  .table-container {
    width: 46rem;
  }
}
