@font-face {
    font-family: 'Rubik';
    src: url('../font/Rubik/Rubik-VariableFont_wght.ttf') format('woff2'),
        url('../font/Rubik/static/Rubik-BlackItalic.ttf') format('woff'),
        url('../font/Rubik/static/Rubik-BoldItalic.ttf') format('woff'),
        url('../font/Rubik/static/Rubik-ExtraBoldItalic.ttf') format('woff'),
        url('../font/Rubik/static/Rubik-MediumItalic.ttf') format('woff'),
        url('../font/Rubik/static/Rubik-SemiBoldItalic.ttf') format('woff');
    font-display: swap;
    font-style: normal;
}

@font-face {
    font-family: 'AnekLatin';
    src: url('../font/AnekLatin/AnekLatin-VariableFont_wdth,wght.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-Thin.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-ExtraLight.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-Light.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-Regular.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-Medium.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-SemiBold.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-Bold.ttf') format('woff2'),
        url('../font/AnekLatin/static/AnekLatin-ExtraBold.ttf') format('woff2');
    font-display: swap;
    font-style: normal;
}

:root {
    --font: 'Rubik', sans-serif;
    --font2: 'AnekLatin', sans-serif;

    --bg-first: #004747;
    --bg-second: #F8C055;
    --bg-last: #9C9C9C;
    --bg-white: #fbfbfb;
    --bg-black: #484848;
}

/* Main */
.mls-slider {
    display: flex;
    justify-content: center;

    position: relative;
    height: 594px;
    max-width: min(100% - 10%, 1200px);
    margin: auto;
    overflow: hidden;
    padding-top: 2rem;
}

.mls-effect {
    margin: 0 auto;
}

.msl-contain {
    position: relative;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    z-index: 2;
    flex: 1;
}

.msl-descrip {
    font-weight: 600;
    font-size: 20px;
    line-height: 32px;
    color: var(--bg-black);
    width: 500px;
}

.msl-title {
    width: 450px;
    font-size: 78px;
    line-height: 80px;
    color: var(--bg-black);
    font-weight: bold;
    font-family: var(--font2);
}
.msl-title-last {
    padding: 2rem 0 0 2rem;
    font-weight: 700;
    font-size: 48px;
    line-height: 64px;
    font-family: var(--font2);
    color: var(--bg-black);
}

.msl-title-span {
    color: #007878;
}
.msl-container-div{
    background-color: #fff;
    border-radius: .5rem;
    padding: 1rem 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.msl-button {
    width: 230px;
    height: 62px;
    left: 200px;
    top: 470px;

    background: #007878;

    box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.15);
    border-radius: 9px;
    font-family: 'Rubik';
    font-weight: 600;
    font-size: 16px;
    line-height: 48px;

    text-align: center;
    letter-spacing: 0.02em;

    color: #FFFFFF;

    cursor: pointer;
    transition: .2s linear;

    display: flex;
    justify-content: center;
    align-items: center;
}

.msl-button:hover {
    transition: .2s linear;
    opacity: .6;
}

.mls-img {
    position: absolute;
    right: -200%;
    bottom: 0;
    top: 0;
    flex: 1;
    overflow: hidden;
    border-radius: 0rem 0rem 1rem 13rem;
}

/* .mls-slider::after {
    content: '';
    position: absolute;
    inset: 0;
} */

.mls-img-slider {
    object-fit: cover;
}

.mls-img.slider-active {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    flex: 1;
    transition: .5s ease-in;
}

#dot-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    z-index: 1;

    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    margin: 0 auto;

}

.dot {
    padding: .34rem;
    background-color: rgba(0, 0, 0, 0.263);
    cursor: pointer;
    transition: .3s ease;
    border-radius: 50%;

}

.active {
    transition: .3s ease-in-out;
    padding: .34rem;
    cursor: pointer;
}

/* Arrow */
.mt-arrow {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .2s linear;
}

.mt-arrow:hover {
    position: absolute;
    inset: 0;
    opacity: 1;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: .2s linear;
}

