/* 
   FDM Smart Solutions - Layered Reveal System
   Strict Brand Palette & Standardized Titles
*/

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Syne:wght@400..800&display=swap');

:root {
    /* STRICT BRAND PALETTE */
    --c-naranja: #F59E0B;
    --c-azul-corp: #035ABB;
    --c-azul-activo: #00B2E2;
    --c-azul-tecnico: #0074C9;
    --c-blanco: #FFFFFF;

    /* System */
    --font-base: 'Google Sans', sans-serif;
}

/* Global Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
}

body {
    background-color: var(--c-blanco);
    color: var(--c-azul-corp);
    font-family: var(--font-base);
    line-height: 1.4;
    overflow-x: hidden;
}

/* UNIFORM HEADERS */
.title-std,
h1,
.h-bold {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    /* Archivo Black is naturally heavy */
    text-transform: uppercase;
    letter-spacing: -0.05em;
    /* Slightly tighter for extra impact */
    line-height: 0.85;
    /* Tighter line height for the "bold" feel */
}


/* STICKY STACK LOGIC */
.sticky-container {
    position: relative;
    width: 100%;
}

.sticky-layer {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

/* Section Themes */
.row-blue-corp {
    background-color: var(--c-azul-corp);
    color: var(--c-blanco);
}

.row-blue-active {
    background-color: var(--c-azul-activo);
    color: var(--c-blanco);
}

.row-blue-tech {
    background-color: var(--c-azul-tecnico);
    color: var(--c-blanco);
}

.row-orange {
    background-color: var(--c-naranja);
    color: var(--c-azul-corp);
}

.row-white {
    background-color: var(--c-blanco);
    color: var(--c-azul-corp);
}

/* UI Elements */
.btn-fdm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 3rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    font-size: 1.1rem;
}

.btn-fdm-outline {
    border: 3px solid currentColor;
    background: transparent;
}

.btn-fdm-outline:hover {
    background: var(--c-blanco);
    color: var(--c-azul-corp) !important;
}

/* Industrial Accents */
.accent-line {
    height: 12px;
    background-color: var(--c-naranja);
    width: 120px;
    margin-bottom: 3rem;
}

/* Reveal Animations within layers */
.reveal-content {
    opacity: 1;
    transition: all 0.8s ease-out;
}

/* Specific layout for white containers with small text */
.text-box-white {
    background: var(--c-blanco);
    color: var(--c-azul-corp);
    padding: 3rem;
    max-width: 900px;
}

/* Hero Carousel */
.carousel-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-img.active {
    opacity: 1;
}

/* Infinite Mosaic Carousel -> Carousel */
.carousel-container {
    position: relative;
    /* WAS FIXED, NOW RELATIVE */
    width: 100%;
    z-index: 50;
    background: transparent;
    overflow: hidden;
    /* FIXED: prevents white gap on the right */
    user-select: none;
    padding: 60px 0 0 0;
    /* Margin for hover growth */
}

.carousel-track {
    display: flex;
    width: max-content;
    animation: scroll-carousel 60s linear infinite;
}

@keyframes scroll-carousel {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.carousel-item {
    flex: 0 0 auto;
    width: 120px;
    height: 80px;
    background: var(--c-blanco);
    position: relative;
    z-index: 1;
    transition: z-index 0.3s;
}

@media (min-width: 768px) {
    .carousel-item {
        width: 160px;
        height: 110px;
    }
}

.carousel-item:hover {
    z-index: 300;
    /* Higher than anything else */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy effect */
    transform-origin: bottom center;
    /* Grow upwards */
    background: white;
    /* Ensure it has background when popping out */
}

.carousel-item:hover img {
    transform: scale(1.5);
    /* Grows up and out from the bottom center origin */
}