/* HEADER (Reutilizamos estilos base pero ajustamos padding si hace falta) */
.page-header {
    padding: 140px 0 60px 0;
    text-align: center;
}

/* BARRA DE FILTROS GLASS */
.glass-filter-bar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-filter {
    color: var(--color-silver);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-filter:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.btn-filter.active {
    background: var(--color-cyan);
    color: var(--color-navy);
    box-shadow: 0 0 15px rgba(0, 168, 204, 0.4);
    font-weight: 700;
}

/* TARJETA DE PROYECTO (GLASS CONTAINER) */
.project-card-glass {
    border-radius: 24px;
    background-color: #000;
    /* Fondo negro por si la imagen tarda */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

/* LA IMAGEN DE FONDO + FILTRO MÁGICO */
.project-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease, filter 0.6s ease;

    /* EL SECRETO: Unificar colores */
    filter: grayscale(100%) sepia(20%) hue-rotate(180deg) brightness(0.7);
}

/* Efecto Hover: Color real + Zoom */
.project-card-glass:hover .project-bg-img {
    filter: grayscale(0%) brightness(1);
    /* Color original */
    transform: scale(1.05);
    /* Lente zoom sutil */
}

.project-card-glass:hover {
    border-color: var(--color-cyan);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* OVERLAY OSCURO PARA LEER TEXTO */
.project-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 11, 20, 0.9) 90%);
    pointer-events: none;
    z-index: 1;
}

/* CONTENIDO FLOTANTE */
.project-content {
    z-index: 2;
    transform: translateY(10px);
    /* Un poco abajo inicialmente */
    transition: transform 0.4s ease;
}

.project-card-glass:hover .project-content {
    transform: translateY(0);
    /* Sube al hacer hover */
}

/* PILDORAS DE TECNOLOGÍA */
.tech-pill {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* BOTÓN CIRCULAR CON FLECHA */
.btn-circle-arrow {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.project-card-glass:hover .btn-circle-arrow {
    background: var(--color-cyan);
    color: var(--color-navy);
    transform: rotate(45deg);
    /* Efecto de acción */
}