/* MOUSE GRADIENT BACKGROUND */
.mouse-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: #0D2F4B;
    /* Fallback */
    /* Dynamic gradient */
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(21, 58, 92, 0.4),
            #0D2F4B 40%);
    pointer-events: none;
    will-change: background;
}

/* SPLIT LAYOUT FOR SECTIONS */
.split-section {
    padding: 100px 50px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.split-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}


.section-label {
    flex: 1;
    max-width: 200px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--cta-primary);
    text-transform: uppercase;
    position: relative;
    padding-top: 5px;
    position: sticky;
    /* Sticky label */
    top: 100px;
}

.section-content-wrapper {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.section-intro {
    font-family: 'Google Sans', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 300;
    margin-bottom: 20px;
}


/* BRANDS GRID */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns side by side */
    gap: 30px;
}

.brand-card {
    background: #ffffff;
    /* White background requested */
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.brand-image-wrapper {
    height: 200px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 30px;
    /* Add padding so logos don't touch edges */
}

.brand-img-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ensure full logo is visible/not cut */
    opacity: 1;
    /* Full visibility */
    transition: transform 0.3s;
}

.brand-card:hover .brand-img-bg {
    transform: scale(1.05);
}

/* Hide overlays as requested for clean look */
.brand-overlay,
.brand-logo-text {
    display: none;
}

.brand-info {
    padding: 25px;
    background: #fff;
    /* Ensure continuity */
    flex-grow: 1;
    border-top: 1px solid #f1f1f1;
}

.brand-info h3 {
    color: #0D2F4B;
    /* Dark Blue for contrast on white */
    margin-bottom: 8px;
    font-family: 'Google Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
}

.brand-info p {
    color: #64748b;
    /* Slate gray for readable text on white */
    font-size: 0.95rem;
    line-height: 1.5;
}

/* EXPERIENCE SLIDER ADJUSTMENT */
/* EXPERIENCE SLIDER ADJUSTMENT */
.slider-container {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
    /* Buttons overlay now */
    perspective: 2000px;
}

.slider-btn {
    position: absolute;
    top: 40%;
    /* Centered on the image part */
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(13, 47, 75, 0.4);
    /* Glass styling */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.slider-btn:hover {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 26, 43, 0.5);
}

.prev-btn {
    left: 30px;
}

.next-btn {
    right: 30px;
}

.slider-track-window {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    background: var(--cta-primary);
    /* Static red banner background */
    position: relative;
}

.slider-track {
    display: flex;
    gap: 0;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    /* Elegant slow motion */
}

.slide-card {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.slide-image {
    height: 500px;
    /* Height for the main image area */
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3);
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1s ease;
    filter: brightness(0.7) grayscale(30%);
    /* Cinematic moody look */
}

/* Active slide animation */
.slide-card.active .slide-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.slide-info-content {
    padding: 30px 40px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    width: 100%;
    min-height: 120px;
    margin: 0;
    position: relative;
    z-index: 5;
    /* No background here, it's on the window */
}

.fixed-thumbnails {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 15px;
    z-index: 10;
}

.info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* Stack elements */
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    /* Smaller gap for vertical layout */
}

.info-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    font-family: 'Google Sans', sans-serif;
    margin: 0;
    line-height: 1.2;
}

.info-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.4;
    max-width: 600px;
    font-family: 'Google Sans', sans-serif;
    opacity: 0.9;
}

.info-thumbnails {
    display: flex;
    gap: 15px;
}

