/* HERO NOSOTROS */
.hero-nosotros{
    position: relative;
    background-image: url('/img/banner/banner1.png');
    background-size: cover;
    background-position: center;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 72px;
    overflow: hidden;
}

.hero-nosotros-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 23, 115, 0.68) 0%, rgba(71, 99, 231, 0.78) 100%);
}

.hero-nosotros-container{
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-nosotros-btn{
    min-width: 180px;
    min-height: 56px;
    padding: 12px 34px;
    border-radius: 999px;
    border: 1.5px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: .4px;
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.hero-nosotros-btn:hover{
    background: #ffffff;
    color: #001773;
    transform: translateY(-1px);
}

/* TITLES */
.section-title-xl{
    font-size: 3.15rem;
    line-height: 1.02;
    font-weight: 700;
    color: #001773;
    margin: 0 0 28px;
}

.section-title-lg{
    font-size: 2.9rem;
    line-height: 1.05;
    font-weight: 700;
    color: #001773;
    margin: 0 0 22px;
}

/* SOBRE EL ESTUDIO */
.sobre-estudio-section{
    background: #f3f3f7;
    padding: 95px 0 70px;
}

.sobre-estudio-copy{
    max-width: 520px;
}

.sobre-estudio-copy p{
    font-size: 1.12rem;
    line-height: 1.52;
    color: #001773;
    margin: 0 0 10px;
}

.sobre-estudio-image-main img,
.sobre-estudio-image-secondary img{
    width: 100%;
    display: block;
    border-radius: 20px;
    object-fit: cover;
}

.sobre-estudio-image-main{
    max-width: 640px;
    margin-left: auto;
}

.sobre-estudio-box{
    margin-top: 64px;
    background: rgba(255,255,255,0.24);
    border-radius: 34px;
    padding: 72px 70px 54px;
}

.sobre-estudio-image-secondary{
    max-width: 500px;
}

.mission-vision-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 18px;
}

.mv-card{
    background: rgba(255,255,255,0.82);
    border-radius: 14px;
    padding: 26px 24px 22px;
    box-shadow: 0 14px 30px rgba(0,0,0,0.05);
    min-height: 258px;
}

.mv-icon{
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
}

.mv-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mv-card h3{
    font-size: 1.8rem;
    line-height: 1.1;
    font-weight: 500;
    color: #001773;
    margin: 0 0 12px;
}

.mv-card p{
    font-size: .98rem;
    line-height: 1.55;
    color: #001773;
    margin: 0;
}

/* VALORES */
.valores-section{
    background: #001773;
    padding: 86px 0;
}

.valores-layout{
    display: grid;
    grid-template-columns: 360px 120px 420px;
    justify-content: center;
    align-items: center;
    column-gap: 32px;
}

.valores-title-wrap{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.valores-title{
    font-size: 4rem;
    line-height: 0.95;
    font-weight: 0;
    letter-spacing: -1px;
    color: #ffffff;
    margin: 0;
    max-width: 250px;
    text-align: left;
}

.valores-connector{
    position: relative;
    height: 290px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.valores-connector::before,
.valores-connector::after{
    content: "";
    position: absolute;
    width: 42px;
    height: 1px;
    background: rgba(255,255,255,0.85);
    left: 50%;
    transform: translateX(-50%);
}

.valores-connector::before{
    top: 0;
}

.valores-connector::after{
    bottom: 0;
}

.valores-connector span{
    width: 1px;
    height: 100%;
    background: rgba(255,255,255,0.85);
    display: block;
    position: relative;
}

.valores-connector span::before{
    content: "";
    position: absolute;
    top: 50%;
    left: -72px;
    width: 72px;
    height: 1px;
    background: rgba(255,255,255,0.85);
}

.valores-list{
    display: flex;
    flex-direction: column;
    gap: 28px;
    justify-content: center;
}

.valor-item{
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2rem;
    line-height: 1.05;
    font-weight: 400;
    color: #ffffff;
}

.valor-icon{
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.valor-icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* MARCA */
.marca-section{
    background: #f3f3f7;
    padding: 86px 0 72px;
}

.marca-video-wrap {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    /* Mantiene ratio 16:9 aunque el video no haya cargado */
    aspect-ratio: 16 / 9;
}

/* Poster con imagen y botón play */
.marca-video-poster {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: 28px;
    overflow: hidden;
}

.marca-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 28px;
}

.marca-video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform .25s ease, background .25s ease;
    z-index: 3;
}

.marca-video-play:hover,
.marca-video-play:focus-visible {
    transform: scale(1.07);
    background: rgba(255, 255, 255, 0.38);
    outline: none;
}

/* Video nativo — oculto hasta que el usuario pulsa play */
.marca-video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 28px;
    z-index: 1;
    background: #000;
}

.marca-video-player--visible {
    display: block;
    z-index: 4;
}

.marca-copy{
    max-width: 470px;
}

.marca-copy p{
    font-size: 1.12rem;
    line-height: 1.52;
    color: #001773;
    margin: 0 0 10px;
}

/* EQUIPO */
.equipo-section{
    background: #f3f3f7;
    padding: 40px 0 90px;
    overflow: hidden;
}

.equipo-header{
    max-width: 860px;
    margin: 0 auto 46px;
    text-align: left;
}

.equipo-header p{
    font-size: 1.1rem;
    line-height: 1.5;
    color: #001773;
    margin: 0;
}

.equipo-carousel{
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
}

.equipo-viewport{
    overflow: hidden;
    width: 100%;
}

.equipo-track{
    display: flex;
    gap: 28px;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
    will-change: transform;
}

.team-card{
    position: relative;
    flex: 0 0 calc((100% - 84px) / 4);
    background: rgba(255,255,255,0.82);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0,0,0,0.05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.team-card:hover{
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 23, 115, 0.10);
}

.team-card-image{
    position: relative;
    overflow: hidden;
}

.team-card-image img{
    width: 100%;
    height: 265px;
    object-fit: cover;
    display: block;
    transition: transform .4s ease, filter .4s ease;
}

.team-card-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 265px;
    background: linear-gradient(
        180deg,
        rgba(0, 23, 115, 0.00) 5%,
        rgba(33, 66, 198, 0.16) 65%,
        rgba(0, 23, 115, 0.34) 100%
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
    z-index: 2;
}

.team-card:hover .team-card-overlay{
    opacity: 1;
}

.team-card:hover .team-card-image img{
    transform: scale(1.02);
    filter: saturate(1.02);
}

.team-card-body{
    padding: 16px 18px 18px;
    position: relative;
    z-index: 3;
    background: rgba(255,255,255,0.92);
}

.team-card-body h3{
    margin: 0 0 8px;
    font-size: 1.4rem;
    line-height: 1.15;
    font-weight: 500;
    color: #001773;
}

.team-card-body p{
    margin: 0 0 14px;
    font-size: .9rem;
    line-height: 1.45;
    color: #001773;
}

.team-card-social{
    display: flex;
    gap: 10px;
}

.team-card-social a{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 23, 115, 0.35);
    color: #001773;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: .85rem;
    transition: all .25s ease;
}

