:root {
    /* Colores principales */
    --yellow: #FFC002; /* Amarillo */
    --white: #ffffff;
    --black: #000000;

    /* Botón */
    --btn-border: 1px solid var(--yellow);
}

body {
    padding-top: 0 !important;
    font-size: 15px;
}

.container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

@media (min-width: 768px) {
    .container {
        max-width: 750px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1440px;
    }
}

.section-title {
    position: relative;
    max-width: 1920px;
    max-height: 280px;
    margin: 0 auto;
    text-align: center;
    z-index: 2;
}

.section-title img {
    width: auto;
    position: relative;
    height: auto;
    margin: 0 auto;
    max-height: 220px;
    text-align: center;
    max-width: 100%;
}

.section-title img + img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
}

.section-title .img-active {
    opacity: 0;
    transition: opacity 1s ease;
}

.section-title.visible .img-active {
    opacity: 1;
}

.section-title.visible .img-default {
    /*opacity: 0;*/
}


.refresh2025 .hero h1 {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 80px;
    text-align: left;
    color: var(--white);
}

@media (max-width: 991px) {
    .refresh2025 .hero h1 {
        font-size: 30px;
    }
}

@media (max-height: 700px) {
    .refresh2025 .hero h1 {
        font-size: 28px;
        padding-top: 70px;
    }

    #heroContent .buttons a {
        padding: 0.5em 0.9em !important;
    }
}

/* ===== HERO CONTAINER ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== VIDEO ===== */
.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease, opacity 1s ease;
    object-position: center center;
}

.hero video.slide-up {
    transform: translateY(-100%);
    opacity: 0;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: absolute;
    text-align: center;
    opacity: 0;
    max-width: 80%;
}

@media (max-width: 767px) {
    .hero-content {
        max-width: 86%;
    }
}

.hero-content.show {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ===== ANIMACIÓN GENERAL REUTILIZABLE ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    animation: revealUp 0.2s forwards ease-in;
}

@keyframes revealUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== PALABRAS ===== */
.word {
    display: inline-block;
    margin-right: 10px;
}

/* ===== BOTONES ===== */
.buttons {
    margin-top: 3.5rem;
    display: flex;
    gap: 0.75rem;
    /*justify-content: center;*/
}

@media (max-width: 991px) {
    .buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .buttons a {
        margin-bottom: 10px;
    }
}

.btn {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2.8rem;
    margin-right: 10px;
    border-radius: 40px;
    border: 1px solid #FFC002;
    font-weight: 500;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.3s, transform 0.3s;
}

.btn:hover {
    background: var(--yellow);
    transform: translateY(-2px);
}


.refresh2025 .hero h1 .word {

}

.refresh2025 .hero h1 .word:first-child,
.refresh2025 .hero h1 .word:first-child + .word {
    color: var(--yellow);
}


/* WORK */
#work-grid .section-title {
    margin-bottom: -50px;
}

.work-section-title {
    margin: 0 auto -100px;
    z-index: 1;
    position: relative;
    display: block;
}

.more-work {
    opacity: 1;
    width: auto;
    margin: 0 auto;
    transform: none !important;
    display: inline-block;
    margin-top: 40px;
}

/* Services */
.service-section-title {
    margin-bottom: 40px;
}

.section-services {
    text-align: left;
}

.section-services .section-title {
    margin-bottom: 30px;
}

.services-subheading {
    max-width: 90%;
    margin: 0 auto 20px;
}

.services-subheading p {
    padding-right: 100px;
    width: 50%;
    line-height: 1.8em;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    max-width: 90%;
}

.categories {
    flex: 1;
    width: 50%;
    border-right: 1px solid #333;
}

@media (max-width: 991px) {
    .services-subheading {
        display: block;
    }

    .categories {
        width: 100%;
    }

    .services-subheading p {
        width: 100%;
        padding-right: 0;
    }
}

.category {
    padding: 16px 0;
    border-bottom: 1px solid #333;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
    transition: all 0.3s ease-in-out;
    overflow: hidden;

}

.category span {
    transform: translateX(-35px);
    transition: all 0.3s ease-in-out;
    display: inline-block;

}

@media (max-width: 991px) {
    .category {
        font-size: 20px;
        font-weight: 400;
    }

    .category img {
        width: 35px !important;
    }

    .category.open {
        border-bottom: none !important;
    }
}


