
/*
 * ============================================================
 * COLPIN TEAM S.A.S.
 * MOTION DESIGN
 * ============================================================
 */

:root {
    --motion-gold: #e6ba73;
}

/*
 * ============================================================
 * BASE
 * ============================================================
 */

body {
    overflow-x: hidden;
}

html {
    scroll-padding-top: 30px;
}

/*
 * ============================================================
 * ANIMACIONES DE APARICIÓN
 * ============================================================
 */

.motion-reveal {
    opacity: 0;

    transform: translate3d(0, 38px, 0);

    filter: blur(5px);

    transition:
        opacity 0.8s ease,
        transform 0.85s cubic-bezier(.2, .7, .2, 1),
        filter 0.8s ease;
}

.motion-reveal.in-view {
    opacity: 1;
    transform: none;
    filter: none;
}

.motion-reveal:nth-child(2n) {
    transition-delay: 0.09s;
}

.motion-reveal:nth-child(3n) {
    transition-delay: 0.16s;
}

/*
 * ============================================================
 * HERO
 * ============================================================
 */

.hero h1 {
    animation: hero-rise 1.1s both;
}

.hero .eyebrow {
    animation: hero-rise 0.8s 0.1s both;
}

.hero .actions {
    animation: hero-rise 1s 0.35s both;
}

@keyframes hero-rise {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

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

}

/*
 * ============================================================
 * BOTONES DORADOS
 * ============================================================
 */

.eyebrow {
    display: inline-block;
}

.btn.gold {
    position: relative;
    overflow: hidden;
}

.btn.gold::after {
    content: '';

    position: absolute;
    inset: 0;

    transform:
        translateX(-160%)
        skewX(-25deg);

    width: 40%;

    background: linear-gradient(
        90deg,
        transparent,
        #ffffff99,
        transparent
    );

    transition:
        transform 0.65s ease;
}

.btn.gold:hover::after {
    transform:
        translateX(400%)
        skewX(-25deg);
}

/*
 * ============================================================
 * TARJETAS
 * ============================================================
 */

.ref-card,
.article-grid article,
.steps article {
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}

.steps article:hover,
.ref-card:hover,
.article-grid article:hover {
    transform: translateY(-6px);

    box-shadow:
        0 20px 45px #00000055;

    border-color:
        #e6ba7355;
}

/*
 * ============================================================
 * GALERÍA
 * ============================================================
 */

.gallery-grid img {
    cursor: zoom-in;
}

.gallery-grid img:hover {
    transform: scale(1.025);
}

/*
 * ============================================================
 * BARRA SUPERIOR DE PROGRESO
 * ============================================================
 */

.scroll-progress {
    position: fixed;

    z-index: 100;

    top: 0;
    left: 0;

    height: 3px;
    width: 100%;

    transform-origin: left;
    transform: scaleX(0);

    background: linear-gradient(
        90deg,
        #9e7439,
        #f9dca1
    );

    box-shadow:
        0 0 14px #e6ba73;

    pointer-events: none;
}

/*
 * ============================================================
 * BOTÓN VOLVER ARRIBA
 * ============================================================
 */

.scroll-indicator {
    position: fixed;

    z-index: 99;

    bottom: 22px;
    right: 24px;

    width: 48px;
    height: 48px;

    border:
        1px solid #e6ba7366;

    border-radius: 50%;

    background:
        #061a2edb;

    color:
        #e6ba73;

    display: grid;
    place-items: center;

    cursor: pointer;

    backdrop-filter: blur(12px);

    opacity: 0;

    transform:
        translateY(10px);

    pointer-events: none;

    transition:
        opacity 0.3s,
        transform 0.3s;
}

.scroll-indicator.visible {
    opacity: 1;

    transform: none;

    pointer-events: auto;
}

.scroll-indicator svg {
    width: 21px;
    height: 21px;
}

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

@media (max-width: 800px) {

    .motion-reveal {
        transform: translateY(22px);
    }

}

/*
 * ============================================================
 * ACCESIBILIDAD
 * REDUCIR MOVIMIENTO
 * ============================================================
 */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .motion-reveal {
        opacity: 1 !important;

        transform: none !important;

        filter: none !important;

        transition: none !important;
    }

    .hero h1,
    .hero .eyebrow,
    .hero .actions {
        animation: none !important;
    }

    .btn.gold::after {
        display: none;
    }

    .ref-card,
    .article-grid article,
    .steps article,
    .gallery-grid img {
        transition: none !important;
    }

}
