/*=================================*/
/* PILARES ESTRATÉGICOS */
/*=================================*/
.strategic-pillars-section {
  background-color: var(--color-white);
  overflow: hidden;
}

.strategic-pillars-container {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 3% 3% 3% 3%;
  align-items: center;
}

.strategic-pillars-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.strategic-pillars-grid {
  display: flex;
  justify-content: center;
  padding: 0;
  gap: 30px;
  flex-wrap: wrap;
}

.strategic-pillar {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 calc(25% - 22.5px); 
  border-radius: 5px;
}

.strategic-pillar-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(90deg,var(--color-medium-blue), var(--color-medium-green));
  border-radius: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.strategic-pillar img {
  width: 70px;
  height: 70px;
  transition: transform 0.3s ease;
}

.strategic-pillar:hover img {
  transform: scale(1.05);
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.strategic-pillars-container {
  padding: 5% 5% 5% 5%;
}

.strategic-pillars-grid {
  gap: 25px;
}

.strategic-pillar {
  flex: 0 0 calc(50% - 12.5px); 
}

.strategic-pillar-icon {
  width: 110px;
  height: 110px;
}

.strategic-pillar img {
  width: 60px;
  height: 60px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.strategic-pillars-container {
  padding: 8% 8% 8% 8%;
}

.strategic-pillars-grid {
  gap: 20px;
}

.strategic-pillar {
  flex: 0 0 calc(50% - 10px); 
}

.strategic-pillar-icon {
  width: 100px;
  height: 100px;
}

.strategic-pillar img {
  width: 50px;
  height: 50px;
}
}

/*Animaciones */
.strategic-pillar {  
  --visibility-progress: 0;
  opacity: var(--visibility-progress);
  transform: translateY(calc(30px * (1 - var(--visibility-progress))));
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.strategic-pillar.animate-in {
  --visibility-progress: 1;
}

/*=================================*/
/* GRUPO EMPRESARIAL */
/*=================================*/
.business-group-section {
  background-color: var(--color-white);
  overflow: hidden;
  max-width: 1500px;
  padding: 3% 3% 3% 3%;
  margin-left: auto;
  margin-right: auto;
}

.business-group-container {
  margin: 0 auto;
  background: var(--color-light-gray);
  border-radius: 30px;
  padding: 3% 3% 3% 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.business-group-container img {
  margin-top: 30px;
  width: 100%;
}

img.grupo-desktop {
  display: initial;
}

img.grupo-mobile {
  display: none;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.business-group-section {
  padding: 5% 5% 5% 5%;
}

.business-group-container {
  padding: 5% 5% 5% 5%;
}

.business-group-container h2 {
  text-align: center;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.business-group-section {
  padding: 8% 8% 8% 8%;
}

.business-group-container {
  padding: 8% 8% 8% 8%;
}

img.grupo-desktop {
  display: none;
}

img.grupo-mobile {
  display: initial;
}
}

/* Animaciones */
.business-group-container.animate-in {
  animation: fadeInUp 1.5s ease forwards;
}

/*=================================*/
/* LÍNEA DEL TIEMPO */
/*=================================*/
.timeline-section {
  position: relative;
  background-image: url("../img/timeline-background.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.timeline-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 15%, rgba(255, 255, 255, 0) 85%, rgba(255, 255, 255, 1) 100%);
  z-index: 1;
}

.timeline-container {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1500px;
  margin: auto;
  align-items: center;
  padding: 3% 3% 3% 3%;
  flex-direction: column;
}

.timeline-container h3 {
  margin: 30px 0;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.timeline-line,
.timeline-line-active {
  position: absolute;
  left: 50%;
  top: 0;
  width: 6px;
  transform: translateX(-50%);
  border-radius: 6px;
}

.timeline-line {
  height: 100%;
  background: var(--color-medium-gray);
}

.timeline-line-active {
  height: 0;
  background: linear-gradient(180deg, var(--color-light-blue), var(--color-medium-blue), var(--color-light-green));
  transition: height 0.2s ease-out;
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}

.timeline-item.left {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-item.right {
  text-align: left;
}

.timeline-content {
  width: 50%;
}

.timeline-content time {
  color: var(--color-black);
  font-size: 22px;
  font-weight: 700;
}

.timeline-content ul,
.timeline-content ol {
  margin-left: 20px;
}

.timeline-item h1,
.timeline-item h2,
.timeline-item h3,
.timeline-item h4,
.timeline-item h5,
.timeline-item h6,
.timeline-item p, 
.timeline-item ul, 
.timeline-item ol {
  margin-bottom: 10px;
}

.timeline-item.left ul,
.timeline-item.left ol {
    direction: rtl;
    text-align: right;
    margin-right: 20px;
    margin-left: 0;
}

.timeline-item.left ul li,
.timeline-item.left ol li {
    text-align: right;
} 

.timeline-media {
  width: 50%;
}

.timeline-item.left .timeline-media img {
  width: 300px;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;
  float: left;
}

.timeline-item.right .timeline-media img {
  width: 300px;
  height: 150px;
  border-radius: 20px;
  object-fit: cover;
  float: right;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: linear-gradient(90deg, var(--color-light-blue), var(--color-light-green));
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.timeline-container {
  padding: 5% 5% 5% 5%;
}

.timeline-container h2 {
  text-align: center;
}

.timeline-container p {
  text-align: center;
}

.timeline-container h3 {
  text-align: center;
}

.timeline-content time {
  font-size: 21px;
}

.timeline-content p {
  text-align: inherit;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.timeline-container {
  padding: 8% 8% 8% 8%;
}

.timeline {
  gap: 60px;
}

.timeline-line, .timeline-line-active {
  left: 20px;
}

.timeline-item {
  gap: 20px;
}

.timeline-item, .timeline-item.left, .timeline-item.right {
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding-left: 40px;
}

.timeline-item.right .timeline-media img {
  float: left;
}

.timeline-item.left ul,
.timeline-item.left ol {
    direction: ltr;
    text-align: left;
    margin-right: 0px;
    margin-left: 20px;
}

.timeline-item.left ul li,
.timeline-item.left ol li {
    text-align: left;
} 

.timeline-content, .timeline-media {
  width: 100%;
}

.timeline-content time {
  font-size: 20px;
}

.timeline-dot {
  left: 20px;
  transform: translateX(-50%);
}
}

/* Animaciones */
.timeline-item {  
  --visibility-progress: 0;
  opacity: var(--visibility-progress);
  transform: translateY(calc(30px * (1 - var(--visibility-progress))));
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.timeline-item.animate-in {
  --visibility-progress: 1;
}

/*=================================*/
/* EQUIPO DE TRABAJO */
/*=================================*/
.team-section {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.team-container {
  position: relative;
  display: flex;
  max-width: 1500px;
  margin: auto;
  align-items: center;
  padding: 3% 3% 3% 3%;
  flex-direction: column;
}

.team-container p {
  text-align: center;
}

.team-container h3 {
  text-align: center;
  margin: 30px 0;
}

.team-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-bottom: 30px;
}

.team-tab.btn {
  --team-tab-color: linear-gradient(90deg, var(--color-light-blue), var(--color-medium-blue), var(--color-light-green), var(--color-medium-green));
  background: var(--team-tab-color);
  color: var(--color-white);
  transition: .25s;
}

.team-tab.btn:hover {
  transform: scale(1.05);
}

.team-tab.btn.active {
  transform: scale(1.05);
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
}

.team-card {
  width: 200px;
  text-align: center;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 5px;
}

.team-photo-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.team-role {
  display: inline-block;
  margin-top: -20px;
  padding: 3px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--color-white);
  background: var(--role-color);
  position: relative;
  z-index: 4;
  line-height: 1.2em;
}

.team-card h4 {
  margin-top: 5px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-black);
}

.team-tooltip {
  position: absolute;
  inset: 0;
  transform: scale(.95);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 3;
}

.team-tooltip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tooltip-color, var(--color-medium-blue));
  opacity: .85;
  border-radius: inherit;
  z-index: 0;
}

.team-tooltip-content {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 20px;
  left: 0;
  right: 0;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 50%;
  color: var(--color-white);
  font-size: 13px;
  line-height: 1.35em;
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 85%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.team-tooltip-body {
  max-width: 76%;
  margin: 0 auto;
  text-align: center;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-tooltip-content,
.team-tooltip-content *,
.team-tooltip-body,
.team-tooltip-body * {
  color: var(--color-white);
}

.team-tooltip-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.team-tooltip-content::-webkit-scrollbar-track {
  background: transparent;
}

.team-tooltip-content::-webkit-scrollbar-thumb {
  background: transparent;
}

.team-card:hover .team-tooltip,
.team-photo-wrapper:hover .team-tooltip,
.team-tooltip.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.team-container {
  padding: 5% 5% 5% 5%;
}

.team-grid {
  gap: 25px;
}

.team-card{
  width: 190px;
}

.team-photo{
  width: 190px;
  height: 190px;
  margin: auto;
}

.team-role {
  font-size: 12px;
}

.team-card h4 {
  font-size: 17px;
}

.team-photo-wrapper{
  width: 190px;
  height: 190px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.team-container {
  padding: 8% 8% 8% 8%;
}

.team-grid {
  gap: 20px;
}

.team-card{
  width: calc(50% - 10px);
}

.team-card h4 {
  font-size: 16px;
}

.team-photo{
  width: 160px;
  height: 160px;
  margin: auto;
}

.team-photo-wrapper{
  width: 160px;
  height: 160px;
}
}

/* Animaciones */
.team-card {  
  --visibility-progress: 0;
  opacity: var(--visibility-progress);
  transform: translateY(calc(30px * (1 - var(--visibility-progress))));
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.team-card.animate-in {
  --visibility-progress: 1;
}


/*======================================*/
/* CERTIFICADOS */
/*======================================*/
.certification-section {
  background-color: var(--color-white);
  overflow: hidden;
  max-width: 1500px;
  padding: 3% 3% 3% 3%;
    margin-left: auto;
    margin-right: auto;
}

.certification-container {
  margin: 0 auto;
  background: var(--color-light-gray);
  border-radius: 30px;
  padding: 3% 3% 3% 3%;
  align-items: center;
}

.certification-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 30px;
}

.certification-grid {
  list-style: none;
  display: flex;
  gap: 30px;
  justify-items: center;
  padding: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.certification-item {
  flex: 0 0 calc(100%/3 - 20px);
  text-align: center;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.item-img {
  width: 35%;
}

.certification-item img {
  width: 100%;
  height: auto;
}

.certification-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  border: 1px solid #000000;
  border-radius: 0 20px 20px 0;
  padding: 20px 10px;
  margin-left: -1px;
  width: 65%;
  min-height: 120px;
}

.certification-text h3 {
  font-size: 18px;
}

.certification-text p {
  font-size: 16px;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.certification-section {
  padding: 5% 5% 5% 5%;
}

.certification-container {
  padding: 5% 5% 5% 5%;
}

.certification-grid {
  gap: 20px;
}

.certification-item {
  flex: 0 0 calc(50% - 10px);
}

.certification-text {
  padding: 10px 5px;
}

.certification-text h3 {
  font-size: 17px;
}

.certification-text p {
  font-size: 15px;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.certification-section {
  padding: 8% 8% 8% 8%;
}

.certification-container {
  padding: 8% 8% 8% 8%;
}

.certification-item {
  flex: 0 0 100%;
}

}

/* Animaciones */
.certification-item {  
  --visibility-progress: 0;
  opacity: var(--visibility-progress);
  transform: translateY(calc(30px * (1 - var(--visibility-progress))));
  transition: opacity 0.1s linear, transform 0.1s linear;
}

.certification-item.animate-in {
  --visibility-progress: 1;
}

/*======================================*/
/* RESPALDO DEL GRUPO EMPRESARIAL */
/*======================================*/
.support-from-business-group-section{
  max-width: 1500px;
  margin: auto;
  margin-bottom: 3%;
  padding: 3%;
}

/* ========= TABLET (≤ 1024px) ========= */
@media (max-width: 1024px) {
.support-from-business-group-section{
  padding: 5%;
}
}

/* ========= MÓVIL (≤ 767px) ========= */
@media (max-width: 767px) {
.support-from-business-group-section{
  padding: 8%;
}
}

/*======================================*/
/* DESTACAR BUSQUEDA                    */
/*======================================*/
.strategic-pillar, 
.timeline-item,
.team-tab,
.team-card {
  transition: background-color 0.4s ease;
}

.strategic-pillar.highlight,
.timeline-item.highlight,
.team-tab.highlight,
.team-card.highlight {
  background-color: var(--color-highlight);
}