@media (max-width: 400px) {
    .category {
        font-size: 16px;
    }
}

.category:last-child {
    border-bottom: none;
}

.category img {
    margin-right: 10px;
    width: 65px;
    display: inline-block;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
}

.category.active {
    color: #FFC002;
    transition: all 0.3s ease-in-out;

}

.category.active span {
    color: #FFC002;
    transition: all 0.3s ease-in-out;
    transform: translateX(0);
}

.category.active img {
    display: inline-block;
    vertical-align: middle;
    transition: all 0.3s ease-in-out;
    transform: translateX(0);
}

.content {
    /*flex: 2;*/
    padding: 16px 120px;
    display: flex;
    align-items: center;
    width: 50%;
}

@media (max-width: 1199px) {
    .content {
        padding: 16px 40px;
    }
}

.content-item {
    display: none;
    line-height: 1.6;
    max-width: 400px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
}

.content-item.active {
    display: block;
}

/* --- MOBILE --- */
@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
    }

    .categories {
        border-right: none;
    }

    .content {
        display: none;
    }

    .category {
        position: relative;
    }

    .category::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 16px;
        transition: transform 0.3s;
    }

    .category.open::after {
        content: '-';
    }

    .accordion-content {
        display: none;
        padding: 0 0 16px 0;
        color: #ccc;
        font-weight: normal;
        border-bottom: 1px solid #333;
        line-height: 1.6;
    }

    .accordion-content.open {
        display: block;
    }
}


/* AWARDS */

.awards-ribbon {
    padding: 40px 0;
    margin-bottom: 100px;
    background: #FFC002;
}

.awards-ribbon .sliderNB .slideNB img {
    padding: 0 30px;
    filter: brightness(0);
    /*height: 100px;*/
}

/* Leadership */

#leadership-content {
    padding-top: 60px;
    margin-bottom: 120px;
}

@media (max-width: 991px) {
    #leadership-content {
        padding-top: 20px !important;
        margin-bottom: 0;
    }

    div#clients.section {
        padding-top: 20px;
    }
}

#leadership-content .section-title img {
    max-height: 380px;
}

#leadership-content .section-title {
    margin-bottom: 20px;
}

@media (max-width: 991px) {
    #leadership-content .section-title {
        margin-bottom: 20px;
    }
}

.leadership-section-title {
    margin-bottom: -140px;
}


#team-row {
    max-width: 90%;
    margin: 0 auto;
}

@media (max-width: 991px) {
    #team-row {
        max-width: none;
    }
}

div.people-item-container {
    padding: 10px;
    vertical-align: top;
    z-index: 4;
}

div.people-item {
    background-color: transparent !important;

    --angle: 19deg;
    --tan: calc(tan(var(--angle)));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (100% * var(--tan))), 0 100%);
    position: relative;
    z-index: 1;
    transition: background-color 0.3s ease-in-out;
}

div.people-container:hover .people-item {
    background-color: var(--black) !important;
    transition: background-color 0.3s ease-in-out;
}

div.people-item img {
    transition: background 0.3s ease-in-out;
    background: transparent;
    object-fit: cover;
    height: 100%;
}

div.people-containe:hover img {
    transition: background 0.3s ease-in-out;
    background: var(--white);
}

div.people-item .people-details {
    opacity: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    background: rgba(255, 204, 2, 0.85) !important;
    transition: opacity 0.3s ease-in-out;
    padding: 30px;
    color: var(--black);
    top: 0;
    text-align: left;
}

.people-details-mobile {
    display: none !important;
}

