/* =====================================================
   PROYECTOS — PALETA VISUAL DE ANDRÉS CHÁVEZ
   Compatible con css/index.css y el menú rec-* existente
===================================================== */
body {
    background: #f0ebf7;
    color: #263858;
    font-family: Georgia, "Times New Roman", serif;
}

.proy-contenedor-galeria {
    padding: 68px 7% 100px;
    background:
        radial-gradient(circle at 15% 15%, rgba(200,190,240,.18), transparent 25%),
        radial-gradient(circle at 85% 60%, rgba(200,190,240,.18), transparent 25%),
        #f0ebf7;
}

.proy-introduccion {
    max-width: 850px;
    margin: 0 auto 58px;
    text-align: center;
}

.proy-etiqueta {
    display: inline-block;
    margin-bottom: 22px;
    color: #817dcc;
    font-size: 12px;
    letter-spacing: 4px;
}

.proy-introduccion h2 {
    margin: 0 0 20px;
    color: #263858;
    font-size: clamp(36px, 5vw, 58px);
    font-weight: normal;
    line-height: 1.08;
}

.proy-introduccion h2::after {
    content: "";
    display: block;
    width: 65px;
    height: 2px;
    margin: 22px auto 0;
    background: #8c8bc7;
}

.proy-introduccion p {
    max-width: 720px;
    margin: 0 auto;
    color: #34405a;
    font-size: 16px;
    line-height: 1.8;
}

.proy-galeria {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 55px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.proy-tarjeta {
    min-width: 0;
    color: #263858;
}

.proy-imagen-contenedor {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin-bottom: 21px;
    background: #dad2e8;
}

.proy-imagen-contenedor img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.proy-tarjeta:hover .proy-imagen-contenedor img {
    transform: scale(1.055);
}

.proy-categoria {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    color: #817dcc;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
}

.proy-categoria span {
    flex-shrink: 0;
    color: #263858;
    letter-spacing: 1px;
}

.proy-titulo-tarjeta {
    margin: 0 0 13px;
    color: #263858;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: normal;
    line-height: 1.15;
}

.proy-descripcion-tarjeta {
    margin: 0;
    color: #34405a;
    font-size: 15px;
    line-height: 1.8;
}

.proy-linea {
    width: 55px;
    height: 2px;
    margin-top: 23px;
    background: #e15b9b;
    transition: width .3s ease;
}

.proy-tarjeta:hover .proy-linea {
    width: 90px;
}

.proy-imagen-contenedor {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}

.proy-imagen-contenedor video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.proy-imagen-contenedor {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.proy-portada {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.proy-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.video-modal.activo {
    display: flex;
}

.video-modal video {
    width: auto;
    height: auto;
    max-width: 95vw;
    max-height: 90vh;
    object-fit: contain;
}

.video-cerrar {
    position: absolute;
    top: 20px;
    right: 25px;
    color: white;
    background: transparent;
    border: none;
    font-size: 32px;
    cursor: pointer;
}

@media (max-width: 1000px) {
    .proy-galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 45px 24px;
    }

    .proy-contenedor-galeria {
        padding-right: 5%;
        padding-left: 5%;
    }
}

@media (max-width: 600px) {
    .proy-contenedor-galeria {
        padding: 48px 20px 65px;
    }

    .proy-introduccion {
        margin-bottom: 38px;
    }

    .proy-etiqueta {
        font-size: 10px;
        letter-spacing: 2.5px;
    }

    .proy-introduccion p {
        font-size: 15px;
    }

    .proy-galeria {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 14px;
    }

    .proy-imagen-contenedor {
        aspect-ratio: 1 / 1;
        margin-bottom: 14px;
    }

    .proy-categoria {
        align-items: flex-start;
        font-size: 8px;
        letter-spacing: 1px;
        gap: 5px;
    }

    .proy-titulo-tarjeta {
        font-size: 20px;
        line-height: 1.15;
    }

    .proy-descripcion-tarjeta {
        font-size: 13px;
        line-height: 1.65;
    }
}

@media (max-width: 360px) {
    .proy-galeria {
        grid-template-columns: 1fr;
    }

    .proy-imagen-contenedor {
        aspect-ratio: 4 / 3;
    }
}


