/* OFFSET SECTION - "THE CHROMATIC STUDIO" */
/* Inspired by the mechanical precision of offset presses and the white paper canvas */

.offset-section {
    position: relative;
    padding: 180px 0 120px;
    /* Huge top padding to accommodate the slope */
    background-color: #ffffff;
    /* Pure White Canvas */
    z-index: 9;
    overflow: hidden;
    /* Extraordinary Separation: "The Paper Cut" */
    /* An sharp, upward diagonal that slices through the darkness of the previous section */
    clip-path: polygon(0 80px, 100% 0, 100% 100%, 0 100%);
    margin-top: -100px;
    /* Aggressive overlap */
}

/* Background Texture: CMYK Registration Marks */
.offset-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 25%, transparent 25%),
        linear-gradient(90deg, rgba(255, 0, 230, 0.03) 50%, transparent 50%),
        linear-gradient(90deg, rgba(255, 234, 0, 0.03) 75%, transparent 75%);
    background-size: 100px 100%;
    opacity: 1;
    pointer-events: none;
}

.offset-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    width: 90%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* VISUAL SIDE (Left) - The "Floating Stack" */
.offset-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating Elements */
.paper-sheet {
    position: absolute;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    background-color: #fff;
    /* Fallback */
}

.sheet-1 {
    width: 350px;
    height: 450px;
    z-index: 3;
    transform: rotate(-5deg) translate(-20px, 0);
    border: 10px solid #fff;
}

.sheet-2 {
    width: 320px;
    height: 420px;
    z-index: 2;
    transform: rotate(8deg) translate(40px, -20px);
    opacity: 0.8;
    filter: sepia(20%);
}

.sheet-decoration {
    /* Abstract color bars */
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-cyan);
    z-index: 1;
    left: 10%;
    bottom: 10%;
    animation: rotateFrame 10s infinite linear;
}

.offset-visuals:hover .sheet-1 {
    transform: rotate(0deg) translate(0, 0) scale(1.05);
    z-index: 10;
}

.offset-visuals:hover .sheet-2 {
    transform: rotate(15deg) translate(80px, -40px) scale(0.95);
}

@keyframes rotateFrame {
    0% {
        transform: rotate(0deg);
        border-color: var(--color-cyan);
    }

    33% {
        border-color: var(--color-magenta);
    }

    66% {
        border-color: var(--color-yellow);
    }

    100% {
        transform: rotate(360deg);
        border-color: var(--color-cyan);
    }
}


/* CONTENT SIDE (Right) */
.offset-content {
    flex: 1;
    padding-left: 40px;
}

.offset-label {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: var(--color-cyan);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: block;
}

.offset-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: #0a0a20;
    line-height: 1.1;
    margin-bottom: 30px;
    position: relative;
    /* Split Color Title */
    background: linear-gradient(90deg, #0a0a20 50%, var(--cp-magenta) 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offset-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.8;
    border-left: 4px solid var(--color-yellow);
    padding-left: 20px;
}

/* Feature Grid */
.offset-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background: #f9f9f9;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 3px solid #ddd;
    font-family: var(--font-body);
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: var(--cp-navy);
}

.feature-item:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-left-color: var(--color-cyan);
    transform: translateX(10px);
}

/* Tiraje Badge */
.tiraje-badge {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 10px 25px;
    background: #0a0a20;
    color: #fff;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(10, 10, 32, 0.4);
}

.cmyk-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.c {
    background: var(--color-cyan);
}

.dot.m {
    background: var(--color-magenta);
}

.dot.y {
    background: var(--color-yellow);
}

.dot.k {
    background: #fff;
}

/* Responsive */
@media (max-width: 1024px) {

    /* Fix Overlap on Mobile/Tablet */
    .offset-container {
        flex-direction: column;
        gap: 0;
        padding-bottom: 50px;
    }

    .offset-visuals {
        height: 400px;
        width: 100%;
        margin-bottom: 30px;
        order: -1;
        /* Image on top */
    }

    .offset-content {
        padding-left: 0;
        padding-right: 0;
        margin-top: 30px;
        width: 100%;
    }

    .sheet-1,
    .sheet-2 {
        position: relative;
        left: auto;
        right: auto;
    }

    .sheet-1 {
        width: 280px;
        height: 380px;
        transform: rotate(-5deg);
        margin: 0 auto;
        display: block;
    }

    .sheet-2 {
        display: none;
        /* Simplify on mobile so it doesn't look messy */
    }

    .offset-title {
        font-size: 2.5rem;
        background: none;
        -webkit-background-clip: unset;
        background-clip: unset;
        -webkit-text-fill-color: initial;
        color: #0a0a20;
    }

    .offset-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .offset-section {
        padding-top: 100px;
        margin-top: -50px;
    }
}