:root {
    --avance-primary: #00909E;
    --avance-dark: #292C35;
    --avance-light: #EFF1F3;
    --avance-gray: #8A8F9C;
}

* {
    font-family: 'Rubik', sans-serif;
}

body {
    color: var(--avance-dark);
    background: #fff;
}

.avance-topbar {
    background: var(--avance-dark);
    color: #fff;
    padding: 8px 0;
    font-size: 14px;
}

.avance-logo {
    height: 58px;
}

.nav-link {
    color: var(--avance-dark) !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--avance-primary) !important;
}

.btn-avance {
    background: var(--avance-primary);
    border: 1px solid var(--avance-primary);
    color: #fff !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 600;
}

.btn-avance:hover {
    background: #007986;
    border-color: #007986;
}

.avance-hero {
    background: linear-gradient(120deg, rgba(41,44,53,.96), rgba(0,144,158,.9));
    color: #fff;
    min-height: 78vh;
    display: flex;
    align-items: center;
}

.avance-hero h1 {
    font-size: clamp(42px, 6vw, 74px);
    font-weight: 800;
    line-height: 1;
}

.avance-hero p {
    font-size: 21px;
    color: rgba(255,255,255,.88);
}

.avance-hero-logo {
    max-width: 420px;
    width: 100%;
}

.section-label {
    color: var(--avance-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    color: var(--avance-dark);
}

.service-card {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    height: 100%;
    box-shadow: 0 16px 40px rgba(41,44,53,.08);
    transition: .3s;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    background: rgba(0,144,158,.1);
    color: var(--avance-primary);
    display: grid;
    place-items: center;
    font-size: 28px;
    margin-bottom: 18px;
}

.bg-avance-light {
    background: var(--avance-light);
}

.why-avance {
    background: linear-gradient(120deg, var(--avance-primary), var(--avance-dark));
    color: #fff;
}

.why-avance .section-title {
    color: #fff;
}

.mini-card {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 22px;
    padding: 24px;
    color: #fff;
    height: 100%;
}

.stats h3 {
    color: var(--avance-primary);
    font-size: 52px;
    font-weight: 800;
}

.contact-card {
    background: #fff;
    border-radius: 26px;
    padding: 32px;
    box-shadow: 0 16px 40px rgba(41,44,53,.08);
}

.form-control {
    border-radius: 14px;
    padding: 14px 18px;
}

.avance-footer {
    background: var(--avance-dark);
    color: #cfd6e1;
    padding: 42px 0;
}

.avance-footer-logo {
    max-width: 260px;
}

@media (max-width: 768px) {
    .avance-logo {
        height: 44px;
    }

    .avance-hero {
        text-align: center;
        padding: 60px 0;
    }
}
.client-card {
    background: #fff;
    border-radius: 24px;
    padding: 38px 20px;
    min-height: 120px;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--avance-dark);
    box-shadow: 0 16px 40px rgba(41,44,53,.08);
    border: 1px solid rgba(0,144,158,.12);
}

.client-card:hover {
    color: var(--avance-primary);
    transform: translateY(-5px);
    transition: .3s;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}
.logos-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0 20px;
}

.logos-marquee::before,
.logos-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logos-marquee::before {
    left: 0;
    background: linear-gradient(to right, #EFF1F3 20%, transparent);
}

.logos-marquee::after {
    right: 0;
    background: linear-gradient(to left, #EFF1F3 20%, transparent);
}

.logos-marquee-track {
    display: flex;
    align-items: center;
    gap: 55px;
    width: max-content;
    animation: avanceMarquee 26s linear infinite;
}

.logo-marquee-item {
    width: 240px;
    height: 135px;
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 45px rgba(41,44,53,.10);
    border: none;
    flex-shrink: 0;
}

.logo-marquee-item img {
    max-width: 190px;
    max-height: 82px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: .3s ease;
}

.logo-marquee-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(0,144,158,.18);
    transition: .3s ease;
}

.logo-marquee-item img:hover {
    transform: scale(1.06);
}

@keyframes avanceMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .logos-marquee-track {
        gap: 28px;
        animation-duration: 20s;
    }

    .logo-marquee-item {
        width: 180px;
        height: 105px;
        padding: 20px;
    }

    .logo-marquee-item img {
        max-width: 145px;
        max-height: 65px;
    }
}
/* =========================
TECNOLOGIAS
========================= */

.tech-card {
    text-align: center;
    padding: 35px 25px;
    border-radius: 24px;
    overflow: hidden;
    min-height: 420px;
}

.tech-logo {
    width: 100%;
    height: 120px;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.tech-logo img {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;

    transition: .3s ease;
}

.tech-card:hover .tech-logo img {
    transform: scale(1.05);
}

.tech-card h4 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1d2433;
    font-weight: 700;
}

.tech-card p {
    font-size: 16px;
    line-height: 1.8;
    color: #5f6570;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .tech-card {
        min-height: auto;
        padding: 30px 20px;
    }

    .tech-logo {
        height: 90px;
    }

    .tech-logo img {
        max-width: 140px;
        max-height: 70px;
    }

}
.about-video-hero {
    position: relative;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #292C35;
}

.about-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(41,44,53,.92), rgba(0,144,158,.82)),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 35%);
    z-index: 2;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    color: #fff;
}

.about-hero-content h1 {
    font-size: clamp(44px, 6vw, 78px);
    font-weight: 800;
    line-height: 1;
    margin-top: 18px;
}

.about-hero-content p {
    max-width: 760px;
    font-size: 22px;
    color: rgba(255,255,255,.9);
    margin-top: 24px;
}