/* MS Contain */
.ms-general {
    display: flex;
    flex-direction: column;
    gap: 2.4rem;
    padding: 4rem 1rem;
}

.ms-contain {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ms-title {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 1rem;
    color: var(--bg-first);
    background: linear-gradient(90deg, #004747 0%, #004747 67%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}



/* .ms-title:after {
    content: '';
    position: absolute;
    bottom: -.5rem;
    left: 0;
    background-color: var(--bg-first);
    width: 45%;
    height: 2px;
} */

.ms-subtitle {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    color: #007878;
    margin-top: .1rem;
}

.ms-description {
    width: 100%;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 44px;
    line-height: 32px;
    text-align: center;
    color: var(--bg-first);
}

@media (max-width: 1024px) {
    .ms-description {
        font-size: 30px;
        line-height: 28px;
    }
}

@media (max-width: 768px) {
    .ms-description {
        font-size: 26px;
        line-height: 24px;
        padding-bottom: .7rem;
    }
}

.ms-contain-link {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 1rem;
    width: 65%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 1024px) {
    .ms-contain-link {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ms-contain-link {
        grid-template-columns: 1fr;
    }
}
.ms-container-link{
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.ms-container-link p{
    color: var(--bg-black);
    text-align: center;
    font-weight: 600;
    font-size: 1.5rem;
}
.ms-link {
    display: flex;
    gap: .4rem;
    color: var(--bg-black);
    justify-content: center;
    align-items: center;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    height: 180px;
    background-color: rgba(0, 120, 120, 0.08);
    padding: 2rem;
    border-radius: 1.5rem;
    width: 220px;
}
.ms-link img{
    width: 130px;
}
.msl-banner {
    position: relative;
    margin: 6rem 0;
    padding: 2rem;
    color: #004747;
    font-size: 2.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
    font-family: 'Rubik', sans-serif;
    padding: 2rem 3rem;
}
.msl-banner-width{
    width: 70%;
}
.msl-banner-img-logo{
    width: 100px;
    position: absolute;
    bottom: -43 px;
    right: 10px;
}
.msl-banner span {
    font-weight: bold;
    color: #004747;
}
.ms-contain-img {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-top: 1rem;
}

.ms-icon-img {
    width: 5rem;
    object-fit: fill!important;
}

/* Proyect */
.ms-proyect-title {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: var(--bg-first);
    position: relative;
}

.ms-proyect-title::after {
    content: '';
    position: absolute;
    background-color: var(--bg-second);
    height: 2px;
    width: 22%;
    bottom: -.3rem;
    left: 0;
}

.ms-proyect-contain {
    margin-top: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 1.5rem;
    justify-content: start;
}

.ms-proyect {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-bottom: 1rem;
    background: #fff;
    border-radius: 1rem;
    transform: matrix(1, 0, 0, 1, 0, 0);
}

.ms-proyect p {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 32px;
}
.msl-icon-proyect{
    position: relative;
    padding: 1rem;
}
.msl-arrow-icon{
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 1.4rem;
    background-color: #FFF;
    border-radius: 50% 21% 0 21%;
}
.ms-proyect-img {
    width: 100%;
    height: 238px;
    object-fit: cover;
    border-radius: 6px;
}

.msl-card img {
    width: 100%;
    height: auto;
}

.msl-card-content {
    padding: 0 1rem;
}

.msl-project-title {
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Rubik';
    color: var(--bg-first);
    margin-bottom: 5px;
}

.msl-project-year {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    padding: .4rem .4rem;
    font-weight: 100;
    font-family: 'Rubik';
    border-radius: .2rem;
    color: var(--bg-first);
    background-color: rgba(248, 192, 85, 0.4);
}

.msl-project-date {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
}

.msl-project-duration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    font-size: 13px;
    font-weight: 100;
    padding: .4rem .4rem;
    font-family: 'Rubik';
    border-radius: .2rem;
    color: var(--bg-first);
    background-color: rgba(0, 120, 120, 0.2);
}

.msl-project-description {
    margin-top: 20px;
    font-weight: 400;
    font-size: .9rem;
    color: var(--bg-first);   
    font-family: 'Rubik';
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.mls-accordion {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.mls-accordion-item {
    background: white;
    border-radius: 10px;
    height: 118px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.mls-accordion-item:hover {
    transform: translateY(-5px);
}

.mls-accordion-item h3 {
    font-size: 20px;
    margin: 0;
    color: var(--bg-first);
    font-weight: lighter;
}

.mls-accordion-item .mls-plus-icon {
    position: relative;
    font-size: 30px;
    color: #ffaa00;
}

.mls-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.mls-modal-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    width: 500px;
    max-width: 90%;
    position: relative;
}

.mls-modal-content h3 {
    margin: 0 0 10px;
    color: var(--bg-first);
}

.mls-modal-content p {
    font-size: 16px;
    color: #555;
}

.mls-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #aaa;
    cursor: pointer;
}

.desk-banner{
  margin-bottom: 2rem;
  border-bottom: 1px solid #0001;
  border-top: 1px solid #0001;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5rem 0;
}
.ds-title-section{
  text-align: center;
  width: 600px;
  font-size: 1.5rem;
  font-weight: 100;
  color: var(--bg-first);
  background: linear-gradient(90deg, #004747 0%, #004747 70%, #007878 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
}
.ds-title-section span{
  font-size: 2.4rem;
  font-weight: 700;
}

@media (max-width: 768px) {
    .mls-accordion {
      grid-template-columns: 1fr;
      gap: 20px;
      margin-top: 1.5rem;
    }
  
    .mls-accordion-item {
      padding: 36px;
      display: flex;
      gap: 2rem;
    }
  
    .mls-accordion-item h3 {
      font-size: 20px;
    }
  
    .mls-accordion-item .mls-plus-icon {
      font-size: 38px;
    }
  
    .mls-modal-content {
      padding: 25px;
      width: 90%;
      max-width: 95%;
    }
  
    .mls-modal-content h3 {
      font-size: 18px;
    }
  
    .mls-modal-content p {
      font-size: 14px;
    }
  
    .mls-modal-close {
      font-size: 20px;
      top: 8px;
      right: 8px;
    }
  }
  
.jumper{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

/* footer */
.ms-social-img {
    width: 1.7rem;
    object-fit: contain;
    transition: .2s linear;
}

.ms-social-img:hover {
    transform: scale(1.05);
    transition: .2s linear;
}

/* TAB Proyect */
.tp-title {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 32px;
    color: var(--bg-first);
    position: relative;
}

.tp-title::after {
    content: '';
    position: absolute;
    background-color: var(--bg-second);
    height: 2px;
    width: 22%;
    bottom: -.3rem;
    left: 0;
}

.tp-flex {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    .tp-flex {
        margin: 2rem 0;
        display: grid;
        grid-template-columns: repeat(11, 1fr);
        grid-template-rows: 1fr 1fr;
        gap: 1rem;
    }

    .tp-flex>img {
        width: 100%;
        object-fit: cover;
        height: 250px;
    }

    .tb-img {
        cursor: pointer;
    }

    .tp-flex>img:nth-child(1) {
        grid-row: 1/3;
        grid-column: 1/6;
        height: 520px;
    }

    .tp-flex>img:nth-child(2) {
        grid-row: 1/2;
        grid-column: 6/9;
    }

    .tp-flex>img:nth-child(3) {
        grid-row: 1/2;
        grid-column: 9/12;
    }

    .tp-flex>img:nth-child(4) {
        width: 100%;
        grid-row: 2/3;
        grid-column: 6/9;
    }

    .tp-flex>img:nth-child(5) {
        grid-row: 2/3;
        grid-column: 9/12;

    }

    .ml-img-edit:nth-child(3) {
        grid-row: 2/3 !important;
        grid-column: 6/12 !important;
    }

    .ml-img-edit:nth-child(4) {
        grid-row: 1/2 !important;
        grid-column: 9/12 !important;
    }

    /* mid */
    .ml-img-med-edit:nth-child(2) {
        grid-row: 2/3 !important;
        grid-column: 6/12 !important;
    }

    .ml-img-med-edit:nth-child(3) {
        grid-row: 1/2 !important;
        grid-column: 6/12 !important;
    }

    /* Min */
    .ml-img-min-edit:nth-child(2) {
        grid-row: 1/3 !important;
        grid-column: 6/11 !important;
        height: 100%;
    }
}


/* IMG MODAL */

.ml-contain {
    display: block;
    position: fixed;
    inset: 0;
    background-color: #000000e1;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;

    z-index: 3;
}

.ml-contain-next-to-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-hidden {
    display: none;
}

.ml-close {
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    cursor: pointer;
    font-weight: bold;
    color: #F0F0F0;
    z-index: 2;
    padding: 1rem 2rem;
}

.ml-btn-close {
    color: white;
    cursor: pointer;
    font-style: normal;
    font-weight: bold;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .ml-contain {
        align-items: initial;
    }

    .ml-contain-next-to-img {
        justify-content: space-between;
    }
}

.mls-hidden {
    display: none;
}

.ml-carrousel {
    display: flex;
    gap: 2rem;
    justify-content: center;
    overflow: hidden;

}

.ml-img {
    width: min(100% - 10%, 450px);
    height: 450px;
    cursor: pointer;
    position: absolute;
    left: -100%;
    transition: .2s linear;
    z-index: 1;
    object-fit: contain;
    transition: .3s linear;
    opacity: 0;
}

.ml-img.ml-img-active {
    position: relative;
    left: 0;
    transition: .3s linear;
    opacity: 1;
}

.ml-img:active {
    transform: scale(.9);
}

@media (min-width: 1400px) {
    .ml-img {
        width: 1000px;
        height: 600px;
        object-fit: contain;
    }
}

/* title */
.ml-title {
    color: white;
    font-size: 2rem;
    font-weight: lighter;
}

.ml-subtitle {
    text-align: center;

    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 22px;
    line-height: 32px;
    color: white;

}

/* Next and prev */
.ml-prev {
    position: absolute;
    left: 0;
    cursor: pointer;
    z-index: 2;
    background-color: #D9D9D9;
    padding: 2rem 1rem;
    border-top-right-radius: 4rem;
    border-bottom-right-radius: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-prev:active {
    transform: scale(.9);
}

.ml-next {
    position: absolute;
    right: 0;
    font-size: 3rem;
    cursor: pointer;
    z-index: 2;
    background-color: #D9D9D9;
    padding: 2rem 1rem;
    border-top-left-radius: 4rem;
    border-bottom-left-radius: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-next-hidden {
    opacity: .4;
}

.ml-next:active {
    transform: scale(.9);
}

/* Info container */


.ml-state {
    text-align: center;
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 300;
    font-size: 22px;
    line-height: 32px;
    color: #FFFFFF;
}

@media (min-width: 768px) {

    /* button next and prex */
    .ml-prev {
        position: relative;
    }

    .ml-next {
        position: relative;
    }

    .ml-contain-next-to-img {
        display: flex;
        gap: 5rem;
    }
}

.ml-container-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

/* ---------------- */
.tp-button-flex {
    display: flex;
    gap: .8rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .tp-button-flex {
        padding: 0;
    }
}

.tp-button {
    width: 128px;
    height: 48px;

    background: var(--bg-first);
    border-radius: 30px;

    font-family: 'Rubik';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 32px;
    color: var(--bg-white);
    margin-bottom: 2rem;
    cursor: pointer;
}

.tp-active {
    font-family: 'Rubik';
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 32px;

    text-align: center;

    color: #007878;
    background: #F8C055;
    border-radius: 30px;
}

/* SLIDER */
#slider {
    position: relative;
    display: flex;
    flex: 1;
}

#slider::before {
  content: '';
  position: absolute;
  top: 140px;
  left: -90px;
  width: 180px;
  height: 180px;
  background: linear-gradient(
    90deg,
    #00787850 12%,
    rgba(0,120,120,0) 53%
  );
  opacity: 0.35;
  border-radius: 50%;
  z-index: 1;
}

#slider::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58px;
    height: 58px;
    background: var(--bg-first); /* azul */
    z-index: 1;
    border-radius: .4rem 5rem .4rem 0;
}

@media (min-width: 760px) {
    .row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 1200px;
        gap: 2rem;
    }
}

@media (max-width: 759px) {
    .row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 2rem;
    }
}

.column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.icon-box {
    background-color: #ffffff;
    border: 1px solid #ddd;
    padding: 15px;
    width: 100%;
    height: 120px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.icon-box img {
    width: 100px;
    aspect-ratio: 16 / 7;
    margin-bottom: 15px;
    object-fit: contain;
}
.icon-box-msg {
    text-align: start;
    flex-grow: 1; /* Ensure the message section grows to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 760px) {
    .icon-box h3 {
        font-size: 18px;
        font-weight: bold;
        margin-bottom: 10px;
    }

    .icon-box p {
        font-size: 14px;
        color: #555;
    }
}

@media (max-width: 759px) {
    .icon-box h3 {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .icon-box p {
        font-size: 12px;
        color: #777;
    }
}
.mt-title{
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.mls-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mls-container h1 {
    text-align: center;
    color: var(--bg-first);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.mls-service {
    display: flex;
    align-items: center;
    margin-bottom: 35px;
}

.mls-service-icon {
    color: #064e3b;
    font-size: 1.5rem;
    margin-right: 10px;
}

.mls-service-content {
    font-size: 1rem;
}

.mls-service-content h2 {
    font-size: 1.2rem;
    margin: 0 0 5px;
    color: #064e3b;
}

.mls-service-content p {
    margin: 0;
    color: #555;
}

/* --- NUEVA SECCIÓN PROYECTOS --- */
.proyect-card {
  border-radius: 1.2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: box-shadow .2s;
  padding-bottom: 2.5rem;
}

.proyect-card__img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.2rem;
}
.proyect-card__content {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.proyect-card__title {
  font-family: var(--font2);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--bg-black);
  margin-bottom: .2rem;
}
.proyect-card__subtitle {
  font-family: var(--font);
  font-size: 1rem;
  color: #888;
  margin-bottom: .2rem;
}
.proyect-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .2rem;
}
.proyect-card__tag {
  background: #F8C055;
  color: #004747;
  font-size: .85rem;
  border-radius: .5rem;
  padding: .1rem .7rem;
  font-family: var(--font);
  font-weight: 600;
}
.proyect-card__desc {
  font-family: var(--font);
  font-size: .98rem;
  color: #484848;
  margin-bottom: .2rem;
}
.proyect-card__btn {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: transform .15s;
  z-index: 2;
}
.proyect-card__btn:hover {
  transform: scale(1.08);
}

#root {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.2rem;
  margin-top: 2.5rem;
}
@media (max-width: 1024px) {
  #root {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
  .proyect-card__img {
    height: 380px;
  }
}
@media (max-width: 700px) {
  #root {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .proyect-card__img {
    height: 300px;
  }
  .proyect-card__content {
    padding: 1rem 1rem 0.5rem 1rem;
  }
}
.proyect-card__carousel {
  position: relative;
  width: 100%;
}
.proyect-card__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 1.2rem;
  display: block;
}
.proyect-card__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,71,71,0.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background .2s;
}
.proyect-card__arrow--prev { left: 1rem; }
.proyect-card__arrow--next { right: 1rem; }
.proyect-card__carousel:hover .proyect-card__arrow {
  display: flex;
}
@media (max-width: 700px) {
  .proyect-card__carousel {
    /* height: 160px; */
  }
  .proyect-card__img {
    height: 300px;
  }
  .proyect-card__arrow {
    display: flex;
    top: unset;
    bottom: 1rem;
    transform: none;
    width: 2rem;
    height: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
  }
}
/* --- FIN NUEVA SECCIÓN PROYECTOS --- */