@media (max-width: 991px) {

    div.people-item .people-details {
        opacity: 0 !important;
        display: none !important;
        background: none !important;
    }

    div.people-item-container {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .people-details-mobile {
        display: flex !important;
        color: var(--white) !important;
        position: absolute;
        font-size: 14px;
        bottom: -59px;
        z-index: 4;
        text-align: right;
        right: 10px;
        width: 80%;
        flex-wrap: wrap;
        justify-content: flex-end;
        height: 128px;
        align-items: start;
        align-content: flex-start;
    }

    .people-details-mobile .name {
        color: var(--yellow);
        width: 100px;
        font-size: 16px;
    }

    .people-details-mobile .title {
        font-size: 12px;
        width: 100%;
    }

    div.people-item-container:last-child {
        width: 100%;
        margin-top: 0;
    }

    div.people-item-container .subheading {
        padding: 0 !important;
        font-size: 16px !important;
    }

    div.people-item-container {
        margin-left: 0;
    }

}

@media (max-width: 767px) {
    .people-details-mobile .title {
        /*width: 90%;*/
    }

    div.people-item-container {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

}

div.people-container:hover .people-details {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}


div.people-details div.name {
    color: var(--black);
    font-size: 30px;
    font-weight: 600;
    line-height: 1em;
    margin-bottom: 10px;
}

div.people-details div.title {
    color: var(--black);
    font-size: 15px;
    font-weight: 300;
    line-height: 1.2em;
}


div.people-container {
    position: relative;
}

div.people-container::before,
div.people-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*z-index: -1;*/
    transition: all 0.1s ease;
    opacity: 0;
    background: transparent;

    --angle: 19deg; /* puedes cambiarlo a 15deg, 25deg, etc */
    --tan: calc(tan(var(--angle)));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (100% * var(--tan))), 0 100%);
}


/* People Modal */

.close:hover, .close:focus {
    opacity: 1 !important;
}

.close:hover img {
    /*opacity: 1 !important;*/
    transform: rotate(180deg);
    transition: transform 0.6s ease-in-out;
    transform-origin: center;
}

.people-modal-header {
    display: flex;
    flex-wrap: wrap;
}

.people-data {
    width: 33%;
    padding-right: 30px;
}

@media (max-width: 1200px) {
    .people-data {
        width: 100%;
        padding-right: 30px;
        margin-bottom: 40px;
    }
}

.people-data .title {
    color: var(--yellow);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.people-data .people-modal-title {
}

@media (max-width: 1240px) {
    .people-data .people-modal-title {
        padding-right: 40px;
    }
}

@media (max-width: 991px) {
    .people-data .people-modal-title {
        padding-right: 0px;
        font-size: 14px;
    }

    .modal-header .close {
        /*margin-top: 10px;*/
        /*margin-right: 10px;*/
    }
}

.people-bio {
    width: 66%;
    column-width: 350px; /* ancho mínimo de cada columna */
    column-gap: 2rem; /* espacio entre columnas */
    max-width: 100%; /* evita que se desborde */
}

@media (max-width: 1200px) {
    .people-bio {
        width: 100%;
        column-width: 100%;
    }
}

/* Borde rojo: se desplaza 3px */
div.people-container::before {
    transform: translate(6px, 6px);
    background: #025AFF;
    /*z-index: -1;*/
}

/* Borde azul: se desplaza 6px */
div.people-container::after {
    background: #FF0202;
    transform: translate(3px, 3px);
    /*z-index: -2;*/
}

/* Mostrar los bordes en hover */
div.people-container:hover::before,
div.people-container:hover::after {
    opacity: 1;
    transition: all 1s ease;
}

/* (Opcional) transición más suave */
div.people-container:hover::before {
    /*transform: translate(3px, 3px);*/
}

div.people-container:hover::after {
    /*transform: translate(6px, 6px);*/
}

div.people-item-container .subheading {
    padding-top: 80px;
    padding-left: 30px;
    font-size: 18px;
    text-align: left;
}

/* Partners */

.partners-section-title {
    margin-bottom: -100px;
}

#clients {
    padding-top: 60px;
}

@media (min-width: 768px) {
    #clients .section-title {
        margin-bottom: -40px;
    }
}

@media (max-width: 991px) {
    #clients > .container {
        padding: 0;
    }
}

#clients-carousel {
    max-width: 90%;
    margin: 0 auto;
}

/* NEWS */
.news-section-title {
    margin-bottom: 60px;
}

#news {
    padding-top: 100px;
}

#news .news-link {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2.8rem;
    margin-right: 10px;
    border-radius: 40px;
    border: 1px solid #FFC002;
    font-weight: 500;
    transition: all 0.3s, transform 0.3s;
    font-size: 14px;
}

#news .news-link:hover {
    background: var(--yellow);
    color: #000000;
}

#news .news-title {
    margin-bottom: 20px !important;
    height: 200px;
    overflow: hidden;
    position: relative;
}