.about-img {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 25px 70px rgba(41,44,53,.18);
}

.about-card {
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(41,44,53,.08);
    transition: .3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0,144,158,.18);
}

.about-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.about-card-body {
    padding: 30px;
}

.about-card-body h3 {
    font-size: 28px;
    font-weight: 800;
    color: #292C35;
    margin-bottom: 15px;
}

.about-card-body p,
.about-card-body li {
    color: #606674;
    font-size: 16px;
    line-height: 1.7;
}

.mini-stat {
    background: #fff;
    border-radius: 24px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 16px 40px rgba(41,44,53,.08);
}

.mini-stat h3 {
    color: #00909E;
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 5px;
}

.mini-stat span {
    color: #292C35;
    font-weight: 600;
}

@media (max-width: 768px) {
    .about-video-hero {
        min-height: 72vh;
        text-align: center;
        padding: 80px 0;
    }

    .about-hero-content h1 {
        font-size: 42px;
    }

    .about-hero-content p {
        font-size: 18px;
    }

    .about-img {
        height: 330px;
    }

    .about-card-img {
        height: 220px;
    }
}
/* =========================
   VIDEO HERO GLOBAL
========================= */

.video-hero,
.about-video-hero {
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: 105px 0 85px;
    background: #111827;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(17,24,39,.90),
            rgba(0,144,158,.76)
        );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.video-hero .row,
.about-video-hero .row {
    transform: translateY(18px);
}

.video-hero .section-label,
.about-video-hero .section-label,
.video-hero h1,
.about-video-hero h1,
.video-hero p,
.about-video-hero p {
    color: #fff;
}

.video-hero h1,
.about-video-hero h1 {
    font-size: clamp(46px, 5.4vw, 78px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -2px;
    max-width: 760px;
    margin-bottom: 24px;
}

.video-hero p,
.about-video-hero p {
    font-size: 21px;
    line-height: 1.6;
    max-width: 700px;
    color: rgba(255,255,255,.92);
}

.video-hero .avance-hero-logo {
    width: 100%;
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.video-hero .btn-outline-light,
.about-video-hero .btn-outline-light {
    border-width: 2px;
}

.video-hero .btn-outline-light:hover,
.about-video-hero .btn-outline-light:hover {
    background: #fff;
    color: #292C35;
}

/* RESPONSIVE */

@media(max-width:992px) {
    .video-hero,
    .about-video-hero {
        min-height: auto;
        padding: 90px 0;
        text-align: center;
    }

    .video-hero .row,
    .about-video-hero .row {
        transform: translateY(0);
    }

    .video-hero h1,
    .about-video-hero h1 {
        font-size: 46px;
        line-height: 1.05;
    }

    .video-hero p,
    .about-video-hero p {
        font-size: 18px;
    }

    .video-hero .avance-hero-logo {
        max-width: 240px;
        margin-top: 30px;
    }
}

@media(max-width:576px) {
    .video-hero,
    .about-video-hero {
        padding: 70px 0;
    }

    .video-hero h1,
    .about-video-hero h1 {
        font-size: 38px;
    }

    .video-hero p,
    .about-video-hero p {
        font-size: 16px;
    }
}
.service-image-card{
    overflow: hidden;
    border-radius: 24px;
    padding: 0;
    border: 1px solid rgba(0,144,158,.08);
    transition: .35s;
    background: #fff;
}

.service-image-card:hover{
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(0,0,0,.10);
}

.service-image{
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.service-body{
    padding: 24px;
}

.service-body h4{
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
    color: #1F2937;
}

.service-body p{
    font-size: 16px;
    line-height: 1.7;
    color: #4B5563;
}

@media(max-width:768px){

    .service-image{
        height: 180px;
    }

    .service-body{
        padding: 20px;
    }

    .service-body h4{
        font-size: 22px;
    }

}
/* =========================
   EXPERIENCE CARDS
========================= */

.experience-card{
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0,0,0,.08);
    transition: .35s;
    height: 100%;
}

.experience-card:hover{
    transform: translateY(-10px);
}

.experience-img{
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.experience-body{
    padding: 30px;
}

.experience-body h4{
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 15px;
}

.experience-body p{
    font-size: 17px;
    line-height: 1.7;
    color: #4B5563;
}

/* =========================
   TIMELINE
========================= */

.timeline{
    position: relative;
    max-width: 900px;
    margin: auto;
    padding-left: 30px;
    border-left: 3px solid #00909E;
}

.timeline-item{
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot{
    position: absolute;
    left: -42px;
    top: 5px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #00909E;
    border: 5px solid #fff;
    box-shadow: 0 0 0 3px #00909E;
}

.timeline-content h4{
    font-size: 30px;
    font-weight: 900;
    color: #00909E;
}

.timeline-content p{
    font-size: 18px;
    color: #4B5563;
    margin-top: 10px;
}

/* =========================
   CTA FINAL
========================= */

.about-cta{
    padding: 120px 0;
    background:
        linear-gradient(
            120deg,
            rgba(17,24,39,.95),
            rgba(0,144,158,.85)
        ),
        url('../img/oficina-avance.png');

    background-size: cover;
    background-position: center;
}

.about-cta h2{
    color: #fff;
    font-size: clamp(42px,5vw,72px);
    font-weight: 900;
    margin-bottom: 20px;
}

.about-cta p{
    color: rgba(255,255,255,.92);
    font-size: 20px;
    max-width: 850px;
    margin: auto;
}
