/* Variables
  **********************************/
@import url("variables.css");
/* ******************************* */

#search-block-form {
  display: block;
  position: relative;
}

#search-block-form .form-search {
  width: 100%;
  background: rgba(235, 235, 235, 0.2);
  border: 1px solid #b1b1b2;
  border-radius: 3px;
  padding: 0 0.5rem;
  height: 35px;
  min-width: 220px;
}

#search-block-form .form-search::placeholder {
  font-family: var(--cormorant);
  color: #7a7a7a;
  font-size: 14px;
}

#search-block-form .form-actions {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9;
  width: 36px;
  aspect-ratio: 1/1;
  display: flex;
}

#search-block-form .form-actions .button {
  width: 100%;
  height: 100%;
  background: url("../../../../sites/default/files/inline-images/icon-search.svg") transparent center / 20px auto no-repeat;
  font-size: 0 !important;
}

#search-form {
  padding: 1.5rem .5rem;
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#search-form .form-wrapper {
  width: 100%;
  display: grid;
  grid-template-columns: 9fr 3fr;
  align-items: end;
  grid-gap: 1rem;
}

#search-form .form-wrapper .form-item {
  display: flex;
  flex-direction: column;
}

#search-form .form-search {
  width: 100%;
  background: rgba(235, 235, 235, 0.2);
  border: 1px solid #b1b1b2;
  border-radius: 3px;
  padding: 0 0.5rem;
  height: 35px;
  min-width: 220px;
  font-family: var(--cormorant);
  color: var(--gris);
  font-size: 18px;
}

.search-help-link {
  color: var(--azul);
  font-size: 18px;
}

.search-help-link:hover {
  color: var(--gris);
}

/* Header
***********************/

/* .region-header {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  padding: 0 var(--pm-blend-block) 1rem;
} */

.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  gap: 1rem;
  padding: var(--pm-blend-block) 0;
  width: var(--width-base);
  max-width: var(--width-reduced);
  margin: auto;
}

.region-top-var {
  width: var(--width-base);
  max-width: var(--width-reduced);
  margin: auto;
}

#block-historia-site-branding {
  height: 70px;
  aspect-ratio: 800/139;
}

#block-historia-site-branding div {
  width: 100%;
  height: 100%;
}

#block-historia-site-branding .block-content a {
  display: block;
  inset: 0;
  overflow: hidden;
}

#block-historia-site-branding .block-content a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
}

#block-historia-main-menu {
  display: flex;
  justify-content: center;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 0.6rem 0;
}

.site-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.site-title {
  font-size: 48px;
}

.site-title a {
  color: var(--gris);
}

.site-description {
  font-size: 22px;
}

#block-historia-cenefa {
  margin-bottom: 7rem;
}

#block-historia-cenefa .block-content>div {
  overflow: hidden;
  height: 660px;
  position: relative;
}

#block-historia-cenefa .block-content>div::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: var(--shadow);
}

#block-historia-cenefa .block-content>div img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  display: block;
}

.banner-content {
  position: absolute;
  z-index: 9;
  width: 90%;
  max-width: 770px;
  bottom: 7rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.banner-title {
  font-size: calc(var(--text-general) * 2.5);
  line-height: 1em;
  font-weight: 800;
  font-family: var(--garamond);
  margin: 0;
  color: white;
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: -0.02em;
}

.banner-summary {
  margin-top: 1rem;
}

.banner-summary p {
  color: white;
  font-weight: 700;
  line-height: 1.4em;
}

/* Featured top
***********************/

#block-historia-presentacion,
#block-historia-novedades {
  width: var(--width-base);
  max-width: 860px;
  margin: auto;
}

#block-historia-presentacion p {
  margin-bottom: 2rem;
  line-height: 2.3rem;
  text-align: justify;
}

#block-historia-presentacion p a {
  color: var(--azul);
}

#block-historia-presentacion p a:hover {
  color: black;
}

/* Main content
***********************/

#block-historia-novedades {
  width: var(--width-base);
  max-width: var(--width-reduced);
  margin-top: 7rem;
}

/* Footer
***********************/

footer {
  border-top: 1px solid #ebebeb;
  padding: 3rem 0;
  margin-top: 100px;
}

.region-footer-first {
  width: var(--width-base);
  max-width: var(--width-reduced);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#block-historia-copyright p {
  font-size: var(--text-general-small);
  font-weight: 600;
  line-height: 1.3rem;
}

#block-historia-copyright p a {
  color: var(--azul);
}

#block-historia-copyright p a:hover {
  color: black;
}

#block-nav-footer ul:not(.contextual-links) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

#block-nav-footer ul:not(.contextual-links) li {
  font-size: var(--text-general-small);
  text-transform: uppercase;
}

#block-nav-footer ul:not(.contextual-links) li a:hover {
  color: var(--azul);
}

/**********************************************
Responsive
**********************************************/

@media all and (max-width: 1024px) {
  #block-historia-site-branding {
    height: 50px;
  }

  .site-title-wrap {
    gap: 0.5rem;
  }

  .site-title {
    font-size: 36px;
  }

  .site-description {
    font-size: 16px;
  }
}

@media all and (max-width: 780px) {
  .region-header {
    flex-wrap: wrap;
    padding: 100px 0 var(--pm-blend-block) 0;
  }

  #block-historia-site-branding {
    height: 40px;
  }

  .search-block-form {
    width: 100%;
  }

  .site-title {
    font-size: 24px;
  }

  .site-title-wrap {
    gap: 0;
  }

  .site-description {
    font-size: 11px;
  }

  .region-primary-menu {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
  }

  #block-historia-main-menu {
    justify-content: flex-end;
    padding: .6rem 1.5rem;
  }

  .region-footer-first {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 2rem;
  }

  #block-nav-footer {
    order: 1;
  }

  #block-historia-copyright {
    order: 2;
  }

  #block-nav-footer ul:not(.contextual-links) li,
  #block-historia-copyright p {
    font-size: calc(var(--text-general) - .2rem);
  }
}