/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #111;
    color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* -------------------------------------
   Header / Navbar
   ------------------------------------- */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.logo img {
    max-width: 250px;
    height: auto;
}

.menu-toggle {
    display: none;
    font-size: 32.2px;
    cursor: pointer;
    color: #fff;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul li a {
    font-size: 16.1px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: #1246a0;
}

/* Dropdown Sub-menu */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #000;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sub-menu li a {
    padding: 10px 20px;
    font-size: 14.95px;
    text-transform: none;
}

.sub-menu li a:hover {
    color: #1246a0;
}


/* -------------------------------------
   Hero Slider
   ------------------------------------- */
.swiper-container {
    width: 100%;
    height: 100vh;
    position: relative;
}

.slide-item {
    position: relative;
    overflow: hidden;
}

.bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

/* Overlay for images */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
}

/* Caption and Text Styles */
.caption {
    max-width: 800px;
}

.slider_hero_title {
    font-size: 9.2vw;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slider_hero_title a {
    color: #fff;
    display: inline-block;
    transition: color 0.3s;
}
.slider_hero_title a:hover {
    color: #1246a0;
}

.stroke {
    -webkit-text-stroke: 1.5px #fff;
    color: transparent;
}

.dis {
    font-size: 18.4px;
    font-family: 'Roboto Mono', monospace;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: inline-block;
    position: relative;
    padding-left: 50px;
}

.dis::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 40px;
    height: 1px;
    background: #fff;
}

/* Splitting Animation Config */
.splitting .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotate(5deg);
}

/* Controls (Flechas) */
.swiper-button-next, .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background: #1246a0;
}

.swiper-button-next:after, .swiper-button-prev:after {
    display: none; /* Oculta los iconos por defecto de Swiper para usar FontAwesome */
}

/* Paginación */
.swiper-pagination {
    bottom: 30px !important;
}
.swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 10px;
    height: 10px;
}
.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff;
}

/* Social Wrapper (Enlaces Verticales) */
.social-wrapper {
    position: absolute;
    right: 50px;
    bottom: 50px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-wrapper .icon {
    font-size: 20.7px;
    margin-bottom: 10px;
    color: #fff;
}

.social_link {
    font-size: 13.8px;
    font-weight: 500;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-transform: uppercase;
    transition: color 0.3s;
}

.social_link:hover {
    color: #1246a0;
}

/* -------------------------------------
   Responsive (Celulares y Tablets)
   ------------------------------------- */
@media (max-width: 1280px) {
    /* Header Responsive */
    .header {
        padding: 20px;
        background: #000;
    }
    
    .logo img {
        max-width: 180px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        display: none;
    }
    
    .nav-menu.show {
        display: block;
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        padding: 10px 0 0 20px;
        display: none;
    }
    
    .has-children.active .sub-menu {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .social-wrapper {
        display: none; /* A menudo se oculta en móvil para dar espacio */
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .slider_hero_title {
        font-size: 13.8vw; /* Ajuste para teléfonos */
    }
    
    .dis {
        font-size: 16.1px;
        padding-left: 40px;
        letter-spacing: 2px;
    }
    
    .dis::before {
        width: 30px;
    }
    
    /* Flechas ocultas en mobile, se usa swipe */
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}


/* -------------------------------------
   What We Do Section (Image Grid Marquee)
   ------------------------------------- */
.what-we-do-grid-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.grid-background-wrapper {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.grid-columns {
    display: flex;
    gap: 15px;
    height: 100%;
    justify-content: center;
    transform: rotate(-45deg);
}

.grid-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 20vw;
    min-width: 220px;
}

.grid-col img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.85; /* Más claro, menos oscurecido */
    filter: brightness(0.9);
    transition: opacity 0.3s;
}

.grid-col img:hover {
    opacity: 1;
}

/* Scroll Animations */
.scroll-up {
    animation: scrollUp 40s linear infinite;
}

.scroll-down {
    animation: scrollDown 40s linear infinite;
}

@keyframes scrollUp {
    0% { transform: translateY(0); }
    100% { transform: translateY(calc(-50% - 7.5px)); }
}

@keyframes scrollDown {
    0% { transform: translateY(calc(-50% - 7.5px)); }
    100% { transform: translateY(0); }
}

/* Overlay gradient for better text readability */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Foreground Content */
.grid-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.grid-title {
    font-size: 5.75rem;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -2px;
    color: #ffffff;
    margin-bottom: 5px;
}

.grid-subtitle {
    font-size: 1.265rem;
    color: #aaaaaa;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.grid-btn {
    display: inline-block;
    padding: 15px 35px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.grid-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

@media (max-width: 768px) {
    .grid-title {
        font-size: 4.025rem;
    }
    .grid-col {
        width: 35vw;
        min-width: 150px;
    }
    .grid-col img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0.85; /* Más claro, menos oscurecido */
    filter: brightness(0.9);
    transition: opacity 0.3s;
}
}


/* DIAGMOTOR hero photos: full bleed, with a focal point for each slide. */
.parallax-slider{height:100vh;height:100svh;min-height:520px;overflow:hidden}
.parallax-slider .bg-img{background-image:none;background-color:#111}
.parallax-slider .hero-image{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:var(--hero-position,50% 50%)}
.parallax-slider .overlay{background:linear-gradient(90deg,rgba(0,0,0,.52),rgba(0,0,0,.18) 65%,rgba(0,0,0,.12))}
@media(max-width:991px){
 .parallax-slider .hero-image{object-position:var(--hero-position-mobile,var(--hero-position,50% 50%))}
 .parallax-slider .slide-content .container{padding-inline:clamp(20px,5vw,50px)}
}
@media(max-width:600px){
 .parallax-slider{min-height:540px}
 .parallax-slider .slide-content{align-items:flex-end;padding-top:110px;padding-bottom:max(100px,calc(env(safe-area-inset-bottom) + 80px))}
 .parallax-slider .slider_hero_title{font-size:clamp(41.4px,12.65vw,73.6px);line-height:1.08}
 .parallax-slider .overlay{background:linear-gradient(180deg,rgba(0,0,0,.15) 15%,rgba(0,0,0,.22) 38%,rgba(0,0,0,.72) 100%)}
 .parallax-slider .dis{font-size:13.8px;letter-spacing:1.4px}
}
@media(max-height:500px) and (orientation:landscape){
 .parallax-slider{height:100svh;min-height:360px}
 .parallax-slider .slide-content{align-items:center;padding-top:75px;padding-bottom:45px}
 .parallax-slider .slider_hero_title{font-size:clamp(34.5px,6.9vh,55.2px);margin-bottom:12px}
 .parallax-slider .hero-image{object-position:var(--hero-position,50% 50%)}
}