#news .news-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px; /* controla qué tan largo es el fade */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), black 80%);
}

#news .section-title {
    margin-bottom: 70px;
}

#news-carousel .carousel-inner {
    display: flex;
}

#news-carousel .item.next,
#news-carousel .item.active,
#news-carousel .item.prev,
#news-carousel .item {
    flex: 0 0 33% !important; /* 4 items visibles */
    display: block !important;
    transition: transform 0.6s ease;
    padding: 0 30px;
}

@media (max-width: 991px) {
    #news > .container {
        padding: 0;
    }
}

/* Footer */
.footer-section-title {
    display: block;
}

.footer-social-icons {
    display: flex;
}

.footer-social-icons a {
    text-align: center;
    background: var(--white);
    width: 35px;
    height: 35px;
    padding: 3px;
    border-radius: 50%;
    display: flex;
    align-content: center;
    justify-content: center;
    margin-right: 10px;
}

.footer-social-icons a:hover {
    background: var(--yellow);
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}

.footer-links > div {
    display: flex;
    align-items: center;
}

@media (max-width: 1200px) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-links > div {
        width: 100%;
        text-align: left;
        margin-bottom: 15px;
    }
}

@media (max-width: 767px) {
    .footer-links {
        display: flex;
        flex-wrap: wrap;
    }

    .footer-links a {
        margin-bottom: 10px;
    }
}

.footer-social-icons a .fa {
    color: var(--black);
}

.footer-social-icons a img {
    filter: brightness(0);
    width: 15px;
}

.footer-social-icons-mobile {
    margin-bottom: 40px;
}

#contact .section-title {
    margin-bottom: 80px;
}

#contact-form-panel {
    height: auto !important;
}

.gform_wrapper label.gfield_label {
    font-weight: normal !important;
}

.gfield.textarea-message {
    padding-top: 30px !important;
}

body .gform_wrapper ul li.gfield {
    margin-top: 0 !important;
}

#contact-form-panel button {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    margin-bottom: 40px !important;
    width: auto !important;
    border: 1px solid #000000;
}

#contact-form-panel button:hover {
    background: #000000;
    color: #FFC002 !important;
}

@media (max-width: 480px) {
    #contact-form-panel button {
        font-size: 14px !important;
    }
}

#field_11_4 label {
    display: none;
}

@media (max-width: 1199px) {
    div#contact-form-info {
        padding: 0 15px;
        text-align: left;
    }
}

/* News */
.Annual_Archive_Widget {
    display: none !important;
}

/* Careers */
#page-careers {
    margin-bottom: 100px;
}

/* Error 404 */
body.error404 {
    padding-top: 140px !important;
}

body.error404 #page-header {
    background: none !important;
}

body.error404 .lead {
    /*margin-bottom: 100px !important;*/
}

/* Modals */

@media (min-width: 768px) {
    .modal-dialog {
        margin: 120px auto;
    }
}

@media (max-width: 767px) {
    #hero-nav .container-fluid {
        padding-right: 15px;
    }

    #hero-nav .sliderNB .slideNB img {
        height: 60px;
    }

    #hero-nav .sliderNB .slideNB {
        height: 60px;
    }

    #hero-nav .sliderNB {
        height: 60px;
    }
}

/* News page */
#news-container {
    margin-bottom: 100px;
}

#news-container .single img {
    width: 100% !important;
    margin-bottom: 20px;
    height: auto !important;
}

.navbar-toggle {
    margin-right: 0;
}

.navbar-toggle .icon-bar {
    background: var(--yellow);
    width: 45px;
}


.navbar-toggle .icon-bar:first-child {
    transform: rotate(-19deg) translateY(3px);
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.navbar-toggle .icon-bar:first-child + .icon-bar {
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.navbar-toggle .icon-bar:first-child + .icon-bar + .icon-bar {
    transform: rotate(19deg) translateY(-9px) translateX(-2px);
    transform-origin: center;
    transition: all 0.3s ease-in-out;
}

.navbar-toggle.collapsed .icon-bar {
    transform: rotate(-19deg) !important;
    display: block !important;
    transition: all 0.3s ease-in-out;
    opacity: 1 !important;
    transform-origin: center;
}

.btn:focus {
    color: #ffffff;
}

.navbar-collapse {
    box-shadow: none !important;
}

/* Page Work */

#work-grid.page-work {
    padding-top: 160px;
}

@media (max-width: 767px) {
    #work-grid.page-work {
        padding-top: 240px;
        margin-bottom: 100px;
    }

    nav.navbar {
        /*height: 58px;*/
    }

    .navbar-header {
        padding: 8px 0;
    }
}

