/* ========================================
   ICOO CHEMICAL - MAIN STYLESHEET
   ======================================== */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    --green-dark:   #1a5c2e;
    --green-mid:    #2e7d32;
    --green-light:  #388e3c;
    --green-accent: #4caf50;
    --green-pale:   #e8f5e9;
    --white:        #ffffff;
    --gray-50:      #fafafa;
    --gray-100:     #f5f5f5;
    --gray-200:     #eeeeee;
    --gray-300:     #e0e0e0;
    --gray-600:     #757575;
    --gray-800:     #424242;
    --gray-900:     #212121;
    --black:        #000000;

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Open Sans', sans-serif;

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.12);
    --shadow-md:  0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg:  0 8px 30px rgba(0,0,0,0.18);
    --shadow-xl:  0 12px 40px rgba(0,0,0,0.22);

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  12px;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #076836;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2.5px;
    position: relative;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: radial-gradient(50% 219%, rgb(7, 142, 56) 0%, rgb(7, 104, 54) 49.2093%, rgb(7, 104, 54) 100%);
    color: var(--white);
    font-size: 12px;
    font-family: var(--font-heading);
    padding: 0;
    height: 64px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1000;
}

.top-bar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar__left {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.top-bar__item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.top-bar__item:hover {
    opacity: 1;
}

.top-bar__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.top-bar__right {
    display: flex;
    gap: 8px;
}

.top-bar__lang {
    color: var(--white);
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.top-bar__lang:hover,
.top-bar__lang.active {
    border-color: var(--white);
}

/* ===== HEADER / NAVIGATION ===== */
.header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 2px solid #076836;
    height: 84px;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 0 20px;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.header__nav {
    height: 100%;
}

.header__nav-list {
    display: flex;
    gap: 8px;
    height: 100%;
    align-items: flex-end;
}

.header__nav-link {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: #086735;
    min-width: 93px;
    height: 57px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    letter-spacing: 0.5px;
    position: relative;
    transition: var(--transition);
}

.header__nav-link:hover,
.header__nav-link.active {
    background: linear-gradient(90deg, rgb(27, 127, 53) 18%, rgb(10, 104, 54) 100%);
    color: var(--white);
}

/* Hamburger & Mobile Controls Base */
.header__mobile-controls {
    display: none; /* Only show on tablet/mobile via media query */
}

.mobile-lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #026932; /* Matched from mockup */
    color: var(--white);
    border: none;
    border-radius: 8px; /* Appears pill-ish but slightly squared */
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-lang-btn:hover {
    background: #0D5A2B;
}

.header__hamburger {
    display: none; /* Managed by media queries */
    flex-direction: column;
    justify-content: center;
    gap: 8px; /* Increased gap to match mockup 2-line */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.header__hamburger span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: #026932; /* Dark green bars from mockup */
    transition: var(--transition);
    border-radius: 2px;
}

.header__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(3.5px, 4px);
}

.header__hamburger.active span:nth-child(2) {
    transform: rotate(-45deg) translate(3.5px, -4px);
}

/* ===== HERO TITLE ===== */
.hero-title {
    background: var(--white);
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title__text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--gray-900);
    letter-spacing: -0.5px;
    line-height: 1.5;
    text-transform: uppercase;
    text-align: center;
}

.hero-title__text strong {
    font-weight: 900;
}

/* ===== HERO BG & SOLUTIONS BAND TEXT ===== */
.hero-bg {
    position: relative;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 350px;
    background-color: #050505;
}

.hero-bg__image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgb(7, 105, 54) 0%, rgb(7, 143, 57) 49.1251%, rgb(7, 105, 54) 100%);
    opacity: 0.13;
}

.hero-bg__content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-bg__text {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
}

.hero-bg__text strong {
    font-weight: 700;
}

/* ===== APPLICATIONS SECTION ===== */
.applications {
    padding: 20px 0 50px;
    background: var(--white);
}

.applications__wrapper {
    position: relative;
    padding: 0;
}

.applications__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    height: 350px;
}

.app-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(12% 0%, 100% 0%, 88% 100%, 0% 100%);
    margin-left: -15px;
}

.app-card:first-child {
    clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 0% 100%);
    margin-left: 0;
}

