/* Evitar que scripts (ej. AOS) pongan height:0 en los grids de stats */
.about-stats-grid {
    height: auto !important;
    min-height: 0;
}

/* add at the top of .main a background image located in asset('img/about_us/Bacground.png') */
.main {
    background-image: url('/img/about_us/Background.png');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    padding: 120px 0 0 0;
    background-position-x: center;
}

.founder {
    margin: 2.5rem auto 3rem;
}

.stats-main {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.stats-card {
    border: 1px solid lightgray;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    padding: 10px;
}

.stats-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-card img {
    width: 100px;
    height: 100px;
}

.stats-header, .stats-enterprise {
    text-align: center;
    color: #7052fb;
    margin-bottom: 4rem;
}

.stats-enterprise {
    font-weight: 300;
    margin-top: 4rem;
    margin-bottom: 0;
}

.stats-company {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stats-title {
    font-weight: 300;
    color: #7052fb;
    font-size: 4rem;
}

.stats-text {
    color: #7052fb;
    font-size: 1.2rem;
    font-weight: 300;
}

.frame {
    background-color: white;
    width: 75%;
    height: 100%;
    position: relative;
    margin: 0 auto;
    border-radius: 15px;
    padding: 1rem 2rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
}

.frame .frame__img {
    position: absolute;
    top: -200px;
    left: -100px;
}

.frame h2 {
    margin-left: 12rem;
    font-weight: 300;
    color: #6e44f1;
    overflow: hidden;
    font-size: x-large;
}

.frame p {
    color: grey;
    overflow: hidden;
    font-weight: 300;
    font-size: x-large;
    margin-top: 1rem;
}

/* Cajas de fecha del timeline: sombra redondeada (evita que se vea cuadrada por overflow del padre) */
.timeline-date-box {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.07);
}

.timeline {
    display: flex;
    justify-content: center;
    align-items: center;
}

.timeline ul {
    list-style: none;
    padding: 50px 0;
}

/* create a line */
.timeline ul li{
    position: relative;
    width: 2px;
    margin: 0 auto;
    background: lightgray;
}

/* add padding top 70px to all li igoring the first one */
.timeline ul li:not(:first-child) {
    padding-top: 100px;
}

.timeline ul li .box {
    position: relative;
    bottom: -17px;
    width: 450px;
    height: 162px;
    background-color: #7052fb;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    border: 1px solid white;
}   

.timeline ul li .year {
    color: white;
    font-weight: 300;
    font-size: large;
}

.timeline ul li .text {
    color: white;
    font-weight: 300;
    font-size: large;
}

.timeline ul li:nth-child(odd) .box {
    left: 40px;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding: 1rem 1rem 1rem 4rem;
}

.timeline ul li:nth-child(5) .box {
    left: 0px;
    top: 0;
    width: 490px;
    height: 200px;
    padding: 1rem 1rem 1rem 6rem;
}

.timeline ul li:nth-child(7) .box {
    left: 0px;
    top: 0;
    width: 490px;
    height: 200px;
    padding: 1rem 1rem 1rem 6rem;
}

.timeline ul li:nth-child(8) .box {
    top: 0;
    width: 490px;
    height: 200px;
    left: -489px; ;
    padding: 1rem 5rem 1rem 2rem;
}

.timeline ul li:nth-child(even) .box {
    left: -487px;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    padding: 1rem 5rem 1rem 2rem;
}

.timeline ul li img {
    z-index: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 195px;
    height: 195px;
}

.values {
    margin: 3rem 0;
}

/* Our Values – Metals-style feature cards */
.features-section {
    padding: 2.5rem 0 3rem;
}
.features-section .container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}
.features-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.75rem;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}
.feature-card {
    padding: 2.25rem 2.5rem;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}
.feature-card + .feature-card {
    margin-top: 1rem;
}
.feature-icon {
    font-size: 5rem;
    color: #000;
    flex-shrink: 0;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.feature-content {
    flex: 1;
}
.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}
.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

@media (width <= 425px){
    .main-img {
        margin: 10rem auto;
    }
}

@media (width <= 768px) {
    .features-title {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
    .feature-card {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
        gap: 0.2rem;
        padding: 1.5rem 1rem;
    }
    .feature-icon {
        font-size: 4rem;
    }
    .feature-title {
        font-size: 1.25rem;
    }
    .feature-description {
        font-size: 0.9375rem;
    }

    .frame {
        width: 100%;
    } 
    .frame h2 {
        margin-left: 0;
        margin-top: 4rem;
    }

    .timeline {
        justify-content: start;
    }

    .timeline ul li .box {
        width: max-content;
    }

    .timeline ul li img {
        width: 120px;
        height: 120px;
    }

    .timeline ul li {
        margin-left: 40px;
    }

    .timeline ul li:nth-child(even) .box {
        left: 0px;
        top: -10px;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        padding: 1rem 1rem 1rem 4rem;
        width: calc(100vw - 140px);
        height: auto;
    }

    .timeline ul li:nth-child(odd) .box {
        left: 0px;
        top: -10px;
        border-top-right-radius: 15px;
        border-bottom-right-radius: 15px;
        border-bottom-left-radius: 0;
        border-top-left-radius: 0;
        padding: 1rem 1rem 1rem 4rem;
        width: calc(100vw - 140px);
        height: auto;
    }

    .timeline ul li:nth-child(5) .box {
        left: 0px;
        top: -20px;
        padding: 1rem 1rem 1rem 4rem;
        width: calc(100vw - 140px);
        height: auto;
    }

    .timeline ul li:nth-child(7) .box {
        left: 0px;
        top: -20px;
        padding: 1rem 1rem 1rem 4rem;
        width: calc(100vw - 140px);
        height: auto;
    }

    .timeline ul li:nth-child(8) .box {
        top: -20px;
        left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        padding: 1rem 1rem 1rem 4rem;
        width: calc(100vw - 140px);
        height: auto;
    }
}

@media (width <= 480px) {
    .feature-card {
        padding: 1.25rem 0.75rem;
    }
}

@media (width <= 1024px){
    .frame {
        width: 100%;
    }

    .values__container {
        width: 100%;
    }
}

@media(max-width: 1650px){
    #new_header .container {
        max-width: 98% !important;
    }
}
