body {
  font-family: 'MyriadPro', sans-serif;
}

/************/
/*** MENU ***/
/************/
header {
    width: 100%;
}

header,
header .content-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10px;
}

header .content-menu {
    width: min(1200px, 86%);
    margin: auto;
}

header .menu-options {
    display: flex;
    justify-content: space-between;
    width: 67%;
}

header .menu-options .menu-option {
    margin-left: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}


header .menu-mobile {
    display: none;
}

header .menu-mobile {
  display: none;
}

@media (max-width: 1024px) {
    header .menu-options {
        display: none;
    }
    
    header .menu-mobile {
        display: block;
        justify-self: end;
    }
}

.main-menu .content-menu .menu-mobile .menu-mobile-toggle > svg {
    fill: black;
}

header .menu-mobile .menu-mobile-content {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: end;

  background-color: #00000060;

  opacity: 0;
  pointer-events: none;

  transform: translateX(100%);
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

header .menu-mobile .menu-mobile-content.active {
  opacity: 1;
  pointer-events: all;

  transform: translateX(0);
  z-index: 5000;
}

header .menu-mobile .menu-mobile-content .menu {
  padding-left: 30px;
  background-color: #ffffff;
  width: 210px;
  z-index: 1;
}

header .menu-mobile .menu-mobile-content .menu>li {
  margin: 20px 0px;
}

/************/
/** BANNER **/
/************/

#hero {
  background-image: url(./assets/page-4/images/AdobeStock_130980451.jpeg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: calc(100vh - 0px);
  z-index: 2;

  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  z-index: 0;
}

#hero .hero-content {
  width: min(700px, 80%);
  margin-left: 80px;
  z-index: 2;
}

#hero .hero-content>* {
  color: white;
}

#hero .hero-content>h1 {
  font-size: 30px;
  margin: 20px 0;
}

#hero .hero-content>.description-hero {
  font-size: 15px;
  color: rgb(190, 190, 190);
}

#hero .hero-content>button {
  background-color: #e60814;
  padding: 14px 16px;
  border: none;
  margin-top: 80px;

  display: flex;
  gap: 6px;
}

@media(max-width: 1024px) {
  #hero .hero-content {
    margin-left: 0px;
    margin: auto;
  }
}

.margin-page {
  width: min(1440px, 90%);
  margin: 0 auto;
}

.section--about {
  padding: 60px 0px;
}

.section--about>.about-content {
  min-height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section--about>.about-content>p {
  margin: 8px 0px 3px;
  line-height: 1.8;
  font-size: 22px;
}

.design-box {
  width: 15px;
  height: 30px;
  background-color: red;
  clip-path: polygon(0 0, 100% 0, 100% 60%, 0% 100%);
}

.design-box.design-box-top {
  justify-self: flex-start;
  align-self: flex-start;
}

.design-box.design-box-bottom {
  justify-self: flex-end;
  align-self: flex-end;
  transform: rotate(180deg);
}

@media(max-width: 1000px) {
  #hero .hero-content {
    margin-left: 0px;
    margin: auto;
  }
  
  #hero .hero-content>h1 {
      font-size: clamp(20px, 11vw, 34px);
  }
}

/************************/
/* ===== TIMELINE ===== */
/************************/

.container-timeline {
  width: min(1440px, 92%);
  margin: auto;
}

.container-timeline> :is(h2, p) {
  text-align: center;
}

.container-timeline>h2 {
  font-size: 35px;
  margin: 30px
}

.container-timeline>.description {
  color: red;
  line-height: 20px;
}

.container-timeline>.description>b {
  font-style: italic;
}

.timeline.desktop {
  display: flex;
  flex-flow: column nowrap;
  width: 94%;
  margin: 40px auto;
}

.timeline.desktop>img {
  width: 100%;
}

.timeline.mobile {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 40px 0px;
}

.timeline.mobile .info-timeline {
  width: min(300px, 92%);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0px 0px 10px -5px black;
  padding: 20px;
  transition: all .4s ease;
  position: relative;
}

