/* Custom POST */
article.sectionPost {
  position: relative;
}

.featureSection.featureBefore::before {
  content: ' ';
  /*/ padding-top: 56.26%;*/
  padding-top: 75.26%;
  display: block;
}

.featureSection img {
  width: 100% !important;
  height: auto !important;
}

.mask {
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7371323529411764) 0%, rgba(0, 0, 0, 0) 40%);
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0px;
  left: 0px;
}

.contentSection {
  bottom: 50px;
  position: absolute;
  width: 100%;
  font-size: 28px;
}

@media screen and (max-width: 768px) {
  .contentSection {
    bottom: 20px;
  }
}

.contentSection-wrapper {
  max-width: 1170px;
  margin: auto;
  width: 90%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contentSection-wrapper a {
  color: white !important;
}

.fluidMedia {
  position: relative;
  padding-bottom: 56.25%;
  /* proportion value to aspect ratio 16:9 (9 / 16 = 0.5625 or 56.25%) */
  height: 0;
  overflow: hidden;
}

.fluidMedia iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*CSS para darle más espacio a los vídeos, si quieren otro formato...borrar*/
@media screen and (max-width: 680px) {
  article.sectionPost {
    position: relative;
    height: 50vh;
    overflow: hidden;
  }

  .contentSection {
    width: 100%;
    position: absolute;
    bottom: 20px;
    left: 0px;
  }

  .contentSection-wrapper {
    font-size: 0.8em;
  }

  .fluidMedia {
    height: 100%;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
  }

  .fluidMedia .fluid-width-video-wrapper {
    min-width: 730px;
    min-height: 50vh;
    padding-top: 56.25vw;
  }
}

/* ------------  */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/*  HERO CSS */
section.hero-sectionPost {
  position: relative;
  /* height: calc(100vh - 70px); */
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hero-contentSection {
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  height: 100%;
}

.hero-contentSection-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding: 50px 30px;
  max-width: 1170px;
  margin: auto;
}

.hero-contentSection-wrapper * {
  color: white;
}

.hero-display-h2 {
  font-size: clamp(24px, 6vw, 80px) !important;
  display: block;
  width: 100%;
  line-height: 1.1 !important;
  font-weight: 500;
}

.hero-description {
  font-size: clamp(20px, 4vw, 35px) !important;
  margin-bottom: 80px;
  width: 100%;
  line-height: 1.1 !important;
}

.hero-container-button a {
  border: 1px solid white;
  padding: 10px 15px;
  margin-bottom: 50px;
  display: block;
}

.hero-mask {
  background: rgb(0, 0, 0);
  background: linear-gradient(0deg,
      rgba(0, 0, 0, 0.7371323529411764) 0%,
      rgba(0, 0, 0, 0) 60%);
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0px;
  left: 0px;
}

.hero-fluidMedia iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16/9;
}

.hero-fluidMedia .fluid-width-video-wrapper {
  padding-bottom: 56.25vw;
  min-width: 1920px;
  min-height: 100vh;
}

.hero-container-icon {
  margin-bottom: 60px;
}

.hero-container-button a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
}

.hero-container-button:hover a {
  background: white;
  color: #e73536;
}

@media screen and (min-width: 1200px) {
  .hero-mask {
    border-left: 80px solid white;
    border-bottom: 80px solid white;
    border-right: 80px solid white;
    transition: 0.3s ease all;
  }

  .hero-mask.scroll {
    border-left: 0px solid white;
    border-bottom: 0px solid white;
    border-right: 0px solid white;
    transition: 0.3s ease all;
  }
}

@media screen and (max-width: 960px) {
  section.hero-sectionPost {
    height: 100vh;
    aspect-ratio: auto;
  }

  .hero-fluidMedia iframe {
    aspect-ratio: auto;
    min-width: 1920px;
    height: 100vh;
  }
}

@media screen and (max-width: 680px) {
  .hero-contentSection {
    text-align: center;
  }

  /* .hero-description {
      display: none;
    } */
}