.msl-project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: .5rem;
}

.msl-project-btn {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: #fff;
  color: var(--bg-first);
  border: 2px solid var(--bg-first);
  border-radius: 2rem;
  font-family: var(--font2);
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  transition: background .2s, color .2s, border .2s;
  z-index: 1;
}
.msl-project-btn svg {
  margin-left: 0.3rem;
  display: inline-block;
}
.msl-project-btn:hover {
  background: var(--bg-first);
  color: #fff;
  border-color: var(--bg-first);
}

/* Timeline Parallax Styles */
.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1rem 2rem 1rem;
}
.timeline-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #004747;
  margin-bottom: 0.2rem;
  font-family: var(--font2);
}
.timeline-subtitle {
  text-align: center;
  color: #007878;
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-family: var(--font);
}
.timeline {
  position: relative;
  padding: 0 0 0 50%;
  min-height: 600px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 8px;
  height: 80px;
  background: linear-gradient(to bottom, #007878 0%, #F8C055 100%);
  border-radius: 4px;
  z-index: 0;
  transition: height 0.3s;
}
.timeline-step {
  position: relative;
  min-height: 160px;
  z-index: 1;
}

.timeline-step-content {
  display: flex;
  align-items: center;
  position: relative;
  width: 48%;
  min-height: 120px;
  margin-bottom: 2.5rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px #0001;
  padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  gap: 1.2rem;
}
.timeline-step-content.left {
  left: -102%;
  justify-content: flex-end;
  text-align: right;
}
.timeline-step-content.right {
  left: 2%;
  justify-content: flex-start;
  text-align: left;
}
.timeline-icon {
  width: 70px;
  height: 70px;
  background: #e0f7fa;
  border-radius: 50%;
  border: 4px solid #007878;
  box-shadow: 0 0 0 4px #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 0.5rem;
}
.timeline-step.active .timeline-icon {
  border-color: #F8C055;
  background: #fffbe6;
}
.timeline-step h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #004747;
  font-family: var(--font2);
}
.timeline-step p {
  margin: 0;
  color: #484848;
  font-size: 1.05rem;
}
.timeline-approved {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
}
.timeline-approved h2 {
  color: #004747;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.timeline-approved p {
  color: #007878;
  font-size: 1.2rem;
  font-weight: 600;
}
/* Nodos en la línea */
.step-start::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0px;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 3px solid #007878;
  border-radius: 50%;
  z-index: 2;
  transition: border-color 0.3s, background 0.3s;
}
.timeline-step.active::before {
  border-color: #F8C055;
  background: #fffbe6;
}
.timeline-step[data-step="4"]::before {
  border-color: #F8C055;
  background: #fffbe6;
}
.timeline-approved::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border: 6px solid #F8C055;
  border-radius: 50%;
  z-index: 2;
}
@media (max-width: 1100px) {
  .timeline-container {
    max-width: 98vw;
    padding: 2rem 0.5rem;
  }
  .timeline {
    padding-left: 52%;
  }
  .timeline-step-content {
    width: 54%;
    padding: 1.2rem 1.2rem 1.2rem 2rem;
  }
}
@media (max-width: 900px) {
  .timeline {
    padding-left: 55%;
  }
  .timeline-step-content {
    width: 70%;
    min-height: 100px;
    padding: 1rem 1rem 1rem 1.5rem;
  }
  .timeline-step-content.left {
    left: -110%;
  }
  .timeline-step-content.right {
    left: 10%;
  }
}
@media (max-width: 700px) {
  .timeline {
    padding: 0 0 0 0;
  }
  .timeline-line {
    left: 24px;
    width: 6px;
  }
  .timeline-step-content,
  .timeline-step-content.left,
  .timeline-step-content.right {
    left: 0 !important;
    width: 90vw;
    min-width: unset;
    margin-left: 48px;
    text-align: left;
    padding: 1rem 1rem 1rem 1.5rem;
  }
  .timeline-step {
    min-height: 120px;
  }
  .timeline-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    margin: 0 0.5rem 0 0;
  }
  .timeline-step::before {
    /* left: 24px; */
    top: 0px;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }
  .timeline-approved {
    padding-top: 1rem;
  }
  .timeline-approved::before {
    left: 24px;
    top: 0;
    width: 18px;
    height: 18px;
    border-width: 4px;
  }
}