.timeline.mobile .info-timeline > img {
    width: 60px;
    height: 60px;
    margin: 0px auto 8px;
}

.timeline.mobile .info-timeline::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(30px 0, 100% 0, 100% 100%, 0 100%, 0 30px);
  z-index: -1;
  background-color: white;
}

.timeline.mobile .info-timeline:hover {
  transform: translateY(-10px);
  background-color: #e60814;
}

.timeline.mobile .info-timeline>h3 {
  margin: 0px auto 8px;
  font-weight: 700;
  padding: 8px;
  transition: all .4s ease;
  width: fit-content;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.timeline.mobile .info-timeline:hover>h3 {
  background-color: red;
  color: white
}

.timeline-progress {
    display: none;
}

.timeline-progress {
  width: 94%;
  height: 5px;
  margin: -15px auto 40px;
  background-color: #e5e5e5;
  border-radius: 10px;
  overflow: hidden;
}

.timeline-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #e60814;
  border-radius: inherit;
  transition: width 0.1s linear;
}




@media(max-width: 768px) {
  .timeline.desktop {
    display: none;
  }

  .timeline.mobile {
    display: grid;
    grid-template-columns: repeat(5, 290px);
    grid-template-rows: 300px;
    overflow-x: scroll;
    padding: 0px 5px;
  }
  
  .timeline.mobile::-webkit-scrollbar {
      display: none;
      visibility: hidden;
  }
  
  .timeline.mobile .info-timeline {
      height: 280px;
  }
 

  .timeline-progress {
    display: block;
  }
}

/**********************************/
/* ===== ORGANIZATIONAL TEAM ===== */
/**********************************/

.organizational-team {
  background-color: #e60814;
  width: clamp(200px, 90%, 1440px);
  margin: auto;
  min-height: 400px;
  position: relative;
  color: white;

  display: grid;
grid-template-columns: 150px 280px 1fr;
  align-items: center;
  min-height: 650px;
  padding: 60px 0px 0px;
}

.organizational-team h2 {
  font-size: clamp(20px, 4vw, 50px);
  font-style: italic;
  font-weight: 800;
  line-height: .9;
}

.organizational-team .description {
  grid-column: 1/4;
  grid-row: 1/3;
  width: 72%;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organizational-team .description>p {
  font-size: 17px;
}

.organizational-team .vertical-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 70px;
  font-weight: 800;
  opacity: .12;
  text-transform: uppercase;
  line-height: 60px;
  color: #320000
}

.organizational-team .general-management-points {
  display: flex;
  justify-self: center;
}

.organizational-team .general-management-points .points {
  width: calc(100% - 120px);
  display: flex;
  justify-content: space-between;
  flex-direction: column;

}