/*Links*/
a.wp-block-button__link.wp-element-button::after,
.wp-block-post-excerpt__more-text a::after {
  content: ' ⟶ ';
  font-size: calc(100% * 1.5);
  transition: .4s ease all;
  margin-left: 15px;
  color: inherit;
  display: inline;
  cursor: pointer;
}

a.wp-block-button__link.wp-element-button:hover::after,
.wp-block-post-excerpt__more-text:hover a::after {
  padding-left: 1.5rem;
}

.wp-block-post-excerpt__more-text {
  font-size: 1.4rem;
  color: var(--wp--preset--color--negro-munta);
}

.wp-block-post-excerpt__more-text a {
  text-decoration: none;
}

a.wp-block-button__link.wp-element-button.no-arrow::after {
  content: '';
  margin-left: 0px;
}

.wp-block-button::after {
  content: ' ';
  height: 4px;
  width: 100%;
  background: var(--wp--preset--color--negro-munta);
  display: block;
  -webkit-clip-path: polygon(0 1%, 0 0, 0 100%, 0% 100%);
  clip-path: polygon(0 1%, 0 0, 0 100%, 0% 100%);
  transition: .4s ease all;
}

.wp-block-button:hover::after {
  -webkit-clip-path: polygon(0 1%, 100% 0, 100% 100%, 0% 100%);
  clip-path: polygon(0 1%, 100% 0, 100% 100%, 0% 100%);
}

/*Barra de progreso*/
#progressBarPage {
  position: fixed;
  bottom: 0px;
  left: 0px;
  height: 5px;
  background-color: var(--wp--preset--color--primary);
}

#scrollTopButton {
  position: fixed;
  bottom: 100px;
  right: 50px;
  background-color: var(--wp--preset--color--primary);
  padding: .2rem;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 999;
}

#scrollTopButton.show {
  opacity: 1;
}

/*Menu navegación responsive*/
@media screen and (max-width:960px) {
  .wp-block-navigation__responsive-container-content {
    gap: 0px !important;
  }

  .wp-block-navigation__responsive-container-content ul {
    width: 100%;
    gap: 0px !important;
  }

  .wp-block-navigation__responsive-container-content ul li,
  .wp-block-navigation__responsive-container-content ul li a {
    width: 100%;
    margin: 0px !important;
  }

  .wp-block-navigation__responsive-container-content ul li a {
    text-align: center;
    font-size: 1.2rem;
    color: var(--wp--preset--color--primary) !important;
    padding: 1.3rem !important;
  }

  .wp-block-navigation__responsive-container-content ul li {
    border-bottom: 1px solid var(--wp--preset--color--primary);
  }

  .wp-block-navigation__responsive-container-content ul li ul {
    display: none !important;
  }
}

/* neutralize and configure the wp default 600px */
@media (min-width: 960px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: auto !important;
    background-color: inherit !important;
  }

  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) .wp-block-navigation__responsive-container-close {
    display: none !important;
  }

  .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container.wp-block-navigation__submenu-container {
    left: 0 !important;
  }

  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
  }

  .wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: flex !important;
  }
}

.wp-block-post-title a {
  text-decoration: none;
  font-weight: 400;
}

.post-type-post p {
  margin-bottom: 50px;
}

header.wp-block-template-part {
  top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px));
  position: -webkit-sticky;
  position: sticky;
  z-index: 10;
}

/*ARCHIVE PROJECTS*/
.custom-post-grid .wp-block-post-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.custom-post-grid .wp-block-post-title a::after {
  content: ' ⟶ ';
  /* font-size: calc(100% * 1.5); */
  transition: .4s ease all;
  margin-right: 20px;
  color: inherit;
  display: block;
  cursor: pointer;
  aspect-ratio: 1/1;
  border: 2px solid white;
  padding: 5px;
  line-height: 1;
  border-radius: 50%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.custom-post-grid .wp-block-post-title a:hover::after {
  transform: translateX(20px);
}

#projects h2.wp-block-post-title {
  display: flex;
}

