/* NCS 2026 - Diseño exclusivo de la página 10354 */

body.page-id-10354 {
    background: #f5f7fa;
}

/* Contenedor principal de servicios */
body.page-id-10354 .elementor-element-6552c71 > .elementor-container {
    max-width: 1220px;
}

/* Filas de servicios */
body.page-id-10354 .elementor-element-69e44fc > .elementor-container,
body.page-id-10354 .elementor-element-285e382 > .elementor-container,
body.page-id-10354 .elementor-element-6b60350 > .elementor-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* Columnas */
body.page-id-10354 .elementor-element-69e44fc > .elementor-container > .elementor-column,
body.page-id-10354 .elementor-element-285e382 > .elementor-container > .elementor-column,
body.page-id-10354 .elementor-element-6b60350 > .elementor-container > .elementor-column {
    width: 100%;
    min-width: 0;
}

/* Tarjetas */
body.page-id-10354 .elementor-widget-bdt-trailer-box {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(20, 39, 65, .12);
}

body.page-id-10354 .elementor-widget-bdt-trailer-box > .elementor-widget-container {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
}

/* Oscurecimiento para títulos */
body.page-id-10354 .elementor-widget-bdt-trailer-box > .elementor-widget-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 30, 50, .04) 20%,
        rgba(15, 30, 50, .35) 55%,
        rgba(15, 30, 50, .95) 100%
    );
    pointer-events: none;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box {
    position: relative;
    z-index: 2;
    height: 330px !important;
}

/* Títulos */
body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box .bdt-trailer-box-title {
    font-size: 19px !important;
    font-weight: 700;
    line-height: 1.3 !important;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,.4);
}

/* Botones */
body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box .bdt-trailer-box-button {
    opacity: 1 !important;
    visibility: visible;
    background: #a49355;
    color: #fff;
    border-radius: 5px;
}

