/* ============================================================
   Fran Granados — Orisa Effects (CSS)
   Complementa a orisa-effects.js. Prefijo fg- para no chocar
   con las clases fgk- del kit ni fg- del tema (namespaces
   ya usados: fg-split-*, fg-sticky-*, fg-marquee, fg-project-*).
   ============================================================ */

/* ---------- 1. Split text (reveal / rise) ---------- */
.fg-text-reveal,
.fg-text-rise {
    display: block;
}
.fg-split-word {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
}
.fg-split-char {
    display: inline-block;
    will-change: transform, opacity;
}

/* ---------- 2. Sticky stack (cards 3D) ---------- */
.fg-sticky-stack {
    position: relative;
    height: 60vh;
    perspective: 1200px;
    overflow: hidden;
}
.fg-sticky-card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(560px, 88vw);
    max-height: 70vh;
    transform-origin: center center;
    backface-visibility: hidden;
    will-change: transform;
}

/* ---------- 3. Marquee continuo ---------- */
.fg-marquee {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.fg-marquee__track {
    display: flex;
    width: max-content;
    will-change: transform;
}
.fg-marquee__group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 3rem;
    padding-right: 3rem;
}

/* ---------- 4. Project slider (scroll horizontal infinito) ---------- */
.fg-project-slider {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    user-select: none;
    cursor: grab;
}
.fg-project-slider:active {
    cursor: grabbing;
}
.fg-project-source-list {
    display: none;
}
.fg-project-track {
    position: absolute;
    inset: 0;
    display: flex;
    will-change: transform;
}
.fg-project-slide {
    flex-shrink: 0;
    width: 350px;
    height: 500px;
    margin: 0 20px;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    overflow: visible;
}
.fg-project-slide.is-mobile {
    width: 175px;
    height: 250px;
}
.fg-project-frame {
    width: 100%;
    height: 100%;
    flex: 1;
    overflow: hidden;
}
.fg-project-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    user-select: none;
    pointer-events: none;
}
.fg-project-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    pointer-events: none;
    z-index: 10;
}
.fg-project-title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.fg-project-arrow {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: inline-flex;
}
.fg-project-arrow svg {
    width: 100%;
    height: 100%;
}
.fg-project-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}
.fg-project-nav:hover {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.95);
    color: #111;
}
.fg-project-nav-prev { left: 2.5rem; }
.fg-project-nav-next { right: 2.5rem; }
.fg-project-pagination {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 6;
}
.fg-project-pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}
.fg-project-pagination-dot.is-active {
    background-color: #fff;
    border-color: #fff;
    width: 28px;
    border-radius: 999px;
}

@media (max-width: 991px) {
    .fg-project-slide {
        width: 175px;
        height: 250px;
        margin: 0 15px;
    }
    .fg-project-nav {
        width: 44px;
        height: 44px;
    }
    .fg-project-nav-prev { left: 1rem; }
    .fg-project-nav-next { right: 1rem; }
}