#projects h2.wp-block-post-title::after {
  content: ' ⟶ ';
  font-size: calc(100% * 1.5);
  transition: .4s ease all;
  margin-left: 15px;
  color: inherit;
  display: inline;
  cursor: pointer;
  vertical-align: top;
  line-height: .8;
}

.has-primary-background-color a,
.has-primary-background-color a:hover {
  color: white !important;
}

.wp-block-heading {
  letter-spacing: 2px;
}

footer.wp-block-template-part {
  margin-top: 0px;
}

.nav-cat {
  list-style: none;
  padding: 0px;
  margin: 0px;
  display: flex;
  gap: 15px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="tel"],
select,
textarea {
  font-size: 1.1rem;
  padding: 10px 5px;
  border: 0px;
  border-bottom: 1px solid;
  margin-bottom: 10px;
  width: 100%;
  transition: .3s ease all;
  outline: none;
  font-family: inherit;
}

textarea {
  field-sizing: content;
  line-height: 1.5;
}

input[type="submit"],
button[type="submit"] {
  background: transparent;
  border: 1px solid var(--wp--preset--color--munta--gray);
  font-size: 1.3rem;
  font-family: inherit;
  transition: .4s ease all;
  cursor: pointer;
  padding: 15px 25px;
  border: 2px solid transparent;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: var(--wp--preset--color--primary);
}

.slider-munta {
  aspect-ratio: 1/1;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.slider-munta a {
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7203256302521008) 9%, rgba(0, 0, 0, 0) 100%);
}

.slider-munta a .arrow {
  border: 1px solid white;
  line-height: 1;
  aspect-ratio: 1/1;
  padding: 5px;
  border-radius: 100%;
  transition: .3s ease all;
}

.slider-munta a:hover .arrow {
  margin-left: 10px;
}

.swiperPost .swiper-slide {
  overflow: hidden;
  border-radius: 30px;
}

/* BEST CASES */
.bestcases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-rows: auto;
  gap: 0;
  grid-template-areas:
    "a a a"
    "b c c"
    "d d d"
    "e e f";
}

.bestcases-grid li:nth-child(1) {
  grid-area: a;
}

.bestcases-grid li:nth-child(2) {
  grid-area: b;
}

.bestcases-grid li:nth-child(3) {
  grid-area: c;
}

.bestcases-grid li:nth-child(4) {
  grid-area: d;
}

.bestcases-grid li:nth-child(5) {
  grid-area: e;
}

.bestcases-grid li:nth-child(6) {
  grid-area: f;
}

.bestcases-grid li {
  display: block;
  /* Asegura que cada <li> ocupe todo el espacio de su área de grid */
  /* Añade cualquier otro estilo visual que necesites */
}

.bestcases-grid .wp-block-post-title a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.bestcases-grid .wp-block-post-title a::after {
  content: ' ⟶ ';
  /* font-size: calc(100% * 1.5); */
  transition: .4s ease all;
  margin-right: 20px;
  color: inherit;
  display: block;
  cursor: pointer;
  aspect-ratio: 1/1;
  border: 2px solid white;
  padding: 5px;
  line-height: 1;
  border-radius: 50%;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}

.bestcases-grid .wp-block-post-title a:hover::after {
  margin-right: 0px !important;
}

/* GRID VIDEOS */
#projects figure.wp-block-post-featured-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

#projects .rsfv-has-video video.rsfv-video,
#projects .rsfv-has-video iframe.rsfv-video {
  width: auto !important;
  max-width: 200% !important;
  height: 100% !important;
  margin: 0px;
  padding: 0px;
  min-height: 500px;
}

li.type-bestcases {
  cursor: pointer;
}

.wp-site-blocks li.wp-block-post.rsfv-has-video .wp-block-cover div[style="clear:both"] video {
  -o-object-fit: cover !important;
  object-fit: cover !important;
}
