/*--------------------------------------------------------------
>>> GENERAL
----------------------------------------------------------------*/

section {
    overflow-x: hidden;
    overflow-y: hidden;
}
.title-container {
    position: relative;
}
h2.hard-title {
    font-family: 'Druk Bold', sans-serif;
    font-size: 12.5rem;
    letter-spacing: 3px;
    font-weight: 600;
    text-transform: uppercase;
    position: relative;
    margin: 15px auto 30px auto;
    width: fit-content;
    line-height: 14.5rem;
}
.title-container img {
    position: absolute;
    top: 20px;
    right: -120px;
    width: 150px;
    height: 100px;
    object-fit: cover;
    z-index: -1;
}

.team .title-container img:last-child {
    position: absolute;
    top: 123px;
    right: -345px;
    width: 340px;
    height: auto;
    object-fit: cover;
    z-index: -1;
}

@media screen and (max-width: 992px) {
    h2.hard-title {
        font-size: 4.5rem;
        letter-spacing: 3px;
    }
    .title-container img {
        position: absolute;
        top: -60px;
        right: calc(50% - 80px);
        width: 160px;
        height: 110px;
        object-fit: cover;
        z-index: -1;
    }

    .team .title-container img:last-child {
        top: 150px;
        right: -92px;
    }
}

/*--------------------------------------------------------------
>>> BUTTONS
----------------------------------------------------------------*/

.btn {
    display: inline-block;
    width: fit-content;
    border-radius: 30px;
    padding: 10px 20px;
    background: #000;
    color: #FFF;
}
.btn:hover {
    color: #FFF;
}
.btn.btn-gray {
    background: #3D3D3D;
}
.btn.btn-white {
    background: #FFF;
    color: #000;
}
.btn-container * {
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}
.btn-container .arrow-container {
    display: inline-block;
    background: #EC92FF;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: relative;
    color: #FFF;
    position: relative;
}
.btn-container .arrow-container i {
    position: absolute;
    top: 6px;
    left: 12px;
    font-size: 1.25rem;
}
.btn-container .arrow-container.first-arrow {
    transform: scale(0);
    width: 0px;
}
.btn-container:hover .arrow-container.first-arrow {
    transform: scale(1);
    width: 45px;
}
.btn-container:hover .arrow-container.second-arrow {
    transform: scale(0);
    width: 0px;
}


/*--------------------------------------------------------------
>>> MAIN BANNER
----------------------------------------------------------------*/

.main-banner {
    margin-top: -90px;
    position: relative;
}
.main-banner video {
    object-fit: cover;
    min-width: 100%;
}
.banner-caption {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100px;
}
.banner-caption h1 {
    font-family: 'Druk Bold', sans-serif;
    font-size: 16rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #FFF;
}
.banner-caption p {
    font-family: 'Aeonik Light', sans-serif;
    font-size: 2rem;
    color: #FFF;
}
@media screen and (max-width: 992px) {
    .main-banner {
        margin-top: 0px;
    }
    .banner-caption h1 {
        font-size: 9rem;
    }
    .banner-caption p {
        font-size: 1.25rem;
    }
}
@media screen and (max-width: 600px) {
    .banner-caption h1 {
        font-size: 4.5rem;
    }
}

/*--------------------------------------------------------------
>>> SOMOS
----------------------------------------------------------------*/

