/* ===== Base ===== */
:root {
    --brand-red: #BF1B28;
    --brand-blue: #00477E; 
    --brand-yellow: #FAC22D;
    --brand-gray: #BCBABB;
    --text-dark: #111111;
    --text-light: #555555;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

section { scroll-margin-top: 110px; }

html.no-scroll,
body.no-scroll{
  height: 100% !important;
  overflow: hidden !important;
}


a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding { padding: 80px 0; }

h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 10px;
}
.subtitle.white { color: rgba(255,255,255,0.8); }

/* ===== Header ===== */
.header-merged {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 80px;
    z-index: 1000;
    background: transparent;
    transition: background-color 0.3s ease;
}

.header-merged.scrolled {
    background-color: var(--brand-blue);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-content-centered {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1410px;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

.logo-header-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-logo-img {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}
.logo-header-link:hover .header-logo-img { transform: scale(1.05); }

.nav-desktop { display: flex; gap: 40px; }
.nav-desktop a {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-desktop a:hover { color: var(--brand-yellow); }

.menu-toggle { 
    display: none; 
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2000;
}

.nav-mobile { 
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: rgba(3, 88, 140, 0.98); 
    backdrop-filter: blur(10px);
    z-index: 1500;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.nav-mobile a {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 15px 0;
    transition: transform 0.3s ease;
}
.nav-mobile a:hover { color: var(--brand-yellow); }

/* ===== Hero ===== */
.hero-3d-section {
    min-height: auto; 
    padding: 130px 20px 40px; 
    background: 
        linear-gradient(to bottom, rgba(0, 71, 126, 0.9), rgba(0, 42, 77, 0.95)),
        url('/img/carrusel/almacen2.png'); 
    background-size: cover;
    background-position: center;
    align-items: flex-start; 
}

.hero-bg-slider { display: none; }
.slide-item { display: none; }

.hero-grid-3d {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.hero-visuals {
    position: relative;
    height: 250px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-object {
    position: absolute;
    max-height: 100%;
    width: auto;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-in-out;
}
.hero-object.active { 
    opacity: 1;
    transform: translateX(0) scale(.75); 
}

/* ===== About ===== */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p { margin-bottom: 1.5rem; text-align: justify; }

.about-video {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    align-self: center;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    background-color: #000;
}
.about-video video {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.02) saturate(1.05);
    image-rendering: auto;
    transform: translateZ(0);
}

/* ===== Valores ===== */
.values-block { 
    position: relative;
    padding: 80px 0; 
    margin-top: 60px;
    background-image: url('/img/image.png');
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
}
.values-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(220, 220, 220, 0.85);
    z-index: 1;
}
.values-block .container { position: relative; z-index: 2; }

.values-text {
    padding-right: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.values-text p {
    margin-bottom: 30px;
    line-height: 1.8;
    text-align: justify;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.value-img {
    width: 100%; height: 100%;
    object-fit: cover;
    aspect-ratio: 1/1;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-radius: 12px;
}

/* ===== Empresas ===== */
#empresas.section-padding { padding-top: 20px; padding-bottom: 80px; }
.section-header { text-align: center; margin-bottom: 50px; }

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    justify-items: center;
}

.brand-card {
    width: 220px; height: 220px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    display: flex; align-items: center; justify-content: center;
}
.brand-card:hover { transform: translateY(-5px); cursor: pointer; }

.brand-link {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
}
.brand-link img {
    max-width: 85%; max-height: 85%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s;
}
.brand-card:hover img { filter: grayscale(0%); }

.border-gray { border: 6px solid var(--brand-gray); }
.border-yellow { border: 6px solid var(--brand-yellow); }
.border-red { border: 6px solid var(--brand-red); }
.border-blue { border: 6px solid var(--brand-blue); }

/* ===== Servicios ===== */
.services-banner { 
    background-color: var(--brand-red); 
    color: white;
    padding: 60px 0;
    overflow: hidden;
}

.services-banner .grid-2 {
    grid-template-columns: 1.22fr 1fr;
    gap: 50px;
    align-items: center;
}

.services-collage {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 25px;
    height: 400px;
    width: 100%;
}
.service-img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    display: block;
}
.vertical { grid-row: span 2; height: 100%; }

.services-intro p {
    margin-bottom: 20px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

.services-details {
    position: relative;
    padding: 100px 0;
    background-color: white;
    overflow: hidden;
}

.services-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    z-index: 1;
}
.bg-img { width: 50%; height: 100%; object-fit: cover; }
.bg-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
}

.services-card {
    position: relative; z-index: 2;
    background: white;
    padding: 60px;
    border-radius: 12px;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 50px;
    text-align: center;
}

/* ===== Desktop ===== */
@media (min-width: 901px) {

    .hero-mobile-slider { display: none !important; }
    .hero-bg-slider, .slide-item { display: block !important; }

    section:not(#servicios):not(#contacto) h2,
    .values-block h2 { 
        color: var(--brand-blue) !important;
    }

    section:not(#servicios):not(#contacto) .subtitle,
    .values-block .subtitle {
        color: var(--brand-red) !important;
        font-weight: 700;
    }

    .header-merged {
        background-color: rgba(3, 88, 140, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

.hero-3d-section {
    position: relative;
    width: 100%;
    height: 740px;
    padding: 130px 20px 40px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    background-color: #00477E;
    background-image: none;
}

.hero-bg-slider {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.slide-item {
    display: block;
    position: absolute;
    inset: 0;
    background-size: 99.9% ;
    background-repeat: no-repeat;
    

    background-image:
        var(--bg-image);
    opacity: 0;
    animation: crossFade 16s infinite;

    background-position: center 17%;
}

.slide-item:nth-child(1) { 
    animation-delay: 0s; 
    background-position: center 15%;
}
.slide-item:nth-child(2) { 
    animation-delay: 4s; 
    background-position: center 45%;
}
.slide-item:nth-child(3) { 
    animation-delay: 8s; 
    background-position: center 65%;
}
.slide-item:nth-child(4) { 
    animation-delay: 12s; 
    background-position: center 16%;
}

@keyframes crossFade {
    0%   { opacity: 0; }
    10%  { opacity: 1; }
    25%  { opacity: 1; }
    35%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-grid-3d { 
    position: relative; 
    z-index: 2; 
}

.hero-bg-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}


    #servicios .services-slider { position: relative; }

    #servicios .services-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 52px;
        height: 52px;
        border-radius: 999px;
        background: #fff;
        border: 1px solid rgba(0,0,0,0.10);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 10;
        box-shadow:
          0 22px 45px rgba(0,0,0,0.22),
          0 8px 14px rgba(0,0,0,0.10);
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    }

    #servicios .services-arrow:hover {
        transform: translateY(-50%) scale(1.05);
        border-color: rgba(250, 194, 45, 0.55);
        box-shadow:
          0 28px 60px rgba(0,0,0,0.26),
          0 10px 18px rgba(0,0,0,0.12);
    }

    #servicios .services-arrow:active {
        transform: translateY(-50%) scale(0.98);
    }

    #servicios .services-arrow img{
        width: 22px;
        height: 22px;
        position: static;
        display: block;
        pointer-events: none;
    }


    #servicios .services-arrow-prev { left: 10px; }
    #servicios .services-arrow-next { right: 10px; }

    #servicios .services-details {
        background-color: transparent;
        padding: 120px 0;
    }

    #servicios .services-card {
        background: transparent;
        box-shadow: none;
        padding: 0;
        max-width: 1100px;
    }

    #servicios .services-slider {
        position: relative;
        z-index: 2;
        overflow: hidden;
        padding: 10px 0;
    }

    #servicios .services-track {
        display: flex;
        gap: 40px;
        will-change: transform;
    }

    #servicios .service-slide {
        flex: 0 0 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }

    #servicios .services-slider .service-glass { display: none !important; }

    #servicios .service-desktop {
        width: min(760px, 92%);
        padding: 48px 56px;
        border-radius: 22px;
        background: #ffffff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow:
            0 28px 65px rgba(0, 0, 0, 0.20),
            0 10px 18px rgba(0, 0, 0, 0.10);
        text-align: center;
        color: var(--text-dark);
        transform: translateY(0);
        transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }

    #servicios .service-desktop:hover {
        transform: translateY(-6px);
        box-shadow:
            0 38px 85px rgba(0, 0, 0, 0.26),
            0 14px 26px rgba(0, 0, 0, 0.12);
        border-color: rgba(250, 194, 45, 0.55);
    }

    #servicios .service-desktop h3 {
        margin: 0 0 14px 0;
        font-size: 1.55rem;
        font-weight: 900;
        letter-spacing: 0.10em;
        text-transform: uppercase;
        color: var(--brand-blue);
        line-height: 1.15;
    }

    #servicios .service-desktop h3::after {
        content: "";
        display: block;
        width: 86px;
        height: 3px;
        margin: 14px auto 0;
        border-radius: 99px;
        background: var(--brand-yellow);
        opacity: 0.95;
    }

    #servicios .service-desktop p {
        margin: 18px auto 0;
        max-width: 620px;
        font-size: 1.06rem;
        line-height: 1.85;
        color: #444;
        text-align: center;
    }

    #servicios .services-slider .service-item.service-slide {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        overflow: visible !important;
    }
}