.app-card:last-child {
    clip-path: polygon(12% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.app-card__unskew {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-card__top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(90deg, #197E35 20.4118%, #026634 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid var(--white);
    padding: 10px 30px;
    z-index: 5;
}

.app-card__title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.app-card__bottom {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.app-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15); /* Scale up to push any baked-in image borders out of bounds */
    transition: transform 0.6s ease;
}

.app-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #197E35 20.294%, #026634 100%);
    opacity: 0.8;
    transition: var(--transition);
}

.app-card:hover .app-card__img {
    transform: scale(1.25);
}

.app-card:hover .app-card__overlay {
    opacity: 0.4;
}

.app-card.active .app-card__overlay {
    opacity: 0; /* Full color visibility when active */
}

/* ===== PRODUCT DETAIL SECTION ===== */
.product-detail {
    padding: 60px 0 80px;
    background: var(--white);
}

.product-detail__content {
    display: none;
}

/* Desktop-only: show as grid on desktop when active */
.product-detail__content.desktop-only.active {
    display: grid;
    grid-template-columns: 42% 53%; /* Fallback */
    justify-content: space-between;
    grid-template-areas:
        "collage right";
    gap: 25px;
    align-items: start;
    animation: fadeIn 0.5s ease;
}

/* Specific proportional override to make Refrigeracion collage smaller */
.product-detail__content.desktop-only.active[data-detail="refrigeracion"] {
    grid-template-columns: 32% 63%;
}

/* Specific proportional override for IT / Telecom & Industrial to shrink the left image proportionally on desktop only */
.product-detail__content.desktop-only.active[data-detail="it-telecom"],
.product-detail__content.desktop-only.active[data-detail="industrial"],
.product-detail__content.desktop-only.active[data-detail="medica"],
.product-detail__content.desktop-only.active[data-detail="consumo"] {
    grid-template-columns: 22% 73%;
}

/* Force the left image container and image to stretch and align matching the right text height in Industrial & Medica */
.product-detail__content.desktop-only.active[data-detail="industrial"],
.product-detail__content.desktop-only.active[data-detail="medica"] {
    align-items: stretch;
}

.product-detail__content.desktop-only.active[data-detail="industrial"] .pd-collage,
.product-detail__content.desktop-only.active[data-detail="industrial"] .product-detail__main-img,
.product-detail__content.desktop-only.active[data-detail="medica"] .pd-collage,
.product-detail__content.desktop-only.active[data-detail="medica"] .product-detail__main-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile-only overrides for perfectly aligned stretching (Medica & Consumo) */
.product-detail__content.mobile-only.active[data-detail="medica"] .pd-images-mobile,
.product-detail__content.mobile-only.active[data-detail="consumo"] .pd-images-mobile {
    align-items: stretch;
}

.product-detail__content.mobile-only.active[data-detail="medica"] .pd-img-mobile-left,
.product-detail__content.mobile-only.active[data-detail="consumo"] .pd-img-mobile-left {
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.product-detail__content.mobile-only.active[data-detail="medica"] .pd-img-mobile-right,
.product-detail__content.mobile-only.active[data-detail="consumo"] .pd-img-mobile-right {
    width: 38%;
    object-fit: contain;
}

/* Mobile-only: hidden on desktop */
.product-detail__content.mobile-only.active {
    display: none;
}

.pd-collage { grid-area: collage; }
.pd-right { grid-area: right; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-detail__main-img {
    width: 100%;
}

.product-detail__icons-img {
    width: 100%;
    margin-top: 15px;
}

/* Restrict the icons image strip to max 145px height inside the desktop blocks */
.product-detail__content.desktop-only.active[data-detail="industrial"] .product-detail__icons-img,
.product-detail__content.desktop-only.active[data-detail="medica"] .product-detail__icons-img,
.product-detail__content.desktop-only.active[data-detail="consumo"] .product-detail__icons-img {
    width: auto;
    height: 145px;
    object-fit: contain;
    display: block;
    margin: 15px auto 0 auto;
}

.pd-images-mobile-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 25px;
}

.mobile-stacked-img {
    width: 100%;
    max-width: 100%;
}

.product-detail__title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    color: #086735;
    letter-spacing: 2px;
    border-bottom: 3px solid #086735;
    padding-bottom: 15px;
    margin-bottom: 0;
    display: inline-block;
}

.product-detail__title-mobile {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #086735;
    letter-spacing: 2px;
    border-bottom: 3px solid #086735;
    padding-bottom: 12px;
    margin-bottom: 20px;
    display: inline-block;
}

.pd-title-mobile {
    text-align: center;
    width: 100%;
}

.pd-images-mobile {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.pd-img-mobile-left, .pd-img-mobile-right {
    width: 48%;
    height: auto;
}

.product-detail__text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #4a4a4a;
}

.lead-text {
    font-size: 15px;
    color: #086735;
}

.product-detail__text strong {
    color: #086735;
    font-weight: 700;
}

.product-detail__thumb:hover {
    border-color: var(--green-dark);
    transform: scale(1.08);
    box-shadow: var(--shadow-sm);
}

/* ===== CONTACT SECTION OVERHAUL ===== */
.contact-header {
    background: var(--white);
}

.contact-content {
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.contact-content__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 30, 15, 0.15); /* Removed heavy darkening assuming the image itself might already be pre-tinted */
    z-index: 1;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-block-transparent {
    display: flex;
    align-items: center;
    gap: 16px;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.contact-text-white p,
.contact-text-white strong,
.contact-text-white a {
    color: var(--white) !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.contact-text-white a:hover {
    color: var(--green-pale) !important;
}

.contact-text-white strong {
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.contact-logo-circle,
.contact-icon-circle {
    width: 60px;
    height: 60px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.contact-icon-circle svg {
    width: 28px;
    height: 28px;
}

.contact__map {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

/* Contact Form Overhaul */
.contact__form-wrapper {
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.contact__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact__form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.contact__form input,
.contact__form textarea {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    color: var(--gray-900);
    background: #F0F2F0; /* Pale grey from mockup */
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.contact__form input::placeholder,
.contact__form textarea::placeholder {
    color: rgba(8, 103, 53, 0.7); /* Deep green tinted placeholder */
    font-weight: 500;
}

.contact__form input:focus,
.contact__form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

.contact__form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact__form-btn {
    background: #116F34;
    color: var(--white);
    border: none;
    padding: 16px 30px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.contact__form-btn:hover {
    background: #0D5A2B;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--green-dark);
    color: var(--white);
    padding-top: 50px;
}

.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer__logo {
    height: 60px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer__desc {
    font-size: 0.88rem;
    opacity: 0.8;
    line-height: 1.6;
}

.footer__heading {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.footer__links li {
    margin-bottom: 8px;
}

.footer__links a {
    font-size: 0.88rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.footer__links a:hover {
    opacity: 1;
    padding-left: 4px;
}

.footer__right p {
    font-size: 0.88rem;
    opacity: 0.7;
    margin-bottom: 8px;
}

.footer__bottom {
    padding: 18px 0;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.6;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
    .applications__grid {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
    }

    .app-card {
        clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
        margin-left: -15px;
        height: 300px;
    }

    .app-card:first-child,
    .app-card:nth-child(4) {
        clip-path: polygon(0% 0%, 100% 0%, 90% 100%, 0% 100%);
        margin-left: 0;
    }

    .app-card:nth-child(3),
    .app-card:last-child {
        clip-path: polygon(10% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .product-detail__content.desktop-only.active {
        display: none !important;
    }

    .product-detail__content.mobile-only.active {
        display: block !important;
    }

    .contact__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-bar__left {
        gap: 12px;
        font-size: 0.72rem;
    }

    .top-bar__right {
        display: none; /* Replaced by the native header pill */
    }
}

/* Hide top bar on mobile strictly */
@media (max-width: 767px) {
    .top-bar {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header__mobile-controls {
        display: flex;
        align-items: center;
        gap: 15px; /* Between lang btn and hamburger */
    }

    .header__hamburger {
        display: flex;
    }

    .header__nav {
        position: absolute;
        top: 100%; /* Sits exactly under the header bottom border */
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05); /* Soft drop shadow */
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 998;
        padding: 20px 0 40px; /* Padding for the inner list */
        height: auto;
    }

    .header__nav.open {
        opacity: 1;
        visibility: visible;
    }

    .header__nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px; /* Slight gap between items */
    }

    .header__nav-link {
        display: flex;
        align-items: center;
        width: 100%;
        padding: 5px 30px; /* Aligned neatly to the side */
        font-family: var(--font-heading);
        font-size: 20px;
        font-weight: 800; /* Extremely bold as in mockup */
        color: #086735;
        border-radius: 0;
        min-width: auto;
        height: auto;
        justify-content: flex-start;
    }

    .header__nav-link.active {
        color: var(--black);
        background: transparent;
        text-decoration: underline;
        text-underline-offset: 4px; /* Mimic their distinct underline */
        text-decoration-thickness: 3px;
    }

    .header__nav-link:hover,
    .header__nav-link:active {
        background: transparent; /* No green background pill anywhere on mobile */
        color: var(--black);
    }

    .hero-title__text {
        font-size: 16px;
    }

    .applications__grid {
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        gap: 4px;
    }

    .app-card {
        clip-path: polygon(8% 0%, 100% 0%, 92% 100%, 0% 100%);
        margin-left: -10px;
        height: 280px;
    }

    .app-card:first-child,
    .app-card:nth-child(4) {
        clip-path: polygon(0% 0%, 100% 0%, 92% 100%, 0% 100%);
        margin-left: 0;
    }

    .app-card:nth-child(3),
    .app-card:last-child {
        clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
    }

    .app-card__title {
        font-size: 12px;
    }

    .app-card__top {
        height: 70px;
        min-height: 70px;
        padding: 10px 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .desktop-only {
        display: none !important;
    }

    .product-detail__content.mobile-only.active {
        display: block !important;
    }

    .contact__form-row {
        grid-template-columns: 1fr;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .top-bar__left {
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .top-bar__inner {
        flex-direction: column;
        gap: 6px;
    }

    .hero__title {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .hero__content {
        padding: 40px 16px;
    }

    .applications__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3px;
    }

    .product-detail__thumbnails {
        gap: 8px;
    }

    .product-detail__thumb {
        width: 50px;
        height: 50px;
    }
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    backdrop-filter: blur(2px);
}

.nav-overlay.active {
    display: block;
}

/* ===== NOSOTROS SECTION ===== */
.nosotros-section {
    background: var(--white);
    padding-bottom: 80px;
}

/* 1. QUIENES SOMOS (Dark hero — same size as home hero-bg) */
.nos-hero {
    position: relative;
    padding: 100px 0;
    height: 350px;
    display: flex;
    align-items: center;
    overflow: visible; /* CRITICAL: let children overflow */
    background-color: #050505;
}

.nos-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.nos-hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.nos-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgb(7, 105, 54) 0%, rgb(7, 143, 57) 49.1251%, rgb(7, 105, 54) 100%);
    opacity: 0.13;
}

.nos-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.nos-grid-1 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5%;
    align-items: start;
}

.nos-grid-1 .nos-col-left {
    padding-top: 20px;
}

.nos-title-white {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    position: absolute;
    top: 250px;
}

.nos-floating-card {
    place-content: center;
    align-items: center;
    background-color: var(--white);
    border-radius: 20px;
    display: flex;
    flex: 0 0 auto;
    flex-flow: column;
    gap: 15px;
    overflow: hidden;
    padding: 15px;
    position: relative;
    margin-top: 325px;
    width: 100%;
    z-index: 4;
    color: var(--gray-800);
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    box-sizing: border-box;
}

.nos-floating-card strong {
    color: var(--green-dark);
    font-weight: 800;
}

.nos-col-right.flex-bottom {
    display: flex;
    align-items: flex-end;
    align-self: end;
}

.nos-overlap-wrapper-1 {
    width: 580px;
    max-width: 100%;
    position: relative;
    margin-top: 205px;
    z-index: 3;
}

.nos-img-team {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-position: center center;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* 2. TRAYECTORIA (White section) */
.nos-trayectoria {
    background: var(--white);
    padding: 100px 0 40px 0; /* Top padding clears overlapping elements */
    position: relative;
    z-index: 1;
}

.nos-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5%;
    align-items: start;
}

.nos-title-green {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #086735;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.nos-body {
    font-size: 15px;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 15px;
}

.nos-body strong {
    color: var(--green-dark);
    font-weight: 700;
}

.center-v {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 0;
}

.relative-z {
    position: relative;
    z-index: 4;
}

.nos-overlap-wrapper-2 {
    width: 100%;
    margin-top: -34px; /* Perfectly touches the floated card */
    margin-bottom: -250px; /* Image extends deep INTO the green band */
}

.nos-img-heatsinks {
    width: 50%;
    margin: 0 auto;
    display: block;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* 3. VALORES BAND (Green background full-width, white covers left side) */
.nos-valores-wrapper {
    position: relative;
    padding: 70px 0 40px;
    overflow: visible;
}

.nos-green-band {
    background: linear-gradient(90deg, rgb(2, 102, 52) 0%, rgb(0, 141, 57) 50.4505%, rgb(2, 102, 52) 100%);
    flex: 0 0 auto;
    height: 170px;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0px;
    width: 100%;
    z-index: 0;
}

.nos-grid-3 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5%;
    position: relative;
    z-index: 2;
    align-items: start;
}

.nos-white-bg-padding {
    background: var(--white);
    padding: 50px 40px 60px 0;
    position: relative;
    margin-top: 100px;
}
/* Extends the white background infinitely to the left edge of the screen */
.nos-white-bg-padding::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: 100%;
    width: 2000px;
    background: var(--white);
}

.nos-overlap-wrapper-3 {
    width: 100%;
    margin-top: 0;
}

.nos-img-partners {
    width: 100%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    border: 5px solid var(--white);
    box-sizing: border-box;
    display: block;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 4. CARDS GRID */
.nos-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    background-image: url('assets/img/nos-grid-bg.svg'); /* Pure image, spans entirely across the grid */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: content-box; /* Avoid bleeding the background into the 15px container padding */
}

.nos-card {
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
    overflow: visible; /* Must be visible to allow absolute gap fix to span outside boundaries */
    background: transparent; /* Allows the grid's background to be visible */
    position: relative;
}

/* Draws solid white rectangles directly over the CSS Grid gaps to hide the background image shining through */
.nos-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    right: -30px; /* Spans exactly into the 30px grid gap */
    width: 30px;
    background: var(--white);
    z-index: 5;
}

.nos-card__top {
    background: rgba(17, 111, 52, 0.90); /* Lighter green tint overlay for the top section */
    color: var(--white);
    padding: 20px;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.nos-card__bottom {
    position: relative;
    padding: 40px 30px; /* Restored content padding to prevent cutting off text */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: rgba(8, 60, 25, 0.90); /* Very dark green tint overlay for the bottom area */
    border-top: 10px solid var(--white); /* White line */
}

.nos-card__bg {
    display: none; /* Hide individual repeating backgrounds */
}

.nos-card__bg img {
    display: none;
}

.nos-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(8, 60, 25, 0.85); /* Extremely dark green transparent */
}

.nos-card__content {
    position: relative;
    z-index: 2;
    color: var(--white);
    font-size: 15px;
    line-height: 1.6;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0; /* Removed double padding since card__bottom has it now */
}

.nos-card__text p {
    margin-bottom: 20px;
}

.nos-card__text strong {
    color: var(--white);
    font-weight: 800;
}

.nos-icon-check {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0; /* push to bottom */
}

/* ====== NOSOTROS: DUAL LAYOUT TOGGLE ====== */
/* Mobile layout hidden on desktop */
.nosotros-mobile {
    display: none;
}

@media (max-width: 900px) {
    /* Hide desktop layout on mobile/tablet */
    .nosotros-desktop {
        display: none !important;
    }
    /* Show mobile layout */
    .nosotros-mobile {
        display: block !important;
    }
}

/* ====== NOSOTROS MOBILE STYLES ====== */
.nosm-hero {
    position: relative;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #050505;
}

.nosm-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.nosm-hero__bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.nosm-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgb(7, 105, 54) 0%, rgb(7, 143, 57) 49%, rgb(7, 105, 54) 100%);
    opacity: 0.13;
}

.nosm-hero__title {
    position: relative;
    z-index: 2;
    font-family: var(--font-heading);
    font-size: 25px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 1.5px;
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

/* Content container */
.nosm-content {
    background: var(--white);
    padding: 30px 20px 60px 20px;
}

/* Intro card */
.nosm-card-intro {
    background: var(--white);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--gray-800);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.nosm-card-intro strong {
    color: var(--green-dark);
    font-weight: 800;
}

/* Images */
.nosm-img-wrapper {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.nosm-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Section titles */
.nosm-section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: #086735;
    letter-spacing: 2.5px;
    text-align: center;
    margin: 0 0 20px 0;
}

/* Body text */
.nosm-body {
    font-size: 16px;
    color: var(--gray-700);
    line-height: 1.7;
    text-align: center;
    margin-bottom: 20px;
}

.nosm-body strong {
    color: var(--green-dark);
    font-weight: 700;
}

/* Vision/Mission/Values Cards */
.nosm-card {
    /* No border radius, let top and bottom be separate rectangles */
    margin-bottom: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
}

.nosm-card__top {
    background: #106b32; /* Solid dark green matching the mockup */
    padding: 20px 20px;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    letter-spacing: 1px;
    margin-bottom: 5px; /* The white gap between title and body in mockup */
}

.nosm-card__bottom {
    position: relative;
    padding: 30px 20px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Content at top, icon pushed to very bottom */
}

.nosm-card__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.nosm-card__bg img {
    width: 100%; height: 100%; object-fit: cover;
}

.nosm-card__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Deep green overlay, not black! */
    background: rgba(8, 55, 26, 0.85);
}

.nosm-card__content {
    position: relative;
    z-index: 2;
    text-align: left; /* Left aligned as in the mockup */
    margin-bottom: 30px;
}

.nosm-card__content p {
    color: var(--white);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 12px;
}

.nosm-card__content strong {
    color: var(--white);
    font-weight: 800;
}

.nosm-icon-check {
    position: relative;
    z-index: 2;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto; /* Perfectly centered at the bottom */
}

/* ========================================================================= */
/*                        SERVICIOS PAGE STYLES                             */
/* ========================================================================= */

.srv-hero {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-hero__bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.srv-hero__bg .srv-hero__overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(8, 60, 25, 0.8));
}

.srv-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.srv-hero__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 2px;
}

.srv-features {
    padding: 80px 0;
    background: var(--white);
}

.srv-features__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.srv-intro-text {
    font-size: 22px;
    line-height: 1.4;
    color: #333;
    margin-bottom: 50px;
}

.srv-intro-text strong {
    color: #116F34;
    font-weight: 700;
}

.srv-shipping-img-wrapper {
    width: 100%;
    margin-top: 30px;
}

.srv-shipping-img {
    width: 100%;
    display: block;
    border: 6px solid #116F34;
}

.srv-list {
    display: flex;
    flex-direction: column;
}

.srv-list-item {
    border-bottom: 3px solid #116F34;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.srv-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.srv-list-item h3 {
    color: #116F34;
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.srv-list-item p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

.srv-single-collage {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* BANNER DE LOGISTICA Y ALMACENAMIENTO */
.srv-banner {
    position: relative;
    background: var(--white);
    padding-bottom: 100px;
}

.srv-banner__bg {
    background: linear-gradient(90deg, rgb(1, 103, 53) 0%, rgb(0, 141, 57) 49.5495%, rgb(1, 103, 53) 100%);
    padding: 60px 0 150px;
    position: relative;
}

.srv-banner__text {
    color: var(--white);
    font-size: 24px;
    line-height: 1.5;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.srv-banner__text strong {
    font-weight: 800;
}

.srv-banner__images {
    position: relative;
    z-index: 2;
    margin-top: -100px; /* Pulls images up over the green background */
    display: flex;
    gap: 20px;
    justify-content: center;
}

.srv-banner-img-box {
    flex: 1;
    height: 217px; /* Fixed height requested by user */
    max-width: 500px;
    background: var(--white); /* Added white bg just in case images are transparent svgs or don't fill */
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.srv-banner-img-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* RESPONSIVE SERVICIOS */
@media (max-width: 900px) {
    .srv-features__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .srv-intro-text {
        text-align: center;
    }

    .srv-shipping-img-wrapper {
        text-align: center;
        margin: 0 auto;
    }

    .srv-list-item {
        text-align: center;
        margin: 0 auto;
        padding-left: 0;
        max-width: 400px; /* Keep lines short like the design */
    }


    .srv-banner__images {
        flex-direction: row; /* KEEP side-by-side as requested in mobile mockup! */
        gap: 15px;
        padding: 0 15px;
    }
    
    .srv-banner-img-box {
        height: auto;
        aspect-ratio: 1.1 / 1; /* Retain nice block shapes */
    }
}

/* ========================================================================= */
/*                       SOLUCIONES PAGE STYLES                             */
/* ========================================================================= */

.sol-header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    padding: 0 20px;
    background: var(--white);
}

.sol-header-title h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.5px;
    line-height: 1.5;
    color: rgb(7, 104, 54);
    margin: 0;
    text-align: center;
}

.sol-header-title strong {
    font-weight: 800; /* Extra bold for the highlighted words */
    color: rgb(7, 104, 54);
}

.sol-banner__title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
    color: var(--white);
    font-family: var(--font-heading);
}

.sol-banner__text {
    text-align: center;
    font-size: 16px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
    font-family: var(--font-heading);
}

.sol-banner__text p {
    margin-bottom: 20px;
}

.sol-banner__text strong {
    font-weight: 800;
}

/* Strips */
.sol-strip {
    background: radial-gradient(50% 219%, rgb(7, 142, 56) 0%, rgb(7, 104, 54) 49.2093%, rgb(7, 104, 54) 100%);
    color: var(--white);
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    font-family: var(--font-heading);
    border-top: 2px solid #148f4f; /* Light highlight */
    border-bottom: 2px solid #004d27; /* Dark shadow */
}

.sol-slider-header {
    background: radial-gradient(50% 219%, rgb(7, 142, 56) 0%, rgb(7, 104, 54) 49.2093%, rgb(7, 104, 54) 100%);
    color: var(--white);
    padding: 20px 20px;
}

.sol-slider-header--orange {
    background: #e86a22 !important; /* Naranja institucional para el Slide 2 */
}

.sol-slider-header--yellow {
    background: #fcc02e !important;
}
.sol-slider-header--yellow .sol-header-title {
    color: #006030;
}

.sol-slider-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sol-slider-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 20px;
    line-height: 1.4;
}

.sol-btn-arrow {
    background: transparent;
    border: 2px solid var(--white);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.sol-btn-arrow:hover {
    background: var(--white);
    color: rgb(7, 104, 54);
}

.sol-btn-arrow svg {
    width: 20px;
    height: 20px;
}

/* Content Area */
.sol-content-area {
    background: var(--white);
    padding: 50px 0;
}

.sol-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* No grid gap, we use padding and borders */
}

.sol-col {
    padding: 20px 40px;
}

.sol-col-left {
    border-right: 2px solid #006030;
}

.sol-block {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

.sol-border-bottom {
    border-bottom: 2px solid #006030;
    margin-bottom: 40px;
}

.sol-block-title {
    color: #006030;
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-heading);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sol-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sol-product-group-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sol-product--offset-down {
    margin-top: 30px;
}

.sol-product-row--4 {
    grid-template-columns: repeat(4, 1fr);
}

.sol-product {
    border: 1px solid #006030;
    padding: 15px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1/1; /* Keep it square like the mockup boxes */
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.sol-product img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sol-dummy-text {
    font-family: var(--font-heading);
    color: #999;
    font-size: 14px;
    font-weight: 600;
}

.sol-footer-line {
    width: 100%;
    height: 30px;
    background: radial-gradient(50% 219%, rgb(7, 142, 56) 0%, rgb(7, 104, 54) 49.2093%, rgb(7, 104, 54) 100%);
    margin-top: 20px;
}

/* Soluciones Responsive */
@media (max-width: 900px) {
    /* ==== GLOBAL MOBILE TEXT SCALING ==== */
    .sol-header-title h1 { font-size: 14px; line-height: 1.4; padding: 0 10px; }
    .sol-banner__title { font-size: 18px; margin-bottom: 10px; }
    .sol-banner__text, .sol-banner__text p { font-size: 12px !important; line-height: 1.6; }
    .sol-strip { font-size: 12px; }
    .sol-slider-title, .sol-slider-header h3 { font-size: 12px !important; line-height: 1.4; }
    .sol-block-title, h4.sol-block-title { font-size: 11.5px !important; letter-spacing: 0.5px; }
    .section-title { font-size: 18px; }
    .contact-text-white p, .contact-text-white strong { font-size: 0.75rem !important; }
    .contact__form input, .contact__form textarea { font-size: 0.75rem; padding: 12px 15px; }
    .contact__form-btn { font-size: 0.8rem; padding: 12px 20px; border-radius: 4px; }

    .sol-grid-layout {
        grid-template-columns: 1fr;
    }

    .sol-col-left {
        border-right: none;
        border-bottom: 2px solid #006030;
    }

    .sol-col {
        padding: 20px 10px;
    }

    .sol-product-row--4 {
        grid-template-columns: 1fr 1fr; /* Stack the 4-items to 2-columns on mobile */
    }

    /* ====== SLIDE 1: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="0"] .sol-grid-layout {
        display: flex;
        flex-direction: column;
        padding: 10px 10px;
    }
    
    .sol-slide[data-slide="0"] .sol-col {
        display: contents; /* Elevate blocks to be flex children of grid-layout */
    }
    
    .sol-slide[data-slide="0"] .sol-block {
        width: 100%;
        text-align: center;
        border-bottom: 2px solid rgba(0, 96, 48, 0.6) !important; /* Motif hr line */
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    .sol-slide[data-slide="0"] .sol-block-title {
        text-align: center;
        font-size: 15px;
        margin-bottom: 25px;
        letter-spacing: 0.5px;
    }
    
    .sol-slide[data-slide="0"] .sol-product-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .sol-slide[data-slide="0"] .sol-product {
        width: 140px; 
        height: 140px;
        border: 1px solid rgba(0, 96, 48, 0.3); /* Softer product border */
    }
    
    /* Order mapping */
    .sol-slide[data-slide="0"] .sol-col-left .sol-block:nth-child(1) { order: 1; }  /* Polo Sombreado */
    .sol-slide[data-slide="0"] .sol-col-right .sol-block:nth-child(1) { order: 2; } /* Conmutacion Electronica */
    .sol-slide[data-slide="0"] .sol-col-left .sol-block:nth-child(2) { order: 3; }  /* Sopladores */
    .sol-slide[data-slide="0"] .sol-col-right .sol-block:nth-child(2) { order: 4; } /* Radial */
    .sol-slide[data-slide="0"] .sol-col-left .sol-block:nth-child(3) { 
        order: 5; /* Axial */
        border-bottom: none !important; /* No border for the last one */
        margin-bottom: 0;
        padding-bottom: 0;
    }

    /* ====== SLIDE 2: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="1"] .sol-grid-layout {
        display: flex;
        flex-direction: column;
        padding: 10px 10px;
    }
    .sol-slide[data-slide="1"] .sol-col {
        display: contents;
    }
    /* Break nesting to flow children directly in block */
    .sol-slide[data-slide="1"] .sol-product-row,
    .sol-slide[data-slide="1"] .sol-product-group-col {
        display: contents !important; 
    }
    
    .sol-slide[data-slide="1"] .sol-block {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 15px;
        border-bottom: 2px solid rgba(0, 96, 48, 0.6) !important;
        padding-bottom: 30px;
        margin-bottom: 30px;
    }
    
    /* Title full width */
    .sol-slide[data-slide="1"] .sol-block-title {
        width: 100%;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 15px;
        margin-bottom: 25px !important;
    }
    
    /* 3-image sizing (Pasivo, Activo, Liquido) */
    .sol-slide[data-slide="1"] .sol-product {
        width: calc(33.333% - 15px);
        min-width: 90px;
        max-width: 140px;
        height: min-content;
        aspect-ratio: 1/1;
        padding: 8px !important; /* override complex inline paddings */
        border: 1px solid rgba(0, 96, 48, 0.3);
        margin-top: 0 !important;
    }
    
    /* 2-image sizing (MCHE and Disipador) */
    .sol-slide[data-slide="1"] .sol-col-right .sol-block:nth-child(2) .sol-product,
    .sol-slide[data-slide="1"] .sol-col-right .sol-block:nth-child(3) .sol-product {
        width: calc(50% - 15px);
        max-width: 160px;
    }

    /* Assign Ordering */
    .sol-slide[data-slide="1"] .sol-col-left .sol-block:nth-child(1) { order: 1; }  /* Pasivo */
    .sol-slide[data-slide="1"] .sol-col-right .sol-block:nth-child(1) { order: 2; } /* Activo */
    .sol-slide[data-slide="1"] .sol-col-left .sol-block:nth-child(2) { order: 3; }  /* Liquido */
    .sol-slide[data-slide="1"] .sol-col-right .sol-block:nth-child(2) { order: 4; } /* MCHE */
    
    .sol-slide[data-slide="1"] .sol-col-left .sol-block:nth-child(3) { 
        order: 5; /* Disipador Title */
        border-bottom: none !important;
        margin-bottom: 10px !important;
        padding-bottom: 0 !important;
        min-height: auto !important;
        height: auto !important;
        justify-content: center !important;
        padding-right: 0 !important;
    }
    .sol-slide[data-slide="1"] .sol-col-right .sol-block:nth-child(3) { 
        order: 6; /* Disipador Images */
        border-bottom: none !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* ====== SLIDE 3: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="2"] {
        display: flex;
        flex-direction: column;
        padding: 10px 10px;
    }
    
    /* Top Section Overall Grid */
    .sol-slide[data-slide="2"] .sol-grid-layout:nth-of-type(1) {
        display: flex;
        flex-direction: column;
        padding: 0;
        margin-bottom: 0 !important;
    }
    
    /* Unwrap Left Top Column and empty filler */
    .sol-slide[data-slide="2"] .sol-col-left,
    .sol-slide[data-slide="2"] .sol-col-left > div:nth-child(2) {
        display: contents;
    }
    
    /* BLOCK 1: Left Top actual content div */
    .sol-slide[data-slide="2"] .sol-col-left > div:first-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-bottom: 2px solid rgba(0, 96, 48, 0.6) !important;
        padding-bottom: 30px !important;
        margin-bottom: 30px !important;
    }
    
    /* Inner div containing the 2 wide images */
    .sol-slide[data-slide="2"] .sol-col-left > div:first-child > div {
        flex-direction: row !important; /* override inline flex-direction: column */
        justify-content: center;
        gap: 15px !important;
        width: 100%;
    }

    /* BLOCK 2: Right Top (sol-col-right acts as Block 2) */
    .sol-slide[data-slide="2"] .sol-col-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        border-bottom: 2px solid rgba(0, 96, 48, 0.6) !important;
        padding-bottom: 30px !important;
        margin-bottom: 30px !important;
        padding-left: 0;
        padding-right: 0;
        border-right: none !important;
    }
    
    .sol-slide[data-slide="2"] .sol-col-right .sol-product-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    /* Remove the offset-down for Block 2 images */
    .sol-slide[data-slide="2"] .sol-product--offset-down {
        margin-top: 0 !important;
    }

    /* BLOCK 3: Bottom Section */
    .sol-slide[data-slide="2"] .sol-grid-layout:nth-of-type(2) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center !important; /* override flex-end */
        gap: 15px;
        width: 100%;
        margin-bottom: 0 !important;
        padding: 0;
    }
    
    /* Unwrap Bottom columns */
    .sol-slide[data-slide="2"] .sol-grid-layout:nth-of-type(2) .sol-col {
        display: contents !important; 
    }

    /* Titles */
    .sol-slide[data-slide="2"] .sol-block-title {
        width: 100%;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 15px;
        margin-bottom: 25px !important;
    }
    
    /* Hide <br> inside titles so they natively flow */
    .sol-slide[data-slide="2"] .sol-block-title br {
        display: none;
    }

    /* Common Product Customization */
    .sol-slide[data-slide="2"] .sol-product {
        border: 1px solid rgba(0, 96, 48, 0.3) !important;
        padding: 8px !important;
        margin-left: 0 !important; /* overide specific inline rules */
    }
    
    /* Block 1 Images (Wide) */
    .sol-slide[data-slide="2"] .sol-col-left > div:first-child .sol-product {
        width: calc(50% - 15px) !important;
        max-width: 160px;
        aspect-ratio: 1.6/1 !important;
    }
    
    /* Block 2 Images (Squares 2x2 grid) */
    .sol-slide[data-slide="2"] .sol-col-right .sol-product {
        width: calc(50% - 15px) !important;
        max-width: 140px;
        aspect-ratio: 1/1 !important;
    }
    
    /* Block 3 Images (Squares row) */
    .sol-slide[data-slide="2"] .sol-grid-layout:nth-of-type(2) .sol-product {
        width: calc(50% - 15px) !important;
        max-width: 140px;
        aspect-ratio: 1/1 !important;
    }

    /* ====== SLIDE 4: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="3"] {
        display: flex;
        flex-direction: column;
        padding: 10px 10px;
    }
    .sol-slide[data-slide="3"] .sol-grid-layout {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .sol-slide[data-slide="3"] .sol-col {
        display: flex;
        flex-direction: column;
        padding: 0;
        border: none !important;
    }

    /* Left Column Blocks */
    .sol-slide[data-slide="3"] .sol-col-left .sol-block {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        border-bottom: 2px solid rgba(0, 96, 48, 0.6) !important;
        padding-bottom: 30px !important;
        margin-bottom: 30px !important;
        width: 100%;
    }
    .sol-slide[data-slide="3"] .sol-col-left .sol-product-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    /* Right Column FLATTENING */
    .sol-slide[data-slide="3"] .sol-col-right .sol-block,
    .sol-slide[data-slide="3"] .sol-col-right .sol-product-row {
        display: contents !important;
    }
    .sol-slide[data-slide="3"] .sol-col-right {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
        width: 100%;
    }
    
    /* Common Titles */
    .sol-slide[data-slide="3"] .sol-block-title {
        width: 100%;
        max-width: 100% !important;
        text-align: center !important;
        font-size: 15px;
        margin-bottom: 25px !important;
    }
    .sol-slide[data-slide="3"] .sol-block-title br {
        display: none;
    }
    
    /* Common Products */
    .sol-slide[data-slide="3"] .sol-product {
        margin-top: 0 !important;
        padding: 8px !important;
        border: 1px solid rgba(0, 96, 48, 0.3) !important;
        box-shadow: none !important;
        aspect-ratio: 1/1 !important;
    }
    
    /* Left Col Images (2 per row) */
    .sol-slide[data-slide="3"] .sol-col-left .sol-product {
        width: calc(50% - 15px) !important;
        max-width: 140px;
    }
    
    /* Right Col Image Re-ordering and 3-per row sizing */
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(1) > .sol-block-title {
        order: 1;
        margin-bottom: 10px !important;
    }
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(1) > .sol-product-row > .sol-product:nth-child(1) { order: 2; }
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(1) > .sol-product-row > .sol-product:nth-child(2) { order: 3; }
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(2) > .sol-product-row > .sol-product:nth-child(2) { order: 4; } /* The stolen image */
    
    /* Appy size to the 3 Refrig images */
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(1) > .sol-product-row > .sol-product,
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(2) > .sol-product-row > .sol-product:nth-child(2) {
        width: calc(33.333% - 10px) !important;
        max-width: 100px;
    }

    /* Target the LIGHT SIMULATION overall box */
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(2) > .sol-product-row > .sol-product:nth-child(1) {
        order: 5;
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: auto !important;
        border: none !important;
        padding: 0 !important;
        margin-top: 20px !important;
        padding-top: 30px !important;
        border-top: 2px solid rgba(0, 96, 48, 0.6) !important; /* Motif Separator */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    /* Inner img of Simulation */
    .sol-slide[data-slide="3"] .sol-col-right > .sol-block:nth-child(2) > .sol-product-row > .sol-product:nth-child(1) > img {
        width: auto !important;
        max-width: 80% !important;
        max-height: 250px !important;
        object-fit: contain;
    }

    /* ====== SLIDE 5: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="4"] {
        padding: 5px 10px;
    }
    
    .sol-slide[data-slide="4"] > div:first-child {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        padding: 0 !important;
        margin-top: 20px !important; 
        margin-bottom: 20px !important; 
        padding-bottom: 60px !important; /* Stagger spacer */
        align-items: start !important;
    }
    
    /* Apply styles to the individual boxes */
    .sol-slide[data-slide="4"] > div:first-child > div {
        text-align: left !important;
    }
    
    /* Titles */
    .sol-slide[data-slide="4"] .sol-block-title {
        text-align: left !important;
        font-size: 15px !important;
        margin-bottom: 10px !important; 
        color: #006030;
    }
    
    /* Product containers */
    .sol-slide[data-slide="4"] .sol-product {
        padding: 15px !important; 
        border: 1px solid rgba(0, 96, 48, 0.3) !important;
        aspect-ratio: 1 / 1.5 !important; 
        box-shadow: none !important;
    }
    
    /* Stagger effect using transform */
    .sol-slide[data-slide="4"] > div:first-child > div:nth-child(2),
    .sol-slide[data-slide="4"] > div:first-child > div:nth-child(4) {
        transform: translateY(40px);
    }

    /* ====== SLIDE 6: Mobile Custom Layout (Mockup Match) ====== */
    .sol-slide[data-slide="5"] {
        padding: 5px 10px;
    }
    
    .sol-slide[data-slide="5"] > div:first-child {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        padding: 0 !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        padding-bottom: 30px !important; /* Stagger padding */
        align-items: start !important;
    }
    
    .sol-slide[data-slide="5"] > div:first-child > div {
        margin-top: 0 !important; /* override 60px stagger inline */
        gap: 10px !important;
    }
    
    .sol-slide[data-slide="5"] > div:first-child > div:nth-child(2) {
        transform: translateY(20px); /* mobile specific stagger */
    }
    
    .sol-slide[data-slide="5"] .sol-product {
        padding: 6px !important;
        border: 1px solid rgba(0, 96, 48, 0.3) !important;
        aspect-ratio: 1/1 !important;
        box-shadow: none !important;
    }

    /* ====== SLIDE 7: Mobile Custom Layout (MRO Mockup) ====== */
    .sol-slide[data-slide="6"] {
        padding: 5px 10px;
    }
    
    .sol-slide[data-slide="6"] > div:first-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between; 
        gap: 0 !important; /* controlled by width padding margins */
        row-gap: 10px !important;
        padding: 0 !important;
        margin-top: 15px !important;
        margin-bottom: 30px !important;
    }
    
    .sol-slide[data-slide="6"] .sol-product {
        width: calc(33.333% - 7px) !important; /* leaves total 14px for 2 gaps between 3 items */
        border: 1px solid rgba(0, 96, 48, 0.3) !important;
        padding: 8px !important;
        aspect-ratio: 1/1 !important;
        grid-column: auto !important; /* kill span */
        grid-row: auto !important; /* kill span */
        box-shadow: none !important;
        height: auto !important;
        margin: 0 !important;
    }
    
    /* Make PPE Equipment Full Width */
    .sol-slide[data-slide="6"] .sol-product:nth-child(5) {
        width: 100% !important;
        aspect-ratio: auto !important; /* it's wide natively */
        padding: 15px !important;
        order: 4; 
    }
    
    /* Reset Rack desktop span */
    .sol-slide[data-slide="6"] .sol-product:nth-child(12) {
        aspect-ratio: 1/1 !important;
        padding: 8px !important;
    }
    
    .sol-slide[data-slide="6"] .sol-product img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .sol-slide[data-slide="6"] .sol-product:nth-child(5) img {
        height: auto; 
    }

    /* Assign Ordering directly based on Mockup */
    .sol-slide[data-slide="6"] .sol-product:nth-child(1) { order: 1; }
    .sol-slide[data-slide="6"] .sol-product:nth-child(2) { order: 2; }
    .sol-slide[data-slide="6"] .sol-product:nth-child(3) { order: 3; }
    /* Child 5 is handled implicitly by its order: 4 above */
    
    /* Row 3 */
    .sol-slide[data-slide="6"] .sol-product:nth-child(8) { order: 5; } /* Scanner */
    .sol-slide[data-slide="6"] .sol-product:nth-child(9) { order: 6; } /* Printer */
    .sol-slide[data-slide="6"] .sol-product:nth-child(10) { order: 7; }/* Labels */
    
    /* Row 4 */
    .sol-slide[data-slide="6"] .sol-product:nth-child(11) { order: 8; } /* Tools */
    .sol-slide[data-slide="6"] .sol-product:nth-child(4) { order: 9; }  /* Cart1 */
    .sol-slide[data-slide="6"] .sol-product:nth-child(6) { order: 10; } /* Cart2 */
    
    /* Row 5 */
    .sol-slide[data-slide="6"] .sol-product:nth-child(7) { order: 11; } /* Signs */
    .sol-slide[data-slide="6"] .sol-product:nth-child(14) { order: 12; }/* Spill */
    .sol-slide[data-slide="6"] .sol-product:nth-child(16) { order: 13; }/* Drums */
    
    /* Row 6 */
    .sol-slide[data-slide="6"] .sol-product:nth-child(12) { order: 14; }/* Rack */
    .sol-slide[data-slide="6"] .sol-product:nth-child(13) { order: 15; }/* Bins */
    .sol-slide[data-slide="6"] .sol-product:nth-child(15) { order: 16; }/* Loto */
}

/* ====== MOBILE LANG INSIDE HAMBURGER ====== */
.mobile-lang-selector {
    display: none;
}

@media (max-width: 768px) {
    .mobile-lang-selector {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid #EAEAEA;
    }
    .lang-link {
        font-family: var(--font-heading);
        font-size: 16px;
        font-weight: 600;
        color: var(--text-color);
        text-decoration: none;
    }
    .lang-link.active {
        color: var(--primary-color);
    }
    .lang-divider {
        color: #CCC;
    }
}

/* ====== LANGUAGE DROPDOWN ====== */
.lang-dropdown {
    position: relative;
    display: block;
    margin-left: 20px;
}

.lang-dropdown__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #026932; /* Matched from mockup */
    color: var(--white);
    border: none;
    border-radius: 8px; /* Appears pill-ish but slightly squared */
    padding: 8px 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-dropdown__btn:hover {
    background: #0D5A2B;
}

.lang-dropdown__btn svg {
    transition: transform 0.3s ease;
}

.lang-dropdown.open .lang-dropdown__btn svg {
    transform: rotate(180deg);
}

.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    min-width: 130px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-dropdown.open .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown__menu li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 500;
    transition: background 0.2s;
}

.lang-dropdown__menu li a:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.lang-dropdown__menu li a.active {
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 768px) {
    .lang-dropdown {
        margin-left: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #EAEAEA;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .lang-dropdown__menu {
        position: static;
        box-shadow: none;
        background: transparent;
        display: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        text-align: center;
    }
    
    .lang-dropdown.open .lang-dropdown__menu {
        display: block;
    }
}
