/* ====================================================================
   SLIDER DE VIDEO
==================================================================== */
.main-slider { position: relative; }
.main-slider .slide { position: relative; padding: 0 0 80px 0; height: 600px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: #000; z-index: 1; }
.video-background { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -2 !important; transform: translate(-50%, -50%); object-fit: cover; pointer-events: none; display: block !important; }
.main-slider .slide:before { position: absolute; content: ''; background: rgba(0, 0, 0, 0.40); width: 100%; height: 100%; left: 0px; top: 0px; z-index: -1; }
.main-slider .container { position: relative; z-index: 2; width: 100%; text-align: left; }
.main-slider h1 { position: relative; font-size: 40px; font-family: 'neuropolregular'; line-height: 55px; color: #ffffff; font-weight: 500; opacity: 1; margin-bottom: 44px; transition: all 1000ms ease; transform: translateY(50px); }
.main-slider .active h1 { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
.main-slider .text { position: relative; font-size: 22px; font-family: 'Poppins', sans-serif; line-height: 34px; font-weight: 300; color: #ffffff; margin-bottom: 36px; opacity: 0; transition: all 1000ms ease; transform: translateY(50px); }
.main-slider .active .text { opacity: 1; transform: translateY(0); transition-delay: 1300ms; }
.main-slider .slider-btn { opacity: 0; transition: all 1000ms ease; transform: translateY(50px); }
.main-slider .active .slider-btn { opacity: 1; transform: translateY(0); transition-delay: 2000ms; }

.css-video-slider { position: relative; width: 100%; height: 550px; overflow: hidden; background-color: #000; }
.css-video-slider .slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; animation: fadeVideos 30s infinite; }
.css-video-slider .video-background { width: 100%; height: 100%; object-fit: cover; }
.css-video-slider .slide:nth-child(1) { animation-delay: 0s; }
.css-video-slider .slide:nth-child(2) { animation-delay: 6s; }
.css-video-slider .slide:nth-child(3) { animation-delay: 12s; }
.css-video-slider .slide:nth-child(4) { animation-delay: 18s; }
.css-video-slider .slide:nth-child(5) { animation-delay: 24s; }
@keyframes fadeVideos { 0% { opacity: 0; z-index: 1; } 3% { opacity: 1; z-index: 2; } 17% { opacity: 1; z-index: 2; } 20% { opacity: 0; z-index: 1; } 100% { opacity: 0; z-index: 1; } }
.css-video-slider .text { opacity: 0; transform: translateY(40px); animation: fadeInUpText 1s ease-out forwards; animation-delay: 1.5s; }
@keyframes fadeInUpText { to { opacity: 1; transform: translateY(0); } }

/* ====================================================================
   ACERCA DE / NOSOTROS
==================================================================== */
.about-section{ position: relative; padding: 80px 0px 80px 0px; }
.about-title { padding: 0 0 60px 0; }
.about-intro { font-size: 24px !important; line-height: 1.8 !important; color: #777; text-align: justify; }
.about-intro .text-orange { font-size: 1.1em !important; font-family: 'neuropolregular', sans-serif !important; }

/* ====================================================================
   SERVICIOS / LÍNEAS DE NEGOCIO (Tarjetas Overlay)
==================================================================== */
.service-section { position: relative; }
.service-section .title-box { margin-bottom: 52px; }
.overlay-box { position: relative; }
.overlay-box .image-box { position: relative; overflow: hidden; }
.overlay-box .image-box img { width: 100%; }
.service-block-one { position: relative; background: #ffffff; transition: all 500ms ease; margin-bottom: 30px; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 2px 2px 12px 2px rgba(0, 0, 0, 0.09); }
.service-block-one .lower-content { padding: 25px 25px 25px 25px; }
.service-block-one .lower-content h3 a { display: inline-block; margin-bottom: 14px; }
.service-block-one .lower-content .text { position: relative; margin-bottom: 36px; }

.bg-box { display: flex; flex-direction: column; height: 100%; border: 1px solid #eee; width: 100%; padding: 0px 7px 10px; text-align: center; box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.04), 2px 2px 12px 2px rgba(0, 0, 0, 0.08); }
.bg-box h4 { margin: 20px 0 10px; flex-shrink: 0; }
.bg-box p { flex-grow: 1; margin-bottom: 10px; }
.bg-box .overlay-container { position: relative !important; display: block !important; overflow: hidden !important; border-radius: 8px; margin-bottom: 15px; background-color: #000; flex-shrink: 0; }
.bg-box .overlay-container img { display: block !important; width: 100% !important; height: auto !important; transition: transform 0.6s ease-in-out !important; }
.bg-box .overlay-text { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; background-color: rgba(233, 79, 27, 0.92) !important; display: flex !important; align-items: center !important; justify-content: center !important; padding: 20px !important; text-align: center !important; opacity: 0 !important; visibility: hidden !important; transition: all 0.4s ease !important; z-index: 5 !important; }
.bg-box .overlay-text p { color: #ffffff !important; font-size: 14px !important; line-height: 1.4 !important; margin: 0 !important; font-weight: 500 !important; transform: translateY(20px); transition: transform 0.4s ease; }
.bg-box .overlay-container:hover .overlay-text { opacity: 1 !important; visibility: visible !important; }
.bg-box .overlay-container:hover .overlay-text p { transform: translateY(0); }
.bg-box .overlay-container:hover img { transform: scale(1.1); }

/* ====================================================================
   CONTADORES ESTADÍSTICOS (Fact Counter)
==================================================================== */
.fact-counter{ position: relative; width: 100%; padding: 83px 0px 84px 0px; background-size: cover; background-repeat: no-repeat; background-position: center center; background-attachment: fixed; }
.fact-counter:before{ position: absolute; content: ''; background: rgba(0, 0, 0, 0.80); width: 100%; height: 100%; left: 0px; top: 0px; }
.counter-block-one{ position: relative; max-width: 170px; margin: 0 auto; opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.counter-block-one.is-visible { opacity: 1; transform: translateY(0); }
.counter-block-one .count-outer span{ position: relative; display: inline-block; font-size: 48px; line-height: 55px; font-family: 'Poppins', sans-serif; font-weight: 700; color: #ffffff; }
.counter-block-one .count-outer{ position: relative; padding-bottom: 12px; margin-bottom: 18px; }
.counter-block-one .count-outer:before{ position: absolute; content: ''; background: #e94f1b; width: 30px; height: 3px; left: 0px; bottom: 0px; transition: all 500ms ease; }
.counter-block-one:hover .count-outer:before{ width: 40px; }
.counter-block-one .text{ position: relative; font-size: 18px; font-family: 'Poppins', sans-serif; color: #ffffff; font-weight: 300; text-transform: uppercase; }

/* ====================================================================
   SECCIÓN MARCAS Y ANIMACIÓN VÍBORA
==================================================================== */
.brand-section{ position: relative; }
.brand-section .inner-content{ position: relative; margin: 0px -125px; }
.brand-section .title-box{ position: relative; }
.brand-section .title-box .title h2, .titulo h2 { position: relative; padding-top: 29px; text-transform: uppercase; color: #585857; }
.brand-section .title-box .title h2:before, .titulo h2:before{ position: absolute; content: ''; background: #e94f1b; width: 30px; height: 3px; left: 0px; top: 0px; }
.brand-section .title-box .text{ position: relative; font-size: 14px; font-family: 'Poppins', sans-serif; line-height: 20px; text-transform: uppercase; }
.brand-section .brand-content{ position: relative; float: right; }
.brand-section .brand-content li.image-box{ position: relative; float: left; margin-right: 25px; margin-top: 10px; margin-bottom: 10px; }
.brand-section .brand-content li.image-box:last-child{ margin-right: 0px; }
.brand-section .brand-content li.image-box img{ transition: all 500ms ease; }
.brand-section .brand-content li.image-box:hover img{ transform: scale(1.03); }

.brands-section-grid { background: #ffffff; padding: 80px 0; overflow: hidden; border-top: 1px solid #f2f2f2; border-bottom: 1px solid #f2f2f2; }
.brands-container { display: flex; flex-direction: column; gap: 40px; }
.brands-row { display: flex; width: 100%; }
.brands-track { display: flex; width: calc(250px * 12); }
.row-1 .brands-track { animation: marquee-inf 30s linear infinite; }
.row-2 .brands-track { animation: marquee-inf 40s linear infinite reverse; }
.row-3 .brands-track { animation: marquee-inf 35s linear infinite; }
.brand-item { width: 250px; flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: 0 20px; }
.brand-item:nth-child(odd) { animation: float-up 4s ease-in-out infinite; }
.brand-item:nth-child(even) { animation: float-down 4s ease-in-out infinite; animation-delay: 0.8s; }
.brand-item img { max-width: 150px; height: auto; filter: grayscale(100%); opacity: 0.5; transition: transform 0.2s ease-out, filter 0.2s ease, opacity 0.2s ease; user-select: none; }
.brand-item img:hover { filter: grayscale(0%); opacity: 1; transform: scale(1.3); cursor: pointer; }
@keyframes marquee-inf { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 6)); } }
@keyframes float-up { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float-down { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(15px); } }

/* ====================================================================
   NOTICIAS (CARRUSEL AUTOMÁTICO)
==================================================================== */
.news-section{ position: relative; }
.news-section .title-box{ margin-bottom: 52px; }
.news-scroll-wrapper { width: 100%; overflow: hidden; container-type: inline-size; }
.news-scroll-container { display: flex; gap: 30px; width: max-content; animation: autoScroll 40s linear infinite; }
.news-scroll-container:hover { animation-play-state: paused; }
@keyframes autoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.news-block-one { position: relative; background: #fff; transition: all 500ms ease; flex: 0 0 calc((100cqw - 90px) / 4); border: 1px solid #eee; }
.news-block-one .lower-content{ position: relative; padding: 38px 30px 45px 45px; }
.news-block-one .lower-content h3 a{ display: inline-block; margin-bottom: 5px; }
.news-block-one .lower-content .post-meta li{ position: relative; display: inline-block; margin-right: 12px; font-size: 12px; font-family: 'Poppins', sans-serif; font-weight: 500; }
.news-block-one .lower-content .post-meta li:last-child{ margin-right: 0px; }
.news-block-one .lower-content .post-meta li i{ position: relative; font-size: 14px; color: #e94f1b; margin-right: 5px; }
.news-block-one .lower-content .post-meta{ position: relative; margin-bottom: 15px; }
.news-block-one .lower-content .text{ margin-bottom: 36px; }
.news-block-one .lower-content .link a{ position: relative; display: inline-block; font-size: 14px; color: #222222; background: #ffffff; padding: 12px 32px; text-align: center; }
.news-block-one .lower-content .link a:hover{ background: #e94f1b; color: #ffffff; }

/* REGLAS RESPONSIVAS */
@media (max-width: 992px) { .news-block-one { flex: 0 0 calc((100cqw - 30px) / 2); } }
@media (max-width: 767px) { .news-block-one { flex: 0 0 calc(100cqw); } }