/*  
	Theme Name: 21Nova 
	Version: 1.0 2025
    Página: Services
	Author: hctr
*/

/* Presentación */

.servicesPrese {
  width: 100%;
  padding: 9rem 0;
}

.servicesPrese__container {
  width: 100%;
  padding: 0 7rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.servicesPrese h1 {
  max-width: 50rem;
  font-size: var(--size--24);
  font-weight: 400;
  text-wrap: inherit;
}

.servicesPrese p {
  max-width: 36rem;
  font-size: var(--size--14);
}

@media (max-width: 639px) {
  .servicesPrese {
    padding: 15rem 0;
  }
  .servicesPrese__container {
    padding: 0 15px;
  }
  .servicesPrese h1 {
    max-width: 100%;
    text-wrap: balance;
  }
  .servicesPrese p {
    max-width: 100%;
  }
  .servicesSubmenu__container picture {
    height: 100%;
  }
}

/* Services */

.servicesSubmenu {
  width: 100%;
}

.servicesSubmenu__container {
  width: 100%;
}

.servicesSubmenu__content {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-bottom: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.servicesSubmenu__content h2 {
  flex: 1;
  font-size: var(--size--24);
  font-weight: 500;
  color: var(--color--secondary);
  text-align: center;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
}

.servicesSubmenu__content ul {
  flex: 1;
  width: calc(100% - 6rem);
  background-color: var(--color--secondary);
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  counter-reset: servicesSubmenu;
}

.servicesSubmenu__content li {
  flex: 1 0.2 20%;
  border: 0.1rem solid #c4c4c4;
}

.servicesSubmenu__content li:first-child {
  background-color: var(--color--tertiary);
}

.servicesSubmenu__content li:hover {
  background-color: var(--color--tertiary);
}

.servicesSubmenu__content li h3 {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--color--primary);
  font-size: var(--size--24);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.servicesSubmenu__content li + li::before {
  counter-increment: servicesSubmenu;
  content: "(" counter(servicesSubmenu) ")";
  position: absolute;
  z-index: 1;
  bottom: 0.5rem;
  right: 1rem;
  color: var(--color--primary);
  font-size: var(--size--14);
  font-weight: 400;
}

.servicesSubmenu__content h3 {
  display: block;
  width: 100%;
  height: 100%;
  padding: 3.5rem 2.5rem 3rem 2.5rem;
  color: var(--color--primary);
  font-size: var(--size--24);
  font-weight: 400;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.1;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.servicesSubmenu__container picture {
  display: block;
  width: 100%;
  aspect-ratio: 1728 / 298;
  overflow: hidden;
}

.servicesSubmenu__container picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1023px) {
  .servicesSubmenu__container picture {
    aspect-ratio: 4 / 1;
  }
}
@media (max-width: 959px) {
  .servicesSubmenu__container picture {
    aspect-ratio: 4 / 1.5;
  }
}
@media (max-width: 799px) {
  .servicesSubmenu__container picture {
    aspect-ratio: 4 / 3;
  }
  .servicesSubmenu__content {
    justify-content: flex-end;
    padding: 0 15px 15px 15px;
  }
  .servicesSubmenu__content ul {
    width: 100%;
    flex-wrap: wrap;
  }
  .servicesSubmenu__content li {
    flex: 1 0 50%;
    min-height: 88px;
  }
  .servicesSubmenu__content li:first-child {
    min-width: 100%;
  }
  .servicesSubmenu__content li:first-child h3 {
    justify-content: center;
  }
  .servicesSubmenu__content li h3 {
    padding: 5rem 3rem 4.5rem 3rem;
  }
}
@media (max-width: 639px) {
  .servicesSubmenu__container picture {
    aspect-ratio: 440 / 527;
  }
  .servicesSubmenu__content li {
    min-height: 80px;
  }
  .servicesSubmenu__content h2 {
    font-size: 20px;
  }
  .servicesSubmenu__content li h3 {
    font-size: 16px;
    padding: 3rem 3rem 2.5rem 3rem;
  }
  .servicesSubmenu__content li:nth-child(2) h3 {
    max-width: 30px;
  }
  .servicesSubmenu__content li + li::before {
    font-size: 12px;
  }
}
@media (max-width: 479px) {
  .servicesSubmenu__container picture {
    aspect-ratio: 3 / 4;
  }
  .servicesSubmenu__content h2 {
    line-height: 1.2;
  }
}

/* Contenido */

.servicesContenido {
  width: 100%;
}

.servicesContenido__container {
  width: 100%;
  padding: 0 1rem 6rem 1rem;
  display: flex;
  flex-direction: column;
  counter-reset: contenido;
}

.servicesContenido__item {
  width: 100%;
  padding: 3rem 2.4rem;
  border-bottom: 0.1rem solid #c4c4c4;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 5%;
}

.servicesContenido__left {
  flex: 1 0.45 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  row-gap: 2rem;
}

.servicesContenido__left--full {
  flex: 1 1 100%;
  flex-direction: row;
  gap: 5%;
}

.servicesContenido__text {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5%;
}

.servicesContenido__left--full .servicesContenido__text {
  flex: 1 0.45 45%;
}

.servicesContenido__text h2 {
  flex: 1 0.55 55%;
  font-size: var(--size--24);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  padding-right: 3rem;
}

.servicesContenido__text h2::before {
  content: "+";
}

.servicesContenido__item.activo .servicesContenido__text h2::before {
  content: "-";
}

.servicesContenido__text h2::after {
  counter-increment: contenido;
  content: "(" counter(contenido) ")";
  position: absolute;
  bottom: 0.4rem;
  right: 0;
  font-size: var(--size--14);
}

.servicesContenido__text div {
  flex: 1 0.6 60%;
}

.servicesContenido__text p {
  display: inline;
  font-size: var(--size--14);
}

.servicesContenido__text p + p {
  display: none;
}

.servicesContenido__text.expandido p + p {
  display: inline;
}

.servicesContenido__text button {
  display: inline;
  vertical-align: baseline;
  appearance: none;
  border: none;
  background: transparent;
  color: var(--color--primary);
  font-size: var(--size--14);
  cursor: pointer;
}

.servicesContenido__labels {
  width: 100%;
  max-height: 0;
  overflow: hidden;
}

.servicesContenido__left--full .servicesContenido__labels {
  flex: 1 0.6 60%;
  max-width: 60%;
}

.servicesContenido__item.activo .servicesContenido__labels {
  max-height: 100vh;
}

.servicesContenido__labels ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  row-gap: 1rem;
}

.servicesContenido__labels li {
  padding: 1rem;
  border: 0.1rem solid #ccc;
  font-size: var(--size--14);
  line-height: 1.1;
}

.servicesContenido__labels--movil {
  display: none;
}

.servicesContenido__right {
  flex: 1 0.6 60%;
  max-height: 0;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3%;
}

.servicesContenido__item.activo .servicesContenido__right {
  max-height: 100vh;
}

.servicesContenido__image {
  flex: 1 0.4 40%;
  max-width: 40%;
}

.servicesContenido__image picture {
  display: block;
  height: auto;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 0.5rem;
}

.servicesContenido__image picture img {
  width: 100%;
  height: auto;
}

.servicesContenido__image h3 {
  font-size: var(--size--14);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.servicesContenido__image p {
  font-size: var(--size--14);
  font-weight: 400;
}

.servicesContenido__right a {
  font-size: var(--size--14);
  color: var(--color--primary);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.servicesContenido__right a:before {
  content: "";
  display: block;
  width: 2.3rem;
  height: 1rem;
  background-image: url(../img/arrow-black.svg);
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 959px) {
  .servicesContenido__item {
    padding: 5rem 2.4rem;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 6rem;
  }
  .servicesContenido__text {
    flex-direction: column;
    gap: 6rem;
  }
  .servicesContenido__text h2 {
    flex: 1;
    width: 100%;
  }
  .servicesContenido__left {
    row-gap: 4rem;
  }
  .servicesContenido__labels {
    display: none;
  }
  .servicesContenido__item.activo .servicesContenido__labels--movil {
    display: block;
  }
  .servicesContenido__labels li {
    font-size: 12px;
    padding: 2rem 1rem;
  }
  .servicesContenido__item.activo .servicesContenido__right {
    width: 100%;
  }
  .servicesContenido__right {
    display: none;
    flex: auto;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .servicesContenido__item.activo .servicesContenido__right {
    display: flex;
  }
  .servicesContenido__right::-webkit-scrollbar {
    display: none;
  }
  .servicesContenido__image {
    flex: auto;
    max-width: none;
    min-width: 248px;
  }
}
@media (max-width: 639px) {
  .servicesContenido__container {
    padding: 0 15px 6rem 15px;
  }
  .servicesContenido__item {
    padding: 7rem 4rem;
  }
}
