/* ============================================================
   CREO — Enfoque CREO — Card Vertical Layout (Step 1)
   ============================================================
   Step 1: All 3 cards visible, stacked vertically,
           1240 x 564, 100% opacity, 20px gap.
   GSAP animation will be added in Step 2.
   ============================================================ */

/* ─── SECTION ────────────────────────────────────────────────── */
.enfoque-creo {
    position: relative;
    /* Gradient: Top #0B173D to Bottom #041F74 */
    background: linear-gradient(180deg, #0B173D 0%, #041F74 100%);
    padding: 80px 0 40px;
    overflow: hidden;
    /* Reduced bottom padding from 120px to 40px */
}

/* Noise overlay */
.enfoque-creo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.25;
    /* color negro a un 25% */
    /* Noise texture with SVG filter */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 4% 4%;
    /* noise size de 4% */
    mix-blend-mode: multiply;
}


/* ─── CARDS CONTAINER — absolute stacking ─────────────────── */
.enfoque-creo .cards-stack {
    position: relative;
    width: 100%;
    height: 564px;
    /* Same height as a card */
    display: flex;
    justify-content: center;
    margin: 40px auto 0;
    z-index: 2;
    /* ABOVE Noise overlay */
}

/* ─── EACH CARD ──────────────────────────────────────────────── */
.enfoque-creo .card {
    position: absolute;
    top: 0;
    width: 1240px;
    max-width: 95vw;
    height: 564px;
    border-radius: 16px;
    overflow: hidden;
    transform-origin: top center;
    will-change: transform, opacity;
    background: var(--creo-dark);
}

/* ─── APILADO INICIAL ─────────────────────── */
.enfoque-creo .card:nth-child(1) {
    z-index: 1;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.enfoque-creo .card:nth-child(2) {
    z-index: 2;
    opacity: 0;
    transform: translateY(150px) scale(1);
}

.enfoque-creo .card:nth-child(3) {
    z-index: 3;
    opacity: 0;
    transform: translateY(150px) scale(1);
}

/* ─── CARD MEDIA — image fills full card ─────────────────────── */
.enfoque-creo .card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.enfoque-creo .card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* ─── CARD TEXT — gradient overlay at bottom ─────────────────── */
.enfoque-creo .card-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 40px;
    background: linear-gradient(to top,
            rgba(11, 23, 61, 0.93) 0%,
            rgba(11, 23, 61, 0.55) 50%,
            transparent 100%);
    border-radius: 0 0 16px 16px;
    z-index: 2;
}

.enfoque-creo .card-text__title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--creo-white);
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.enfoque-creo .card-text__desc {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    max-width: 600px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
    .enfoque-creo .card {
        height: clamp(280px, 40vw, 564px);
    }
}

@media (max-width: 768px) {
    .enfoque-creo {
        padding: 64px 0 80px;
    }

    .enfoque-creo .card-text {
        padding: 24px;
    }

    .enfoque-creo .card-text__title {
        font-size: 1.2rem;
    }
}