/* =========================================================
   PIEZAS ESCÉNICAS
   ========================================================= */

.main-proyectos {
    padding-bottom: 4rem;
}

.main-proyectos > .container {
    max-width: 1320px;
}


/* =========================================================
   ENCABEZADO
   ========================================================= */

.proyectos-header {
    max-width: 850px;
    margin: 2.5rem 0 3rem;
}

.proyectos-eyebrow {
    display: block;
    margin-bottom: .5rem;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.proyectos-header h1 {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    font-weight: 700;
}

.proyectos-intro {
    max-width: 720px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.65;
}


/* =========================================================
   SELECTOR DE CICLO
   ========================================================= */

.ciclos {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.ciclo {
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 1rem 1.4rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 12px;
    color: inherit;
    text-decoration: none;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.ciclo:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.ciclo.activo {
    border-width: 2px;
}

.ciclo-periodo {
    font-size: 1.2rem;
    font-weight: 700;
}

.ciclo-tipo {
    margin-top: .2rem;
    font-size: .8rem;
    opacity: .7;
}


/* =========================================================
   CABECERA DEL CICLO
   ========================================================= */

.proyectos-titulo-ciclo {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.proyectos-label {
    display: block;
    margin-bottom: .15rem;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    opacity: .65;
}

.proyectos-titulo-ciclo h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-weight: 700;
}

.total-proyectos {
    padding-bottom: .25rem;
    font-size: .95rem;
    font-weight: 600;
}


/* =========================================================
   FILTROS
   ========================================================= */

.proyectos-filtros {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr))
        auto;
    gap: 1.25rem;
    align-items: end;
    margin-bottom: 2rem;
}

.filtro-acciones {
    display: flex;
    align-items: flex-end;
}

.btn-limpiar-filtros {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;

    min-height: 46px;
    padding: .6rem 1rem;

    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 8px;

    background: transparent;
    color: inherit;

    font-size: .85rem;
    font-weight: 600;

    cursor: pointer;
    transition: background .2s ease;
}

.btn-limpiar-filtros:hover {
    background: rgba(0, 0, 0, .06);
}

.btn-limpiar-filtros .material-symbols-outlined {
    font-size: 1.1rem;
}

.filtro {
    min-width: 0;
}

.filtro label {
    display: block;
    margin-bottom: .5rem;
    font-size: .85rem;
    font-weight: 600;
}

.filtro select {
    width: 100%;
    min-height: 46px;
}


/* =========================================================
   GRID
   Esta parte corrige las tarjetas amontonadas.
   ========================================================= */

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}


/* =========================================================
   TARJETA
   ========================================================= */

.proyecto-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;

    background: #fff;
    border-radius: 16px;

    color: inherit;
    text-decoration: none;

    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.proyecto-card:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}


/* =========================================================
   IMAGEN
   ========================================================= */

.proyecto-card-imagen {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e8e8;
}

.proyecto-card-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform .4s ease;
}

.proyecto-card:hover .proyecto-card-imagen img {
    transform: scale(1.035);
}


/* Disciplina */

.proyecto-disciplina {
    position: absolute;
    left: 1rem;
    bottom: 1rem;

    display: inline-flex;
    align-items: center;

    padding: .42rem .8rem;

    border-radius: 999px;

    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;

    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
}

.disciplina-danza {
    background: var(--aee-acento, #fef3dd);
    color: #222;
}

.disciplina-teatro {
    background: #fff;
    color: #222;
}


/* =========================================================
   INFORMACIÓN
   ========================================================= */

.proyecto-card-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.4rem 1.4rem 1.5rem;
}

.proyecto-card-info h3 {
    margin: 0 0 .65rem;

    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.25;
}

.proyecto-artista {
    margin: 0 0 1.25rem;

    font-size: .95rem;
    line-height: 1.45;

    opacity: .75;
}


/* =========================================================
   METADATOS
   ========================================================= */

.proyecto-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;

    margin-top: auto;
    padding-top: 1rem;

    border-top: 1px solid rgba(0, 0, 0, .08);

    font-size: .82rem;
}

.proyecto-meta > span {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
}

.proyecto-meta .material-symbols-outlined {
    font-size: 1rem;
}

.proyecto-nivel {
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .06);
    font-weight: 600;
}


/* =========================================================
   CARGANDO
   ========================================================= */

.proyectos-loading {
    padding: 3rem 0;
    text-align: center;
}


/* =========================================================
   SIN RESULTADOS
   ========================================================= */

.no-results {
    grid-column: 1 / -1;

    padding: 5rem 2rem;

    text-align: center;

    border-radius: 16px;
    background: rgba(0, 0, 0, .035);
}

.no-results .material-symbols-outlined {
    display: block;
    margin-bottom: 1rem;
    font-size: 3rem;
    opacity: .45;
}

.no-results h3 {
    margin-bottom: .5rem;
}

.no-results p {
    margin: 0;
    opacity: .7;
}

.btn-reset-resultados {
    margin-top: 1.25rem;
    padding: .65rem 1.2rem;

    border: 1px solid currentColor;
    border-radius: 999px;

    background: transparent;
    color: inherit;

    font-weight: 600;
    cursor: pointer;
}

.btn-reset-resultados:hover {
    background: rgba(0, 0, 0, .06);
}

.proyectos-resumen {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
    font-size: .9rem;
}

.proyectos-resumen span {
    display: inline-flex;
    align-items: center;
}

.proyectos-resumen span:not(:last-child)::after {
    content: "•";
    margin-left: .5rem;
    opacity: .4;
}

/* =========================================================
   PLACEHOLDER PARA PROPUESTAS SIN FOTOGRAFÍA
   ========================================================= */

.proyecto-card-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Elemento gráfico de fondo */
.proyecto-card-placeholder::before {
    content: "";
    position: absolute;
    width: 75%;
    aspect-ratio: 1;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
    transform: translate(35%, -35%);
}

.proyecto-card-placeholder::after {
    content: "";
    position: absolute;
    width: 45%;
    aspect-ratio: 1;
    left: -10%;
    bottom: -30%;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 50%;
}


/* Contenido */

.placeholder-contenido {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;

    padding: 2rem;
    text-align: center;
}

.placeholder-icono {
    font-size: 3rem;
    font-weight: 300;
}

.placeholder-texto {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .7;
}

.placeholder-danza {
    background: #fef3dd;
}

.placeholder-teatro {
    background: #eee8f4;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .grid-proyectos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .proyectos-filtros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 767.98px) {

    .main-proyectos {
        padding-bottom: 2.5rem;
    }

    .proyectos-header {
        margin: 1.5rem 0 2rem;
    }

    .ciclos {
        gap: .75rem;
        overflow-x: auto;
        margin-bottom: 2.5rem;
        padding-bottom: 1.25rem;
    }

    .ciclo {
        flex: 0 0 auto;
        min-width: 150px;
    }

    .proyectos-titulo-ciclo {
        display: block;
    }

    .total-proyectos {
        margin-top: .5rem;
    }

    .proyectos-filtros {
        grid-template-columns: 1fr;
        gap: 1rem;

        margin-bottom: 2rem;
        padding: 1.25rem;
    }

    .grid-proyectos {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .btn-limpiar-filtros {
        width: 100%;
    }

}


/* =========================================================
   PANTALLAS GRANDES
   ========================================================= */

@media (min-width: 1400px) {

    .grid-proyectos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}