/* ===== Contacto ===== */
.contact-section {
    background-color: #f4f6f8;
    padding: 100px 0;
    color: #333;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-center { text-align: center; width: 100%; }
.section-header-left h2 {
    color: var(--brand-blue);
    font-size: 2.8rem;
    margin-top: 5px;
    margin-bottom: 30px;
}
.section-header-left .subtitle { color: var(--brand-red); font-weight: 600; }

.contact-list { display: flex; flex-direction: column; gap: 30px; }
.contact-item { display: flex; align-items: flex-start; gap: 20px; }
.icon-box { font-size: 1.5rem; }

.contact-item strong {
    display: block; color: #111; font-size: 0.9rem; margin-bottom: 5px;
}
.contact-item p, .contact-item a {
    color: #555; font-size: 1.1rem; line-height: 1.4;
}
.contact-item a:hover { color: var(--brand-blue); text-decoration: underline; }

.map-container {
    width: 100%; height: 450px;
    background: rgb(255, 255, 255); padding: 10px;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.map-container iframe { border-radius: 8px; display: block; }

.main-footer {
    width: 100%;
    background-color: var(--brand-blue);
    color: white;
    margin-top: auto;
}
.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-bottom p {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 1px;
    opacity: 0.9;
    font-weight: 500;
}

.main-footer { overscroll-behavior: contain; }

/* ===== Mobile ===== */
@media (max-width: 900px) {

  .hero-bg-slider, .slide-item { display: none !important; }
  .hero-mobile-slider { display: block !important; }

  :root{
    --m-header: 60px;
    --m-gap: 0px;
  }

  .hero-3d-section {
    aspect-ratio: 16 / 7;
    max-height: 185px;
    background-size: cover !important;
    background-position: center 20% !important;
  }

  section{
    scroll-margin-top: calc(var(--m-header) + var(--m-gap)) !important;
  }

    section:not(#servicios):not(#contacto) h2,
    .values-block h2 { 
        color: var(--brand-blue) !important;
    }

    section:not(#servicios):not(#contacto) .subtitle,
    .values-block .subtitle {
        color: var(--brand-red) !important;
        font-weight: 700;
    }

    .nav-desktop { display: none; }

    .header-content-centered {
        width: 100%; padding: 0 20px;
        display: flex; justify-content: space-between; align-items: center;
    }

    .header-logo-img {
        height: 60px;
        width: auto; margin: 0;
    }

    .menu-toggle { 
        display: block; color: white !important;
        font-size: 1.8rem; padding: 5px; margin: 0; z-index: 2001; 
    }

    .nav-mobile {
        display: flex; 
        flex-direction: column;
        justify-content: flex-start; 
        padding-top: 100px; 
        
        position: fixed;
        top: 0; 
        right: -100%; 
        left: auto;
        
        width: 75%; 
        max-width: 300px; 
        height: 100vh;
        
        background-color: rgba(3, 88, 140, 0.98);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        
        border-top-left-radius: 30px;
        border-bottom-left-radius: 30px;
        z-index: 1500;
        
        opacity: 1; 
        visibility: visible;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .nav-mobile.active {
        right: 0; 
        box-shadow: -5px 0 20px rgba(0,0,0,0.2), 0 0 0 1000vmax rgba(0, 0, 0, 0.6);
    }

    .nav-mobile a {
        font-size: 1.2rem; 
        margin: 10px 0; 
        width: 100%;
        padding-left: 40px; 
        text-align: left;
        border-left: 3px solid transparent; 
        color: white;
    }
    
    .nav-mobile a:hover, 
    .nav-mobile a:active {
        background: rgba(255,255,255,0.1);
        border-left: 3px solid var(--brand-yellow);
    }
    

    @keyframes heroCarouselMobile {
  0%   { background-image: url('/img/carrusel/Bmw-3.png'); background-position: center 40%; }
  25%  { background-image: url('/img/carrusel/CARRUSEL-FINAL-FINAL-2.png'); background-position: center 25%; }
  50%  { background-image: url('/img/carrusel/CARRUSEL-CELLLL.png'); background-position: center 50%; }
  75%  { background-image: url('/img/carrusel/slogan.png'); background-position: center 35%; }
  100% { background-image: url('/img/carrusel/Bmw-3.png'); background-position: center 40%; }
}


    body { padding-top: 0px; }

     /* Oculta la primera imagen (pila de autos) */
  .services-collage .service-img:first-child {
    display: none !important;
  }

  /* Evita el carrusel horizontal y muestra 1 imagen a ancho completo */
  .services-collage {
    display: block !important;
    overflow: hidden !important;
    height: auto !important;
    padding: 0 !important;
  }

  /* La imagen visible (grúa) ocupa todo el ancho */
  .services-collage .service-img {
    width: 100% !important;
    height: 280px !important;   /* ajusta si la quieres más alta/baja */
    object-fit: cover !important;
    border-radius: 12px !important;
  }

    #servicios .service-desktop { display: none !important; }
    #servicios .services-arrow { display: none !important; }
    #servicios .services-slider.desktop-only { display: none !important; }
    
    #servicios .services-list.mobile-only { 
        display: flex !important; 
        flex-direction: row !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 14px !important;
        padding: 22px 16px !important;
        width: 100%;
        scrollbar-width: none;
    }
    
    #servicios .services-list.mobile-only::-webkit-scrollbar { display: none; }

    #servicios .services-list.mobile-only .service-item {
        flex: 0 0 84% !important;
        max-width: 360px !important;
        padding: 12px;
        height: auto !important;
        min-height: 420px !important;
        
        background: #fff !important;
        border-radius: 24px !important;
        overflow: hidden !important;
        border: 1px solid rgba(0,0,0,0.10) !important;
        box-shadow: 0 18px 40px rgba(0,0,0,0.18) !important;
        
        scroll-snap-align: center;
        position: relative !important;
        background-image: none !important;
        margin: 0 !important;
    }

    #servicios .services-list.mobile-only .service-item::before {
        content: ""; 
        display: block; 
        width: 100%; 
        aspect-ratio: 16 / 9; 
        max-height: 200px;
        
        background-image: var(--svc-img); 
        background-size: cover; 
        background-position: center;
        background-repeat: no-repeat; 
        
        border-radius: 16px; 
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        margin-bottom: 10px;
    }

    #servicios .services-list.mobile-only .service-glass {
        position: static !important; 
        width: auto !important; 
        height: auto !important;
        
        background: transparent !important; 
        backdrop-filter: none !important; 
        border: 0 !important;
        padding: 10px 18px 18px !important; 
        display: block !important;
    }

    #servicios .services-list.mobile-only .service-glass h3 {
        margin: 4px 0 10px 0 !important; 
        font-size: 1.22rem !important; 
        font-weight: 900 !important;
        color: var(--brand-blue) !important; 
        text-transform: none !important; 
        line-height: 1.2 !important;
    }

    #servicios .services-list.mobile-only .service-glass h3::after {
        content: ""; 
        display: block; 
        width: 120px; 
        height: 4px; 
        margin: 12px auto 0;
        background: var(--brand-yellow); 
        border-radius: 2px;
    }

    #servicios .services-list.mobile-only .service-glass p {
        margin: 10px 0 0 0 !important; 
        font-size: 0.98rem !important; 
        line-height: 1.55 !important;
        color: rgba(17,17,17,0.70) !important; 
        text-align: left !important; 
        display: block !important;
    }

    #servicios .services-list.mobile-only .service-item:nth-child(1){ --svc-img: url('/img/servicios/chatarra2.png'); }
    #servicios .services-list.mobile-only .service-item:nth-child(2){ --svc-img: url('/img/chatarra_motor.png'); }
    #servicios .services-list.mobile-only .service-item:nth-child(3){ --svc-img: url('/img/chatarra3.png'); }
    #servicios .services-list.mobile-only .service-item:nth-child(4){ --svc-img: url('/img/metal_cutting.jpg'); }

    #servicios .services-banner { padding-bottom: 22px !important; }
    #servicios .services-details { padding-top: 20px !important; padding-bottom: 20px !important; }


    .grid-2, 
    .grid-3-center, 
    .contact-grid, 
    .footer-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
    }

    .about-text, 
    .values-text { 
        padding-right: 0; 
        text-align: center; 
    }
    
    .about-text { 
        order: -1; 
        padding: 0 20px; 
    }

    .about-video { 
        margin-bottom: 30px; 
        width: 100%; 
        box-shadow: 0 5px 15px rgba(0,0,0,0.15); 
    }
    
    .about-video video { 
        object-fit: cover; 
    }

    .about-text h2, 
    .values-text h2, 
    .section-header h2, 
    .services-intro h2 {
        font-size: 1.8rem; 
        line-height: 1.2; 
        margin-bottom: 20px; 
        padding: 0 10px;
    }
    
    .subtitle { 
        font-size: 1rem; 
        margin-bottom: 5px; 
    }

    .values-text p {
        text-align: justify; 
        -webkit-hyphens: auto; 
        hyphens: auto;
        line-height: 1.6; 
        font-size: 1rem; 
        padding: 0 10px; 
        margin-bottom: 20px;
    }

    .values-grid {
        display: flex; 
        overflow-x: auto; 
        gap: 20px;
        scroll-snap-type: x mandatory; 
        padding: 20px; 
        scrollbar-width: none;
    }
    .values-grid::-webkit-scrollbar { display: none; }
    .value-img { flex: 0 0 auto; width: 85%; }

    .brands-grid {
        display: flex; 
        overflow-x: auto; 
        gap: 20px;
        scroll-snap-type: x mandatory; 
        padding: 20px; 
        justify-content: flex-start;
        scrollbar-width: none;
    }
    .brands-grid::-webkit-scrollbar { display: none; }
    
    .brand-card { 
        flex: 0 0 auto; 
        width: 220px; 
        scroll-snap-align: center; 
        margin: 0 auto; 
    }
    
    .brand-link img { 
        filter: grayscale(0%) !important; 
        max-width: 90%; 
        max-height: 90%; 
    }

    .services-banner .grid-2 { 
        display: flex; 
        flex-direction: column; 
        gap: 30px; 
    }
    
    .services-intro { 
        order: -1; 
        text-align: center; 
        padding: 0 20px; 
    }
    
    .services-intro p { 
        font-size: 1rem; 
        line-height: 1.4; 
        text-align: justify; 
        -webkit-hyphens: auto; 
        hyphens: auto; 
        margin-bottom: 15px; 
        padding: 0 2px;
    }
    
    .services-collage {
        display: flex; 
        overflow-x: auto; 
        height: 300px; 
        gap: 15px; 
        padding: 10px 0;
        scroll-snap-type: x mandatory; 
        width: 100%;
        grid-template-columns: none; 
        grid-template-rows: none;
    }
    .services-collage::-webkit-scrollbar { display: none; }
    
    .services-collage .service-img {
        flex: 0 0 auto; 
        width: 85%; 
        height: 100%;
        object-fit: cover; 
        border-radius: 12px; 
        scroll-snap-align: center;
    }
    
    .services-bg-layer { display: none !important; }
    .services-card { background: transparent; box-shadow: none; padding: 0; }


    .contact-section {
        width: 100%; 
        padding: 60px 15px 40px;
        background: linear-gradient(to bottom,#C0161C 0%,#A90E14 100%);
    }

    .contact-details {
        width: 100%; 
        max-width: 640px; 
        margin: 0 auto 35px; 
        padding: 40px 16px;
        
        background: rgba(148, 148, 148, 0.186); 
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px); 
        
        border-radius: 22px;
        border: 1px solid rgba(255,255,255,0.22);
        
        display: flex; 
        flex-direction: column; 
        gap: 20px;
    }

    .section-header-left { text-align: center; }
    
    .section-header-left .subtitle { 
        font-size: 0.85rem; 
        color: rgba(255,255,255,0.95); 
    }
    
    .section-header-left h2 { 
        margin-top: 8px; 
        margin-bottom: 22px; 
        color: #fff; 
        font-size: 1.6rem; 
    }

    .contact-list { 
        width: 100%; 
        display: flex; 
        flex-direction: column; 
        gap: 16px; 
    }
    
    .contact-item {
        width: 100%; 
        display: flex; 
        gap: 12px; 
        background: rgba(255, 255, 255, 0.08);
        padding: 14px 16px; 
        border-radius: 14px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.22); 
        border: none;
    }

    .icon-box { 
        font-size: 1.35rem; 
        min-width: 30px; 
        text-align: center; 
        color: #fff; 
    }
    
    .contact-item strong { 
        font-size: 0.90rem; 
        font-weight: 700; 
        color: #fff; 
        text-align: left; 
    }
    
    .contact-item p, 
    .contact-item a {
        font-size: 0.82rem; 
        line-height: 1.35; 
        color: rgba(255,255,255,0.90);
        text-align: left; 
        word-break: break-word;
    }

    .map-container {
        height: 310px; 
        margin-top: 2px; 
        border-radius: 18px; 
        overflow: hidden;
        backdrop-filter: blur(10px); 
        background: rgba(255, 255, 255, 0.10);
        border: 1px solid rgba(255, 255, 255, 0.20); 
        box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }
    
    .map-container iframe { 
        width: 100%; 
        height: 100%; 
        display: block; 
    }

    .main-footer { 
        background-color: #034B80; 
        padding: 12px 0 8px; 
        text-align: center; 
    }
    
    .footer-bottom p {
        font-size: 0.48rem; 
        font-weight: 400; 
        letter-spacing: 0.3px;
        color: rgba(255,255,255,0.90); 
        margin: 0;
    }
    
    .footer-bottom .container { padding: 0 8px; }
}