/* --- TIMELINE NUEVO ESTILO --- */
.timeline-main {
  font-family: 'Rubik', sans-serif;
  padding: 2rem 0;
}
.timeline-header {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.timeline-header__icon {
  width: 180px; height: 180px;
}
@media (max-width: 1200px) {
  .timeline-header__icon { 
    opacity: 0;
    width: 0!important;
    height: 0!important;
    margin-right: 0!important;
    margin-left: 0!important;
    display: none!important;
   }
}
.timeline-header__icon.left { margin-right: 1.5rem; }
.timeline-header__icon.right { margin-left: 1.5rem; }
.timeline-header__text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 25%;
}
@media (max-width: 1200px) {
  .timeline-header__text {
    width: 100%;
  }
  .timeline-header__text h1 {
    font-size: 2.4rem!important;
  }
  .timeline-header__text h2 {
    font-size: 1.5rem!important;
  }
}
.timeline-header__text h1 {
  font-size: 2.6rem;
  color: var(--bg-black);
  font-weight: 700;
  text-align: center;
  margin-bottom: .2rem;
  font-family: var(--font2);
}
.timeline-header__text h2 {
  color: #009999;
  font-size: 1.6rem;
  text-align: center;
  font-weight: lighter;
}
.timeline-steps {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 85%;
  background: #009999;
  z-index: 0;
  transform: translateX(-50%);
}
.timeline-step {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 180px;
  margin-bottom: 2.5rem;
  width: 100%;
}
.timeline-step > * {
  width: 50%;
}

