/* ══ PROJECTS PAGE — PRODUCTION ARCHIVE ══ */

/* Page header */
.projects-header {
    position: relative;
    width: 100%;
    padding: 10rem 5vw 15vh; /* Aumentado el espacio inferior a 15vh */
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    min-height: 40vh; /* Asegura que el título tenga su propia 'sección' */
}

.projects-count-label {
    font-family: 'Syncopate', sans-serif;
    font-size: 10px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: rgba(126, 217, 87, 0.6);
    margin-bottom: 0.75rem;
}

.projects-main-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 0.85;
    color: #F2F2C8;
}

.projects-header-right {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(242, 242, 200, 0.4);
    max-width: 300px;
    text-align: right;
}

/* ── CINEMATIC CARDS LAYOUT ── */
.cinematic-stack {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 5rem;
}

.cinematic-card {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 15vh; /* Gran separación entre paneles */
}

.cinematic-bg-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Faded edges effect left and right */
.cinematic-bg-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #061309 0%, transparent 15%, transparent 85%, #061309 100%),
                linear-gradient(to top, #061309 0%, rgba(6,19,9,0.3) 20%, rgba(6,19,9,0.1) 80%, #061309 100%);
    z-index: 2;
    pointer-events: none;
}

.cinematic-img {
    width: 100%;
    height: 125%; /* Extra height for parallax */
    object-fit: cover;
    object-position: center;
    filter: grayscale(0.6) brightness(0.5);
    transition: filter 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

.cinematic-card:hover .cinematic-img {
    filter: grayscale(0) brightness(0.8);
    transform: scale(1.02);
}

/* Content Layer */
.cinematic-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    padding: 6rem 5vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 85vh;
    pointer-events: none; /* Let clicks pass through to the card if needed */
}

.cinematic-content > * {
    pointer-events: auto; /* Re-enable clicks on text/buttons */
}

.cinematic-tag {
    font-family: 'Syncopate', sans-serif;
    font-size: 11px;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: #7ED957;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cinematic-tag::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: #7ED957;
}

.cinematic-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 700;
    text-transform: uppercase;
    color: #F2F2C8;
    line-height: 0.85;
    margin-bottom: 2rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.cinematic-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(242, 242, 200, 0.8);
    max-width: 600px;
    margin-bottom: 2.5rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.cinematic-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin-top: auto;
}

.cinematic-year {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 700;
    color: rgba(242, 242, 200, 0.15);
    line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
    .cinematic-bg-wrapper::after {
        background: linear-gradient(to right, #061309 -10%, transparent 10%, transparent 90%, #061309 110%),
                    linear-gradient(to top, #061309 0%, rgba(6,19,9,0.5) 40%, transparent 100%);
    }
    .cinematic-content {
        padding: 4rem 5vw;
    }
}

/* ── ARCHIVE GRID ── */
.archive-section {
    padding: 10rem 5vw 12rem;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: #061309;
}

.archive-header {
    font-family: 'Syncopate', sans-serif;
    font-size: 11px;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: rgba(126, 217, 87, 0.8);
    margin-bottom: 5rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.archive-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(126, 217, 87, 0.2), transparent);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.archive-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    text-decoration: none;
}

.archive-item:hover {
    background: rgba(126, 217, 87, 0.03);
    border-color: rgba(126, 217, 87, 0.3);
    transform: translateY(-8px);
}

.archive-item-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 2rem;
    background: #000;
}

.archive-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) brightness(0.5);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.archive-item:hover .archive-item-img {
    filter: grayscale(0) brightness(0.8);
    transform: scale(1.05);
}

.archive-item-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.archive-item-title {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #F2F2C8;
    text-transform: uppercase;
    transition: color 0.4s ease;
}

.archive-item:hover .archive-item-title {
    color: #7ED957;
}

.archive-item-tag {
    font-family: 'Montserrat', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: rgba(126, 217, 87, 0.6);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.archive-item-desc {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    line-height: 1.8;
    color: rgba(242, 242, 200, 0.4);
    transition: color 0.4s ease;
}

.archive-item:hover .archive-item-desc {
    color: rgba(242, 242, 200, 0.7);
}