.somos {
    padding: 30px 0px;
    background: #F9F9F9;
}
.somos h3 {
    font-family: 'Aeonik Medium', sans-serif;
    text-transform: none;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

@media screen and (max-width: 992px) {
    .somos {
        padding: 60px 0px;
    }
}

/*--------------------------------------------------------------
>>> THINKING
----------------------------------------------------------------*/

.thinking {
    margin: 100px 0px;
}
@media screen and (min-width: 1200px) {
    .thinking {
        min-height: 975px;
    }
}

.thinking h2 {
    color: #8FA4EF;
}
.thinking article {
    margin-bottom: 20px;
}
.thinking article h4 {
    font-family: 'Aeonik Regular', sans-serif;
    text-transform: none;
    font-size: 1.125rem;
    font-weight: 600;
}
.thinking article img {
    /* min-height: 215px;
    min-width: 100%; */
    object-fit: cover;
}
.thinking article img.thinking-img {
    object-fit: cover;
    height: 250px;
}
.thinking .btn-container .arrow-container {
    color: #000;
    background: #DCFE6F;
}

p.date {
    margin: 7px 0px;
    display: inline-block;
    color: #888888;
}

.thinking-text {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    justify-content: space-between;
    height: 250px;
}

.thinking-text h4 {
    word-break: break-word;
    overflow: hidden;
    max-height: 65px;
}

/*--------------------------------------------------------------
>>> TEAM
----------------------------------------------------------------*/

.team {
    padding: 100px 0px;
    background: #000;
    color: #FFF;
}
.team .title-container img {
  z-index: 1;
}
.team .title-container .front-text {
    position: relative;
    z-index: 3;
    opacity: 0.9;
}
.team .col-3 {
    padding-right: 5px;
    padding-left: 5px;
}
.first-row,
.second-row {
    margin-bottom: 10px;
}
.team .first-row img {
    min-width: 100%;
    height: 395px;
    object-fit: cover;
}
.team .second-row img {
    min-width: 100%;
    height: 225px;
    object-fit: cover;
}
.square {
    display: inline-block;
    width: 100%;
    display: flex;
}
.black-square {
    height: 1px;
    background: #000;
}
.pink-square {
    height: 6px;
    background: #EC92FF;
}
.green-square {
    height: 12px;
    background: #DCFE6F;
}
.blue-square {
    height: 18px;
    background: #8FA4EF;
}

/*--------------------------------------------------------------
>>> EXPERTS
----------------------------------------------------------------*/

.experts {
    padding: 100px 0px;
    background: #000;
    color: #FFF;
}
.logo-text {
    font-size: 2rem;
    line-height: 2rem;
    display: inline-flex;
    padding: 7px 0px 7px 30px;
    border-left: 1px solid #FFF;
}
.experts .btn-container .arrow-container {
    color: #000;
    background: #8FA4EF;
}
@media screen and (max-width: 992px) {
    .experts {
        /* padding: 0px 0px 90px 0px; */
        padding: 100px 0px;
    }
}

/*--------------------------------------------------------------
>>> DISCOVER
----------------------------------------------------------------*/

.discover {
    padding: 100px 0px;
}
.discover .logo-text {
    border-left: 1px solid #000;
}

/*--------------------------------------------------------------
>>> CASOS
----------------------------------------------------------------*/

.casos {
    padding: 100px 0px;
    background: #8FA4EF;
}
.casos .hard-title i {
    position: relative;
    font-style: normal;
    color: #DCFE6F;
    z-index: 3;
}
.casos .title-container img {
  z-index: 1;
}
.casos .title-container .front-text i {
    position: relative;
    z-index: 3;
}
.casos article {
    margin-bottom: 60px;
}
.casos article h3 {
    font-family: 'Aeonik Medium', sans-serif;
    text-transform: none;
    letter-spacing: -1px;
    margin: 30px 0px;
    color: #FFF;
    font-size: 2.5rem;
    line-height: 2.5rem;
}
.casos article p {
    color: #FFF;
}
.casos .btn-container .arrow-container {
    color: #FFF;
    background: #000;
}
.casos iframe {
    min-height: 170px;
    width: 100%;
}
@media screen and (max-width: 992px) {
    .casos h2.hard-title {
        color: #FFF;
    }
    .casos iframe {
        min-height: 185px;
        width: 100%;
    }
}
p.subtitle {
    font-size: 2rem;
}

/*--------------------------------------------------------------
>>> CLIENTS
----------------------------------------------------------------*/

.clients {
    padding: 100px 0px;
}
.clients h2 {
    color: #8FA4EF;
}
.clients p {
    font-family: 'Aeonik Light', sans-serif;
}
.clients ul {
    list-style: none;
    margin-left: 0px;
    padding-left: 0px;
    display: grid;
    grid-gap: 5px;
    grid-template-columns: repeat(5, 1fr);
}
.clients ul li {
    display: inline-block;
}
@media screen and (max-width: 992px) {
    .clients ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-banner .ratio.ratio-16x9 {
        --bs-aspect-ratio: 170.25%;
    }
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Alinea filas */
    gap: 30px; 
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 1100px;
}

.clients-grid li {
    width: 180px; 
    height: 100px; 
    display: flex !important;   /* Forzamos Flex */
    align-items: center !important;    /* CENTRADO VERTICAL REAL */
    justify-content: center !important; /* CENTRADO HORIZONTAL REAL */
    padding: 15px;
    box-sizing: border-box;
}

/* Reset para imágenes generadas por WordPress */
.clients-grid li img {
    max-width: 100%;
    max-height: 100%;
    width: auto !important; /* Evita que WP fuerce anchos fijos */
    height: auto !important;
    object-fit: contain;
    display: block; /* Quita el espacio extra inferior de las imágenes */
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients-grid li:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .clients-grid li {
        width: 120px;
        height: 80px;
        padding: 10px;
    }
}

/* @media (prefers-color-scheme: dark) {
    .clients {
        background-color: #727070 !important;
        color: #fff !important;
        font-weight: bold !important;
    }
    .clients-grid li img {
        filter: none !important;
    }
} */


.text-justify {
    text-align: justify;
}

@media screen and (min-width: 992px) {
    .somos-p {
        padding: 0px;
    }
}

@media screen and (max-width: 992px) {
    .somos-p {
        gap: 1rem;
    }
    .somos-img {
        margin-top: 1rem;
    }
}