.main {
  min-height: 100vh;
  width: 100%;
}

@media (max-width: 575.98px) {
  .main {
    width: stretch;
  }
}

/* -- Header and menus --*/
.c-header__wrapper {
  left: 0;
  top: 0;
  width: 100%;
  z-index: 1000;
  position: sticky;
}

@media (max-width: 575.98px) {
  .c-header__wrapper {
    top: 0;
  }
}

.c-header__wrapper::before {
  content: "";
  display: none;
  width: 100%;
  height: 4.2rem;
  background-color: black;
}

@media (max-width: 575.98px) {
  .c-header__wrapper::before {
    display: none;
  }
}

.c-header__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 6.5rem;
  background-color: #eede41;
}
@media (max-width: 575.98px) {
  .c-header__menu {
    margin-top: 3rem;
  }
}

.c-header__menu ul {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  list-style: none;
}

.c-header__menu .c-desplegable__content {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto; 
  background-color: #dbcd44;   
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  height: initial;
  justify-content: left;
}

.c-header__menu .c-desplegable__content li a {
  font-size: 1.6rem;
  padding: 1rem;
  font-weight: 300;
}

.c-header__menu .c-desplegable__content li a:hover {
  background-color: #fff;
}

.c-has-dropdown .c-desplegable__content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.c-has-dropdown:hover .c-desplegable__content,
.c-has-dropdown:focus-within .c-desplegable__content {
  visibility: visible;
  opacity: 1;
}

.c-header__menu--link {
  color: #3b3b3b;
  font-family: "Roboto", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  min-width: 20rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0.5rem;
}

.c-header__menu--link.c-desplegable {
  background: url('https://img2.rtve.es/aplicaciones/infografias/rtve_2026/noticias/vivienda-tracker/header-tracker-vivienda/img/rtve-icon_point_down.svg?=v4') no-repeat;
  background-position-x: calc(100% - 1.5rem);
  background-position-y: center;
  background-size: 2.5rem;    
}

.c-header__menu--link:hover{
  background-color: #ffffff;
}

/* -- Section 2 --*/
.c-content__data {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 4rem 2rem;
}

.c-content__data--paragraph {
  font-family: "Noto Serif", serif;
  color: #fafafa;
  font-size: 2rem;
  line-height: 44px;
  width: 100%;
  max-width: 83rem;
  text-align: center;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .c-block__sumary {
    background-size: cover;
  }
}

@media (max-width: 991.98px) {
  .c-header__menu ul {
    flex-wrap: wrap;
  }

  .c-header__menu--link {
    min-width: auto;
    padding: 0 1rem;
    font-size: 1.8rem;
  }

  .c-header__menu ul {
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-wrap: nowrap;
    justify-content: unset;
    height: auto;
    align-items: unset;
  }

  .c-header__menu ul li{
    width: auto;
    flex-shrink: 0;
  }

  .c-header__menu--link.c-desplegable {
    background-position-x: 100%;
    background-position-y: 0.9rem;
    background-size: 2.5rem;
    padding-right: 3rem;
  }

  .c-has-dropdown .c-desplegable__content {
    display: flex;
    flex-wrap: nowrap;
    justify-content: left;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
    height: 6rem;
  }

  .c-block__sumary {
    padding: 0 2rem;
    background-size: cover;
  }

  .c-block__sumary--head {
    margin-top: 4rem;
    max-width: 32rem;
  }

  .c-block__sumary--head-title {
    font-family: "Noto Serif", serif;
    font-size: 2rem;
    line-height: 3rem;
  }
}

@media (max-width: 575.98px) {
  .c-block__sumary {
    margin-top: 0;
    height: calc(100dvh - 11.5rem);
    width: 100%;
  }

  .c-block__sumary--head-logo {
    max-width: 70%;
  }

  .c-block__sumary--head-title {
    font-family: "Noto Serif", serif;
    font-size: 1.8rem;
    line-height: 2.6rem;
    margin-top: 2rem;
  }

  .c-block__sumary--head-icon {
    right: 1.5rem;
    top: 1.5rem;
    max-width: 2.4rem;
  }

  .c-content__data--paragraph {
    font-family: "Noto Serif", serif;
    font-size: 1.7rem;
    line-height: 3rem;
    padding: 0;
    margin-bottom: 4rem;
  }

  .c-content__data--form {
    flex-direction: column;
    gap: 2.5rem;
    margin: 3rem 0 6rem 0;
  }

  .form-group {
    min-width: 100%;
  }

  .form-toggle-group {
    width: 100%;
  }

  .btn-resultados {
    width: 100%;
  }

  #dataContent {
    scroll-margin-top: 6.4rem;
  }
}

@media (max-width: 390px) {
  .c-content__data--paragraph {
      font-size: 1.5rem;
      line-height: 2.6rem;
  }
  .c-block__sumary--head-logo {
    max-width: 50%;
  }
}

@media (max-height: 770px) and (hover: hover) and (pointer: fine) {
  .c-block__sumary--head-logo {
    max-width: 40%;
  }
  .c-block__sumary--head {
    top: 1rem;
  }
}

@media (max-height: 610px) and (hover: hover) and (pointer: fine) {
  .c-block__sumary--head-logo {
    max-width: 30%;
  }
  .c-block__sumary--head-title {
    font-size: 1.9rem;
  }
}