.thumb {
    width: 100px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumb.active {
    border-color: #fff;
    transform: scale(1.1);
}

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

.slide-card.active .info-title,
.slide-card.active .info-desc {
    animation: fadeInUp 0.8s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .slide-info-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 30px;
    }

    .info-text {
        gap: 10px;
    }

    .info-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .slide-image {
        height: 350px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        top: 35%;
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .fixed-thumbnails {
        position: relative;
        /* Change to relative on mobile */
        bottom: 0;
        right: 0;
        margin: 20px 0 10px;
        display: flex;
        justify-content: center;
        width: 100%;
        gap: 15px;
        z-index: 10;
        padding: 0;
    }

    .slide-info-content {
        padding: 30px 20px 10px;
        min-height: auto;
    }

    .info-title {
        font-size: 1.25rem;
        /* Adjusted for mobile */
    }

    .info-desc {
        font-size: 0.85rem;
        max-width: 100%;
        line-height: 1.4;
    }

    .slider-track-window {
        height: auto;
        overflow: visible;
        /* Let shadow breathe */
        background: var(--cta-primary);
        padding-bottom: 10px;
    }

    /* Wrap track-window in an overflow-hidden wrapper if needed, but slider logic handles window usually */
    .slider-track-window {
        overflow: hidden;
        /* Keep hidden but ensure contents fit */
    }

    .split-container {
        flex-direction: column;
        gap: 30px;
    }

    .section-label {
        position: static;
        max-width: 100%;
        margin-bottom: 20px;
        top: 0;
    }

    .section-content-wrapper {
        width: 100%;
    }

    .thumb {
        width: 70px;
        height: 42px;
    }
}

/* NEWS SECTION - NEW LAYOUT */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-body {
    padding: 20px;
}

.news-date {
    font-size: 0.8rem;
    color: var(--cta-primary);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.news-body h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 10px;
    font-family: 'Google Sans', sans-serif;
    line-height: 1.3;
}

.news-body p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* READ MORE BUTTON from previous block context */
.read-more {
    display: inline-block;
    margin-top: auto;
    /* Push to bottom */
    background: transparent;
    border: 1px solid var(--cta-primary);
    color: var(--cta-primary);
    padding: 10px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    /* Pill shape */
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    align-self: flex-start;
    /* Align left */
}

.read-more:hover {
    background: var(--cta-primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 26, 43, 0.5);
    /* Stronger Red glow */
    transform: translateY(-2px);
}


/* Responsive Split Layout */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
        gap: 50px;
        overflow: visible;
    }

    .section-label {
        position: static !important;
        /* Force static on mobile */
        margin-bottom: 30px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }

    .split-section {
        padding: 80px 20px;
        overflow: visible;
        /* Don't clip content */
    }

    /* Fix brands/news grid on mobile */
    .brands-grid,
    .news-grid {
        grid-template-columns: 1fr;
        margin-bottom: 60px;
        /* Ensure space below grids */
    }

    .section-content-wrapper {
        gap: 30px;
        padding-bottom: 20px;
        /* Add internal padding */
    }
}

/* CLIENTS MARQUEE (Simplified) */
.clients-section {
    padding: 60px 0;
    background: #ffffff;
    position: relative;
    /* Ensure stacking context */
    z-index: 5;
    /* Sit on top of any previous overflow */
}

.clients-title-small {
    text-align: center;
    color: #64748b;
    /* Darker text for white bg */
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
}

.clients-track-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

/* Fade edges for smooth look on white */
.clients-track-container::before,
.clients-track-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.clients-track-container::before {
    left: 0;
    background: linear-gradient(to right, #fff, transparent);
}

.clients-track-container::after {
    right: 0;
    background: linear-gradient(to left, #fff, transparent);
}

.clients-track {
    display: inline-block;
    animation: marquee 40s linear infinite;
    /* Adjusted speed */
    will-change: transform;
}

.clients-track:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 50px;
    /* Increased spacing */
    height: 80px;
    /* Taller area */
    opacity: 1;
    transition: all 0.3s;
    filter: grayscale(100%);
    opacity: 0.6;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.client-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* No brightness filter needed on white bg */
}

.client-logo i {
    font-size: 1.5rem;
    color: #0D2F4B;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* FOOTER */
footer {
    background: #051421;
    padding: 60px 0 20px;
    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Center everything in footer */
.footer-columns {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hide unused columns explicitly if needed, or just let them stack */
.footer-col:first-child,
.footer-col:nth-child(2),
.footer-col:nth-child(3),
.footer-col:last-child {
    align-items: center;
    text-align: center;
    width: 100%;
}

/* We only really want the logo and copyright now based on "logo del footer en medio" description mostly */

.footer-col h4 {
    margin-bottom: 15px;
    font-family: 'Google Sans', sans-serif;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.5;
}

.footer-col p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.footer-logo {
    width: 160px;
    /* Larger logo */
    opacity: 1;
    margin-bottom: 0;
}

.footer-logo:hover {
    opacity: 1;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--cta-primary);
    border-color: var(--cta-primary);
    transform: translateY(-3px);
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-columns {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .footer-col:first-child,
    .footer-col:nth-child(3),
    .footer-col:last-child {
        align-items: center;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 10px;
    }
}