/* Adaptación a tabletas */
@media (max-width: 1024px) {
    body.page-id-10354 .elementor-element-69e44fc > .elementor-container,
    body.page-id-10354 .elementor-element-285e382 > .elementor-container,
    body.page-id-10354 .elementor-element-6b60350 > .elementor-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Adaptación a celulares */
@media (max-width: 767px) {
    body.page-id-10354 .elementor-element-69e44fc > .elementor-container,
    body.page-id-10354 .elementor-element-285e382 > .elementor-container,
    body.page-id-10354 .elementor-element-6b60350 > .elementor-container {
        grid-template-columns: 1fr;
    }

    body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box {
        height: 300px !important;
    }

    body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box .bdt-trailer-box-title {
        font-size: 18px !important;
    }
}

/* NCS2026_ANIMACIONES_V2 */

body.page-id-10354 .elementor-widget-bdt-trailer-box {
    transition: transform .35s ease, box-shadow .35s ease;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box:hover {
    transform: translateY(-7px);
    box-shadow: 0 18px 40px rgba(20,39,65,.23);
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-title {
    padding-left: 22px !important;
    padding-right: 18px !important;
    box-sizing: border-box;
    animation: ncsFadeRight .7s ease both;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-button {
    margin-left: 22px !important;
    transition: transform .3s ease, background-color .3s ease;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box:hover .bdt-trailer-box-button {
    transform: translateX(5px);
}

@keyframes ncsFadeRight {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-id-10354 .elementor-widget-bdt-trailer-box,
    body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-title,
    body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-button {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== NCS 2026 HERO V1 ===== */

body.page-id-10354 .ncs-2026-hero {
    position: relative;
    background:
        linear-gradient(105deg, rgba(17,34,56,.96) 0%, rgba(25,48,76,.92) 55%, rgba(25,48,76,.40) 100%),
        url('https://poligrafiancs.com/wp-content/uploads/2022/03/Slider-01.jpg')
        center center / cover no-repeat !important;
    min-height: 540px;
    display: flex;
    align-items: center;
    padding: 75px 7% !important;
}

body.page-id-10354 .ncs-2026-hero > .elementor-container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
}

body.page-id-10354 .ncs-2026-hero .elementor-widget-heading:first-child .elementor-heading-title {
    color: #D4BD75 !important;
    font-size: 15px !important;
    letter-spacing: 2px;
    font-weight: 600;
}

body.page-id-10354 .ncs-2026-hero h1.elementor-heading-title {
    color: #FFFFFF !important;
    font-size: clamp(36px, 4.5vw, 62px) !important;
    line-height: 1.12 !important;
    max-width: 850px;
    font-weight: 700;
    margin: 18px 0;
}

body.page-id-10354 .ncs-2026-hero .elementor-widget-text-editor {
    color: #E7EDF5 !important;
    font-size: 18px !important;
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 25px;
}

body.page-id-10354 .ncs-2026-hero .elementor-button {
    background: #A49355 !important;
    color: #FFFFFF !important;
    border-radius: 5px !important;
    padding: 15px 27px !important;
    font-weight: 600;
    transition: background .3s ease, transform .3s ease;
}

body.page-id-10354 .ncs-2026-hero .elementor-button:hover {
    background: #C1A962 !important;
    transform: translateY(-3px);
}

body.page-id-10354 .ncs-2026-hero .elementor-widget-button {
    display: inline-block;
    width: auto;
    margin-right: 12px;
}

@media (max-width: 767px) {
    body.page-id-10354 .ncs-2026-hero {
        min-height: 460px;
        padding: 65px 22px !important;
        background-position: 65% center !important;
    }

    body.page-id-10354 .ncs-2026-hero h1.elementor-heading-title {
        font-size: 34px !important;
    }

    body.page-id-10354 .ncs-2026-hero .elementor-widget-text-editor {
        font-size: 16px !important;
    }

    body.page-id-10354 .ncs-2026-hero .elementor-widget-button {
        display: block;
        margin: 0 0 12px;
    }
}


/* ===== NCS 2026 - CLIENTES V1 ===== */

/* Carrusel original: solo presentación visual */
body.page-id-10354 .elementor-widget-image-carousel {
    margin: 24px auto 15px;
}

body.page-id-10354 .elementor-widget-image-carousel .swiper-slide {
    padding: 8px;
    box-sizing: border-box;
}

body.page-id-10354 .elementor-widget-image-carousel .swiper-slide img {
    width: 100%;
    max-height: 105px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    transition: transform .3s ease, box-shadow .3s ease;
}

body.page-id-10354 .elementor-widget-image-carousel .swiper-slide:hover img {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(25, 45, 70, .12);
}

/* Flechas de navegación */
body.page-id-10354 .elementor-widget-image-carousel .elementor-swiper-button {
    color: #a49355 !important;
    transition: color .25s ease;
}

body.page-id-10354 .elementor-widget-image-carousel .elementor-swiper-button:hover {
    color: #20344f !important;
}

/* Responsive */
@media (max-width: 767px) {
    body.page-id-10354 .elementor-widget-image-carousel {
        margin: 15px auto;
    }

    body.page-id-10354 .elementor-widget-image-carousel .swiper-slide {
        padding: 5px;
    }

    body.page-id-10354 .elementor-widget-image-carousel .swiper-slide img {
        max-height: 85px;
        padding: 8px;
    }
}


/* ===== NCS 2026 - SERVICIOS V4 ===== */

/* Fotografías y tarjetas */
body.page-id-10354 .elementor-widget-bdt-trailer-box {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20, 39, 61, .13);
    transition: transform .35s ease, box-shadow .35s ease;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(20, 39, 61, .22);
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .elementor-widget-container {
    min-height: 350px;
    border-radius: 14px;
    overflow: hidden;
}

/* Contenido de cada tarjeta */
body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-desc {
    padding: 24px !important;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-title {
    color: #fff !important;
    font-size: 19px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
    letter-spacing: .2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
    margin-bottom: 14px;
}

/* Botones institucionales */
body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-button {
    display: inline-block;
    background: #a49355 !important;
    color: #fff !important;
    padding: 11px 18px !important;
    border-radius: 5px;
    font-size: 12px !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .3s ease;
}

body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-button:hover {
    background: #c1a962 !important;
}

/* Animación de entrada */
@keyframes ncs2026ServiceReveal {
    from {
        opacity: 0;
        transform: translateX(24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    body.page-id-10354 .elementor-widget-bdt-trailer-box {
        animation: ncs2026ServiceReveal .65s ease both;
    }
}

/* Ajustes para celulares */
@media (max-width: 767px) {
    body.page-id-10354 .elementor-widget-bdt-trailer-box .elementor-widget-container {
        min-height: 300px;
    }

    body.page-id-10354 .elementor-widget-bdt-trailer-box .bdt-trailer-box-title {
        font-size: 18px !important;
    }
}


/* NCS 2026 - Banderas GTranslate en celular horizontal */
@media screen and (orientation: landscape) and (max-height: 600px) and (pointer: coarse) {

    /* Banderas individuales */
    .gtranslate_wrapper img,
    .gtranslate_wrapper .gt_flag,
    .switcher img,
    .switcher .option img,
    .switcher .selected img,
    a.glink img {
        width: 24px !important;
        height: 18px !important;
        max-width: 24px !important;
        max-height: 18px !important;
        object-fit: cover !important;
        display: inline-block !important;
    }

    /* Enlaces de idioma */
    .gtranslate_wrapper a.glink,
    a.glink {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
    }

    /* Evitar imágenes de banderas expandidas */
    .gtranslate_wrapper,
    .switcher {
        max-width: 100% !important;
    }
}