@media (max-width: 900px) {
    /* .timeline-step__content {
        width: 30%!important;
      } */
      .timeline-step {
        overflow: hidden;
      }
      .timeline-step.step-right .timeline-step__content{
        margin: 0!important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }
      .timeline-step__content {
        padding: 1rem 1rem;
        /* min-width: 100%!important; */
        /* max-width: 100%!important; */
      }
      .timeline-step__content{
        margin: 0!important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
      }
      /* .timeline-step.step-left .timeline-step__content, .timeline-step.step-right .timeline-step__content {
        margin-left: 2rem!important;
    }
    .timeline-step.step-left .timeline-step__content {
        margin-right: 2rem!important;
    } */
  }
/* Pasos a la derecha de la línea (1 y 3) */
.timeline-step.step-right {
  flex-direction: row;
  justify-content: space-between;
}
.timeline-step.step-right .timeline-step__content {
  margin-left: 0px;
  margin-right: 0;
  text-align: left;
}
.timeline-step.step-right .timeline-node {
  left: 50%;
  transform: translateX(-50%);
}
.timeline-step.step-right .timeline-step__icon {
  margin-left: 24px;
}
/* Pasos a la izquierda de la línea (2 y 4) */
.timeline-step.step-left {
  flex-direction: row-reverse;
  justify-content: space-between;
}
@media (min-width: 900px) {
  .timeline-step.step-left {
    flex-direction: row-reverse;
    justify-content: flex-start;
  }
  .timeline-step.step-right {
    flex-direction: row;
    justify-content: flex-start;
  }
}
.timeline-step.step-left .timeline-node {
  left: 50%;
  transform: translateX(-50%);
}
.timeline-step.step-left .timeline-step__icon {
  margin-right: 24px;
}
.timeline-step__content {
  padding: 1.5rem 2rem;
  min-width: 260px;
  max-width: 350px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0;
}
.timeline-step__icon {
  width: 220px; height: 100%;
  border-radius: 1.2rem;
  flex-shrink: 0;
  z-index: 2;
  margin-top: -2.5rem;
}
@media (max-width: 1400px) {
  .timeline-step__icon {
    margin-left: 0!important;
    margin-right: 0!important;
  }
  .timeline-step.step-left .timeline-step__icon {
    margin-right: 0px!important;
  }
}
.timeline-step__number {
  font-size: 2.5rem;
  font-weight: 900;
  margin-right: 1rem;
  margin-left: 0.2rem;
  line-height: 1;
}
.number-turquesa { color: #009999; }
.number-verde { color: #007878; }
.number-amarillo { color: #F8C055; }
.number-gris { color: #9C9C9C; }
.timeline-step__content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 .3rem 0;
}
.timeline-step__content p {
  font-size: 1rem;
  color: #444;
  margin: 0;
}
.timeline-node {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 4px solid #009999;
  background: #fff;
  z-index: 2;
}
.node-turquesa { border-color: #009999; }
.node-verde { border-color: #007878; }
.node-amarillo { border-color: #F8C055; }
.node-gris { border-color: #9C9C9C; }
.timeline-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 6.5rem;
  gap: 0.5rem;
}
.timeline-final strong {
  font-size: 2rem;
  color: #484848;
  font-weight: 900;
  display: block;
  margin-bottom: .2rem;
}
.timeline-final p {
  color: #009999;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.timeline-arrow {
  width: 48px; height: 48px;
  margin-top: 1.2rem;
  background: url('data:image/svg+xml;utf8,<svg fill="%23009999" viewBox="0 0 97 97" xmlns="http://www.w3.org/2000/svg"><circle cx="48.5" cy="48.5" r="48.5" fill="%23DAEDEC"/><path d="M51.1213 21.8787C49.9497 20.7071 48.0503 20.7071 46.8787 21.8787L27.7868 40.9706C26.6152 42.1421 26.6152 44.0416 27.7868 45.2132C28.9584 46.3848 30.8579 46.3848 32.0294 45.2132L49 28.2426L65.9706 45.2132C67.1421 46.3848 69.0416 46.3848 70.2132 45.2132C71.3848 44.0416 71.3848 42.1421 70.2132 40.9706L51.1213 21.8787ZM46 74C46 75.6569 47.3431 77 49 77C50.6569 77 52 75.6569 52 74L46 74ZM46 24L46 74L52 74L52 24L46 24Z" fill="%23004747"/></svg>') no-repeat center/contain;
}
@media (max-width: 1200px) {
  .timeline-header__icon { width: 200px; height: 200px; }
  .timeline-step__icon { width: 50%; height: 50%; display: flex; align-items: center; justify-content: center; }
  .timeline-step__content { padding: 1rem 1rem; min-width: 180px; max-width: 98vw; }
  .timeline-node { width: 16px; height: 16px; }
  .timeline-step__number { font-size: 2rem; }
  .timeline-final {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2.5rem;
    gap: 0.5rem;
  }
}
@media (max-width: 700px) {
  .timeline-header { flex-direction: column; gap: 0.5rem; }
  .timeline-header__icon { margin: 0; }
  .timeline-header__text h1 { font-size: 1.3rem; }
  .timeline-header__text h2 { font-size: 1rem; }
  .timeline-steps { padding: 0; }
  /* .timeline-line { left: 24px; } */
  /* .timeline-step, .step-left, .step-right {
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-bottom: 2rem;
  } */
  .timeline-step__icon {
    width: 40%; height: 20%; margin: 0 0 0.7rem 0;
  }
  .timeline-step__content {
    /* min-width: 0; max-width: 100vw; padding: 0.7rem 0.7rem; margin: 0 0 0 48px; */
    text-align: left; align-items: flex-start;
  }
  .timeline-node {
    left: 24px; top: 32px; width: 12px; height: 12px; position: absolute;
    transform: none;
  }
  .timeline-final strong { font-size: 1.1rem; }
  .timeline-final p { font-size: 0.95rem; }
  .timeline-arrow { width: 32px; height: 32px; }
}

@media (max-width: 900px) {
  .timeline-step__content {
    font-size: 0.9rem;
  }
  .timeline-step__content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  .timeline-step__content p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}