/* ===== Overrides ===== */
@media (max-width: 900px){

  .header-merged{
    height: 60px !important;
    background-color: var(--brand-blue) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,.3) !important;
    z-index: 2000;
  }

  body{
    padding-top: 60px !important;
  }

  section{
    scroll-margin-top: 60px !important;
  }

  #inicio .hero-bg-slider,
  #inicio .slide-item{
    display: none !important;
  }

  #inicio.hero-3d-section{
    position: relative;
    width: 100%;
    overflow: hidden;

    aspect-ratio: 16 / 8 !important;
    max-height: 240px !important;

    padding: 0 !important;
    background: #002a4d !important;

    animation: none !important;
    background-image: none !important;
  }

  #inicio .hero-mobile-slider{
    display: block !important;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
  }

  #inicio .hero-mobile-slider .hero-slide{
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: heroMobileFade 16s infinite;
  }

  #inicio .hero-mobile-slider .hero-slide.s1{ animation-delay: 0s; }
  #inicio .hero-mobile-slider .hero-slide.s2{ animation-delay: 4s; }
  #inicio .hero-mobile-slider .hero-slide.s3{ animation-delay: 8s; }
  #inicio .hero-mobile-slider .hero-slide.s4{ animation-delay: 12s; }

  #inicio .hero-mobile-slider .hero-slide img{
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  #inicio .hero-mobile-slider .hero-slide.s1 img{ object-position: center 5%; }
  #inicio .hero-mobile-slider .hero-slide.s2 img{ object-position: center 50% }
  #inicio .hero-mobile-slider .hero-slide.s3 img{ object-position: center 47%; }
  #inicio .hero-mobile-slider .hero-slide.s4 img{ object-position: center 40%; }

  @keyframes heroMobileFade{
    0%   { opacity: 0; }
    8%   { opacity: 1; }
    25%  { opacity: 1; }
    33%  { opacity: 0; }
    100% { opacity: 0; }
  }

  #inicio .hero-mobile-slider .hero-slide.active{
    opacity: 1 !important;
    animation-delay: 0s;
  }

  #inicio .hero-grid-3d{
    position: relative;
    z-index: 2;
  }
}

@media (min-width: 601px) and (max-width: 900px){

  #inicio.hero-3d-section{
    aspect-ratio: 16 / 8.2 !important;
    max-height: 350px !important;
  }
}

html.no-scroll,
body.no-scroll{
  height: 100% !important;
  overflow: hidden !important;
}


@media (min-width: 901px){
  #servicios .services-list.mobile-only{
    display: none !important;
  }

  #servicios .services-slider.desktop-only{
    display: block !important;
  }
}

/* ===== Scroll offset exacto por header fijo ===== */
:root{
  --header-offset: 80px;  /* escritorio */
}

section{
  scroll-margin-top: var(--header-offset) !important;
}

/* móvil/tableta */
@media (max-width: 900px){
  :root{
    --header-offset: 60px;
  }

  section{
    scroll-margin-top: var(--header-offset) !important;
  }
}