.logo-mobile {
    width: 100px !important;
}

.button-2025 {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 0.9rem 2.8rem;
    margin-right: 10px;
    border-radius: 40px;
    border: 1px solid #FFC002;
    font-weight: 500;
    transition: all 0.3s, transform 0.3s;
    font-size: 14px;
}

.button-2025:hover {
    background: var(--yellow);
    color: #000000 !important;
    text-decoration: none;
}

.columns-2 {
    column-count: 2;
    gap: 60px;
}

@media (min-width: 768px) {

    div#news.section .swiper-slide {
        opacity: 0.5;
    }

    div#news.section .swiper-slide.swiper-slide-next {
        opacity: 1;
    }

    .our-story {
        column-count: 2;
        column-width: auto;
        gap: 60px;
        margin: 0 auto;
    }
}

.modal-dialog.modal-our-story {
    max-width: 1200px;
    width: auto;
}

.modal-dialog.modal-our-story .people-bio img {
    margin-bottom: 20px;
}

.modal-our-story .people-data .title {
    margin-top: 0px;
}

@media (min-width: 768px) {
    .modal-dialog.modal-our-story {
        max-width: 1200px;
        padding-left: 60px;
        padding-right: 60px;
        width: auto;
    }

    .modal-dialog.modal-our-story .people-data {
        width: 30%;
    }
}

#contact-form-panel .gform_wrapper * {
    font-size: 15px;
}

.gfield.textarea-message label {
    margin-bottom: 7px !important;
}

#field_11_9 {
    display: none;
}

.footer-logo-cr-btns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

footer-logo-cr-btns .button-2025 {
    text-decoration: none !important;
}

.footer-logo-cr-btns > div {
    width: 100%;
    display: block;
    text-align: left;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .footer-logo-cr-btns {
        display: flex;
        flex-wrap: nowrap;
        justify-content: start;
    }

    .footer-logo-cr-btns > div {
        width: auto;
        text-align: left;
        margin-bottom: 0;
        margin-right: 20px;
    }

}

@media (min-width: 1200px) {
    .footer-links-nmsdc-logo {
        display: flex;
        justify-content: end;
    }
}

.phone-number a {
    font-size: 28px !important;
    display: block;
    margin-bottom: 60px;
    line-height: 1em;
    font-weight: 400;
}

@media (min-width: 1200px) {
    .miami-hq {
        /*width: 20%;*/
        width: 17%;
        display: flex;
        justify-content: left;
        padding-left: 15px !important;
        white-space: nowrap;
    }

    .nyc-hq {
        /*width: 40%;*/
        width: 37%;
        display: flex;
        justify-content: center;
    }

    .nyc-hq div.ny-office {
        white-space: nowrap;
    }

    .nyc-hq div.ny-office:first-child {
        margin-right: 80px;
    }

    .call-us {
        /*width: 20%;*/
        width: 26%;
        display: flex;
        justify-content: center;
    }

    .contact-emails {
        /*width: 20%;*/
        width: 21%;
        display: flex;
        justify-content: right;
        padding-right: 15px !important;
    }
}

.nmsdc-logo {
    position: relative;
    display: block;
    text-align: left;
    margin-right: 0 !important;

}

.nmsdc-logo img {
    width: 90px;
}

@media (min-width: 768px) {
    .nmsdc-logo {
    }
}

.footer-social-icons a {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}

.modal-dialog .short-content {
    column-width: auto !important;
}

@media (min-width: 768px) {
    .modal-dialog .short-content {
        width: 34% !important;
    }
}

.people-data img {
    background-color: transparent !important;
    --angle: 19deg;
    --tan: calc(tan(var(--angle)));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - (100% * var(--tan))), 0 100%);
    position: relative;
}

#peopleModal .modal-body {
    overflow: visible;
    max-height: 800px;
    padding-bottom: 0;
}

@media (min-width: 768px) {
    .modal-dialog .people-bio {
        max-height: 800px;
    }
}
