/* Estilos para las pestañas de categorías en la galería de Recuerdos */
.category-tab {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    background-color: white;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

.category-tab:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.category-tab.active {
    background-color: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 4px 14px 0 rgba(229, 57, 53, 0.39);
}

/* Estilos para cada item en la cuadrícula de recuerdos */
.memory-item {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    aspect-ratio: 1 / 1;
    background-color: #e5e7eb;
    animation: popIn 0.5s ease forwards;
}

.memory-item img, .memory-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.memory-item:hover img, .memory-item:hover video {
    transform: scale(1.1);
}

.memory-item .info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s ease;
}

.memory-item:hover .info-overlay {
    transform: translateY(0);
    opacity: 1;
}

.memory-item .info-overlay h3 {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 4rem;
    height: 4rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-red);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.memory-item:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}