body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
}

.contenedor-proyectos {
    padding: 20px;
    text-align: center;
}

.grid-proyectos {
    display: grid;
    grid-template-columns: repeat(auto-fit, 350px);
    justify-content: center;
    gap: 50px;
    padding: 20px;
}

/* TARJETA */
.card-proyecto {
    position: relative;

    width: 350px;
    height: 350px;

    background-size: cover;
    background-position: center;
    border-radius: 15px;

    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);

    display: flex;
    align-items: center;
    justify-content: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-proyecto:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* OVERLAY */
.overlay {
    position: absolute;
    inset: 0;

    background: rgba(0,0,0,0.45);

    display: flex;
    flex-direction: column;

    padding: 18px;
    text-align: left;
    color: white;
}

/* CABECERA */
.card-header {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 5px;
    margin-bottom: 18px;
}

/* CÓDIGO */
.codigo {
    background: rgba(0,0,0,0.75);
    padding: 5px 10px;
    border-radius: 6px;

    font-size: 12px;
    color: white;
}

/* LOGO */
.logo-empresa {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 5px;

    width: 85px;
    height: 45px;
    padding: 5px;
    
    object-fit: contain;

    transition: transform 0.2s ease;
}

.logo-empresa:hover {
    transform: scale(1.08);
}

/* CONTENIDO */
.card-body {
    flex: 1;
}

.titulo-proyecto {
    margin: 0;
    margin-bottom: 18px;
    font-size: 18px;
    color: white;
}

.descripcion-proyecto {
    margin: 0;

    font-size: 14px;
    line-height: 1.5;

    color: rgba(255, 255, 255, 0.95);
}

/* ICONO DOCUMENTACIÓN */
.doc-indicator {
    position: absolute;
    bottom: 14px;
    right: 14px;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    color: white;

    cursor: pointer;

    opacity: 0;
    transform: translateY(8px);

    transition: all 0.25s ease;
}
.doc-indicator svg {
    width: 22px;
    height: 22px;
}
/* hover desktop */
.card-proyecto:hover .doc-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* móvil/tablet: aparece con click */
.card-proyecto.active .doc-indicator {
    opacity: 1;
    transform: translateY(0);
}

/* hover icono */
.doc-indicator:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}