.organizational-team .general-management-points .points .item {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.organizational-team .general-management-points .points .item>h3 {
  width: 130px;
  font-size: 22px;
}

.organizational-team .general-management-points .points .item>p {
    font-size: 22px;
    color: #ffffffbd;
}

.organizational-team .general-management-points .points.mobile {
  display: none;
  justify-content: space-between;
}

.organizational-team .general-management-points .points.mobile .director {
    display: none;
}

.organizational-team .general-management-points .points.mobile .item {
  text-align: center;
}

@media(max-width: 1024px) {
  .organizational-team {
    grid-template-columns: 90px 35% 1fr;
  }
  
  .shape-general-management {
    display: none;
  }
  
  .organizational-team > .director {
      display: none;
  }

  .organizational-team .general-management-points {
    justify-self: center;
  }

  .organizational-team .general-management-points .points {
    flex-direction: row;
  }
  
  .organizational-team .general-management-points .points .item {
    flex-direction: column;
  }

  .organizational-team .general-management-points .points.mobile {
    flex-wrap: wrap;
    gap: 30px;
  }
  
  .organizational-team .general-management-points .points.mobile .director {
    display: block;
  }

  .organizational-team .general-management-points .points.desktop {
    display: none;
  }

  .organizational-team .general-management-points .points.mobile {
    display: flex;
  }
}

/**********************************/
/* ===== EXPERTIS ===== */
/**********************************/

.expertis {
  width: min(1440px, 98%);
  margin: 40px auto;
}

.expertis h2 {
  text-align: center;
  margin: 100px 0px;
}

.expertis h2,
.expertis h2>span {
  padding: 12px 16px;
  font-size: clamp(20px, 10vw, 60px);
  font-weight: 700;
  color: #e60814;
  line-height: 170%;
}

.expertis h2>span {
  border: 2px solid #e60814;
  border-radius: 60px;
  color: #161616;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: clamp(80px, 25.8vw, 380px);
  gap: 10px;
  margin: 30px 0px;
  padding: 20px
}

/* Clase auxiliar para ocultar la imagen (opacidad 0) */
.gallery-grid .photo>img.hidden {
  opacity: 0;
}

/* Transición suave para todas las imágenes de la galería */
.gallery-grid .photo>img {
  object-fit: fill;
  width: 100%;
  height: 100%;
  transition: opacity 0.4s ease;
  opacity: 1;
}

.gallery-grid .photo.photo-1 {
  position: relative;
}

.gallery-grid .photo:is(.photo-2,
  .photo-3,
  .photo-4,
  .photo-5,
  .photo-6,
  .photo-7,
  .photo-8) {
  position: relative;
}

.gallery-grid :is(.photo.photo-1, .photo.photo-6, .photo.photo-8) {
  grid-column: 1/3;
}

.gallery-grid .photo.photo-7 {
  grid-row: 3/5;
  grid-column: 3/4;
}

/************************************/
/**************** CTA ***************/
/************************************/
.cta {
  background: url(./assets/banner-cta.webp);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  min-height: 400px;
  margin: 80px 0px;
  display: grid;
  position: relative;
  z-index: 3;
}

.cta::after {
  content: '';
  background: linear-gradient(90deg, rgba(230, 8, 20, .5) 0%, transparent 100%);
  position: absolute;
  inset: 0;
  z-index: -1;
}

.cta .container-cta {
  width: min(1440px, 90%);
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
}

.cta .container-cta>* {
  color: white;
}

.cta .container-cta>h2 {
  font-size: 30px;
}

.cta .container-cta>p {
  width: 50%;
}

.cta .container-cta>button {
  background-color: #e60814;
  padding: 14px 16px;
  border: none;
  margin-top: 20px;
  display: flex;
  gap: 6px;
  height: 40px;
  align-items: center;
  color: white;
  width: min(230PX, 70%);
  align-self: flex-end;
}

@media(max-width: 500px) {
    .cta .container-cta>p {
        width: 100%;
    }
    
    .cta .container-cta {
        padding: 20px;
    }
    
    .cta .container-cta>button {
        width: 100%;
        height: 42px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

/****************************************/
/***************** FOOTER ***************/
/****************************************/
footer {
  display: grid;
  place-items: center;
}

footer .content-footer {
  width: min(1100px, 100%);
  margin: auto;
  display: grid;
  justify-content: space-between;
  grid-template-columns: 1fr 1fr;
}

footer .content-footer :is(.container-image, .options) {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

footer .content-footer .container-image {
  gap: 0px;
}

footer .content-footer .container-image span {
  margin: auto;
  margin-top: -8px;
  font-size: clamp(12px, 3vw, 18px);
}

footer .note-footer {
  margin: 40px 0px;
}

footer .line {
  width: 80%;
  height: 1px;
  background: #e60814;
  margin: 40px 0px;
}

@media(max-width: 1024px) {
  footer .content-footer .container-image {
    width: 90%;
    margin: auto
  }
  
  footer .content-footer .container-image span {
    width: 80%;
    margin-top: 10px;
    text-align: center;
  }

  footer .note-footer {
    width: 80%;
    font-size: clamp(18px, 4vw, 24px);
  }
  
  footer .note-footer {
    margin: 0px 0px 30px 0px;
  }
}