.team-card-social a:hover{
    background: #001773;
    color: #ffffff;
}

.equipo-arrow{
    border: 0;
    background: transparent;
    color: #001773;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity .25s ease, transform .25s ease;
}

.equipo-arrow:hover{
    transform: scale(1.06);
}

.equipo-arrow:disabled{
    opacity: .35;
    cursor: default;
    transform: none;
}

@media (max-width: 1199.98px){
    .team-card{
        flex: 0 0 calc((100% - 28px) / 2);
    }
}

@media (max-width: 767.98px){
    .team-card{
        flex: 0 0 100%;
    }

    .team-card-image img,
    .team-card-overlay{
        height: 320px;
    }

    .equipo-carousel{
        gap: 10px;
    }

    .equipo-arrow{
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 2.2rem;
    }
}



/* RESPONSIVE */
@media (max-width: 1199.98px){
    .section-title-xl{
        font-size: 2.6rem;
    }

    .section-title-lg{
        font-size: 2.35rem;
    }

    .sobre-estudio-box{
        padding: 48px 36px 36px;
    }

    .mission-vision-grid{
        grid-template-columns: 1fr;
    }

    .equipo-grid{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .equipo-nav{
        gap: 180px;
    }

    .valores-title{
        font-size: 3.2rem;
    }

    .valor-item{
        font-size: 1.9rem;
    }
}

@media (max-width: 991.98px){
    .hero-nosotros{
        min-height: 300px;
    }

    .hero-nosotros-container{
        min-height: 300px;
        justify-content: center;
    }

    .sobre-estudio-section{
        padding: 70px 0 50px;
    }

    .sobre-estudio-image-main{
        margin-left: 0;
    }

    .sobre-estudio-box{
        margin-top: 40px;
    }

    .sobre-estudio-image-secondary{
        max-width: 100%;
    }

    .valores-layout{
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .valores-connector{
        display: none;
    }

    .valores-title{
        max-width: 100%;
    }

    .marca-section{
        padding: 70px 0 60px;
    }

    .marca-copy{
        max-width: 100%;
    }

    .equipo-grid{
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 767.98px){
    .section-title-xl{
        font-size: 2.1rem;
    }

    .section-title-lg{
        font-size: 2rem;
    }

    .sobre-estudio-copy p,
    .marca-copy p{
        font-size: 1rem;
    }

    .mv-card h3{
        font-size: 1.45rem;
    }

    .mv-card p{
        font-size: .95rem;
    }

    .valores-section{
        padding: 60px 0;
    }

    .valores-title{
        font-size: 2.5rem;
    }

    .valor-item{
        font-size: 1.5rem;
    }

    .marca-video-play {
        width: 86px;
        height: 86px;
    }

    .marca-video-wrap {
        max-width: 100%;
        border-radius: 16px;
    }

    .marca-video-poster,
    .marca-video-thumb,
    .marca-video-player {
        border-radius: 16px;
    }

    .equipo-grid{
        grid-template-columns: 1fr;
    }

    .equipo-nav{
        gap: 100px;
    }

    .global-whatsapp{
        right: 16px;
        bottom: 20px;
        width: 54px;
        height: 54px;
    }
}

@media (max-width: 575.98px){
    .hero-nosotros{
        min-height: 260px;
        margin-top: 68px;
    }

    .hero-nosotros-container{
        min-height: 260px;
    }

    .hero-nosotros-btn{
        min-width: 150px;
        min-height: 48px;
        padding: 10px 24px;
        font-size: .95rem;
    }

    .sobre-estudio-box{
        padding: 30px 18px 24px;
        border-radius: 24px;
    }

    .valores-title{
        font-size: 2.15rem;
    }

    .valor-item{
        font-size: 1.25rem;
    }

    .team-card-image img{
        height: 320px;
    }
}
