/* ============================================================
   projects.css
   Estilos para "Quiénes somos" (quienes-somos.html) y
   "Otros proyectos" (proyectos.html). Depende de era.css
   (tokens :root + topbar) y comparte lenguaje con about.css.
   ============================================================ */

/* ---------- QUÉ HACEMOS (lista de features) ---------- */
.qs-features {
    padding: 40px 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.qs-feature {
    flex: 1 1 100%;
    padding: 28px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.qs-feature:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.18);
}

.qs-feature-icon {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 16px;
    display: block;
}

.qs-feature-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: clamp(18px, 4.5vw, 22px);
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.qs-feature-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-dim);
    font-weight: 300;
}

/* ---------- HEADER de la página de proyectos ---------- */
.projects-head {
    padding: 140px 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-kicker {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--fg-faint);
    margin-bottom: 16px;
}

.projects-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 800;
    font-size: clamp(48px, 13vw, 120px);
    line-height: 0.92;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.projects-lead {
    font-size: clamp(15px, 3.8vw, 18px);
    line-height: 1.6;
    color: var(--fg-dim);
    font-weight: 300;
    max-width: 560px;
}

/* ---------- GRID de proyectos ---------- */
.projects-grid {
    padding: 40px 24px 100px;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 22px;
    overflow: hidden;
    background: var(--bg-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
}

.project-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-2);
    overflow: hidden;
}

.project-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.project-card:hover .project-card-media {
    /* leve zoom de la imagen al hover */
    transform: scale(1.015);
    transition: transform 0.6s var(--ease);
}

.project-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.project-tag.is-live { color: #6bff9e; border-color: rgba(107, 255, 158, 0.4); }
.project-tag.is-soon { color: #ffd166; border-color: rgba(255, 209, 102, 0.4); }
.project-tag.is-ended { color: #a1a1aa; border-color: rgba(161, 161, 170, 0.4); }

.project-card-body {
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-card-title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 700;
    font-size: clamp(22px, 5.5vw, 28px);
    letter-spacing: -0.02em;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-card-arrow {
    color: var(--fg-faint);
    font-size: 22px;
    transition: transform 0.4s var(--ease), color 0.3s var(--ease);
}

.project-card:hover .project-card-arrow {
    transform: translateX(6px);
    color: var(--fg);
}

.project-card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--fg-dim);
    font-weight: 300;
}

.project-card-meta {
    margin-top: auto;
    padding-top: 8px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-faint);
    font-weight: 500;
}

/* ---------- Responsive ---------- */
@media (min-width: 680px) {
    .qs-feature { flex: 1 1 240px; max-width: 320px; }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .projects-head { padding: 160px 32px 20px; }
}

@media (min-width: 1040px) {
    .qs-features { padding: 60px 48px 80px; }
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 48px 48px 120px;
    }
    .projects-head { padding: 180px 48px 24px; }
    /* la primera card ocupa todo el ancho como destacada */
    .project-card.is-featured { grid-column: 1 / -1; }
    .project-card.is-featured { flex-direction: row; }
    .project-card.is-featured .project-card-media {
        flex: 1 1 55%;
        aspect-ratio: auto;
    }
    .project-card.is-featured .project-card-body {
        flex: 1 1 45%;
        justify-content: center;
        padding: 48px 44px;
    }
    .project-card.is-featured .project-card-title { font-size: clamp(28px, 4vw, 40px); }
    .project-card.is-featured .project-card-text { font-size: 16px; }
}

/* ---------- Hero "Nsqkcharts": es una palabra larga, evitar que se salga en móvil ---------- */
.about-hero-title {
    font-size: clamp(38px, 13vw, 150px);
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* ---------- Stats centradas (quienes-somos puede tener menos de 3) ---------- */
.about-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.about-stats .stat {
    flex: 1 1 150px;
    max-width: 260px;
}
